In [ ]:
. ./nbs_header.ps1
. ./core.ps1
In [ ]:
{ . "$ScriptDir/../apps/builder/build.ps1" } | Invoke-Block

── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ # DibParser (Polyglot)                                                       │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../nbs/Testing.dib



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A

spNetCore.Html.Abstractions.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.Formatting.dll"

open System

open System.IO

open System.Text

open Microsoft.DotNet.Interactive.Formatting



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

open type Microsoft.DotNet.Interactive.Kernel



── fsharp - import ─────────────────────────────────────────────────────────────

#r @"../../../../../../../.nuget/packages/expecto/10.1.0/lib/net6.0/Expecto.dll"



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



Formatter.ListExpansionLimit <- 100



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



type AssertExceptionFormatter (ex) =

    member _.Text =

        ex.ToString()

            .Replace("32m", "<span style=\"color: green;\">")

            .Replace("36m", "</span>")

            .Replace("31m", "<span style=\"color: red;\">")

            .Replace("\n", "<br/>\n")





Formatter.Register<AssertExceptionFormatter> ((fun (x : 

AssertExceptionFormatter) -> x.Text), "text/html")



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __expect fn log expected actual =

    if log then printfn $"{actual.ToDisplayString ()}"

    try

        "Testing.__expect" |> fn actual expected

    with :? Expecto.AssertException as ex ->

        AssertExceptionFormatter(ex).Display () |> ignore

        failwith (ex.GetType().FullName)



let inline __contains log expected actual = __expect Expecto.Expect.contains log

expected actual

let inline _contains expected actual = __contains true expected actual



let inline __equal log expected actual = __expect Expecto.Expect.equal log 

expected actual

let inline _equal expected actual = __equal true expected actual



let inline __isGreaterThan log expected actual = __expect 

Expecto.Expect.isGreaterThan log expected actual

let ...



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __isBetween log a b actual =

    let inline isBetween actual (a, b) _ =

        __isGreaterThanOrEqual log a actual

        __isLessThanOrEqual log b actual

    __expect isBetween log (a, b) actual

let inline _isBetween a b actual = __isBetween true a b actual



── fsharp ──────────────────────────────────────────────────────────────────────

#r 

@"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan

dard2.1/FSharp.Control.AsyncSeq.dll"

#r 

@"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.

0/System.Reactive.dll"

#r 

@"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/

netstandard2.0/System.Reactive.Linq.dll"

#r 

@"../../../../../../../.nuget/packages/argu/6.1.1/lib/netstandard2.0/Argu.dll"

#r 

@"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li

b/net6.0/System.CommandLine.dll"

#r 

@"../../../../../../../.nuget/packages/fparsec/2.0.0-beta2/lib/netstandard2.1/FP

arsec.dll"

#r 

@"../../../../../../../.nuget/packages/fparsec/2.0.0-beta2/lib/netstandard2.1/FP

arsecCS.dll"



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../nbs/Common.fs

#!import ../nbs/CommonFSharp.fs

#!import ../nbs/Async.fs

#!import ../nbs/AsyncSeq.fs

#!import ../nbs/Runtime.fs

#!import ../nbs/FileSystem.fs



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Common =



    let nl = System.Environment.NewLine

    let q = @""""



    let inline cons head tail = head :: tail



    module String =

        let inline contains (value : string) (input : string) =

            input.Contains value



        let inline endsWith (value : string) (input : string) =

            input.EndsWith value



        let inline padLeft totalWidth paddingChar (input : string) =

            input.PadLeft (totalWidth, paddingChar)



        let inline replace (oldValue : string) (newValue : string) (input : 

string) =

            input.Replace (oldValue, newValue)



        let inline split separator (input : string) =

            input.Split separator



        let inline spli...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module CommonFSharp =



    open Common



    /// ## getUnionCaseName



    let inline getUnionCaseName<'T> (x: 'T) =

        match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with

        | case, _ -> case.Name





── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Async =



    open Common



    /// ## choice



    let inline choice asyncs = async {

        let e = Event<_> ()

        use cts = new System.Threading.CancellationTokenSource ()

        let fn =

            asyncs

            |> Seq.map (fun a -> async {

                let! x = a

                e.Trigger x

            })

            |> Async.Parallel

            |> Async.Ignore

        Async.Start (fn, cts.Token)

        let! result = Async.AwaitEvent e.Publish

        cts.Cancel ()

        return result

    }



    /// ## map



    let inline map fn a = async {

        let! x = a

        return fn x

    }



    /// ## catch



    let inline catch a =

        a

        |> Async.Catch

        ...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module AsyncSeq =



    open Common



    /// ## subscribeEvent



    let inline subscribeEvent (event: IEvent<'H, 'A>) map =

        let observable = System.Reactive.Linq.Observable.FromEventPattern<'H, 

'A>(event.AddHandler, event.RemoveHandler)

        System.Reactive.Linq.Observable.Select (observable, fun event -> map 

event.EventArgs)

        |> FSharp.Control.AsyncSeq.ofObservableBuffered



    let subscribeToken (token : System.Threading.CancellationToken) =

        let tcs = new System.Threading.Tasks.TaskCompletionSource ()

        System.Action tcs.SetResult |> token.Register |> ignore

        let start = System.DateTime.Now.Ticks

        FSharp.Control.AsyncSeq.unfoldAsync

            (fun (...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Runtime =



    open Common



    /// ## isWindows



    let isWindows =

        fun () ->

            System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform

                System.Runtime.InteropServices.OSPlatform.Windows

        |> memoize



    /// ## getExecutableSuffix



    let inline getExecutableSuffix () =

        if isWindows ()

        then ".exe"

        else ""



    /// ## splitCommand



    type private CommandParseStep =

        | Start

        | Path of quoted: bool

        | Arguments



    let splitCommand (command: string) =

        let rec loop (path, args) chars step =

            match chars, step with

            | ('"' | '\'') :: tail, _ when path = "" -> loop (pat...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module FileSystem =



    open Common



    /// ## Operators



    module Operators =

        let inline (</>) a b =

            System.IO.Path.Combine (a, b)



    open Operators



    /// ## createTempDirectoryName



    let inline createTempDirectoryName () =

        let root = System.Reflection.Assembly.GetEntryAssembly().GetName().Name



        System.IO.Path.GetTempPath ()

        </> $"!{root}"

        </> string (newGuidFromDateTime System.DateTime.Now)



    /// ## createTempDirectory



    let inline createTempDirectory () =

        let tempFolder = createTempDirectoryName ()

        let result = System.IO.Directory.CreateDirectory tempFolder



        if not result.Exists then

            let ge...



── fsharp ──────────────────────────────────────────────────────────────────────

open Common

open FParsec



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## escapeCell (test)                                                         │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let inline escapeCell input =

    input

    |> String.split [[| '\n' |]]

    |> Array.map (function

        | line when line |> String.startsWith "\\#!" || line |> 

String.startsWith "\\#r" ->

            System.Text.RegularExpressions.Regex.Replace (line, "^\\\\#", "#")

        | line -> line

    )

    |> String.concat "\n"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



$"a{nl}\\#!magic{nl}b{nl}"

|> escapeCell

|> _equal (

    $"a{nl}#!magic{nl}b{nl}"

)



╭─[ 49.68ms - stdout ]─────────────────────────────────────────────────────────╮

│ a                                                                            │

│ #!magic                                                                      │

│ b                                                                            │

│                                                                              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## magicMarker                                                               │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let magicMarker : Parser<string, unit> = pstring "#!"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"#!magic"

|> run magicMarker

|> _equal (

    Success ("#!", (), Position ("", 2, 1, 3))

)



╭─[ 44.34ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item1: #!                                                              │

│       Item2: <null>                                                          │

│       Item3: Position                                                        │

│         Index: 2                                                             │

│         Line: 1                                                              │

│         Column: 3                                                            │

│         StreamName:                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"##!magic"

|> run magicMarker

|> _equal (

    Failure (

        $"Error in Ln: 1 Col: 1{nl}##!magic{nl}^{nl}Expecting: '#!'{nl}",

        ParserError (

            Position ("", 0, 1, 1),

            (),

            ErrorMessageList (ExpectedString "#!")

        ),

        ()

    )

)



╭─[ 50.31ms - stdout ]─────────────────────────────────────────────────────────╮

│ Failure                                                                      │

│       Item1: Error in Ln: 1 Col: 1                                           │

│ ##!magic                                                                     │

│ ^                                                                            │

│ Expecting: '#!'                                                              │

│                                                                              │

│       Item2: ParserError                                                     │

│         Position: Position                                                   │

│           Index: 0                                                           │

│           Line: 1                                                            │

│           Column: 1                                                          │

│           StreamName:                                                        │

│         UserState: <null>                                                    │

│         Messages: ErrorMessageList                                           │

│           Head: ExpectedString                                               │

│             String: #!                                                       │

│             Type: ExpectedString                                             │

│           Tail: <null>                                                       │

│       Item3: <null>                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## magicCommand                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let magicCommand =

    magicMarker

    >>. manyTill anyChar newline

    |>> (System.String.Concat >> String.trim)



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"#!magic



a"

|> run magicCommand

|> _equal (

    Success ("magic", (), Position ("", 8, 2, 1))

)



╭─[ 30.73ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item1: magic                                                           │

│       Item2: <null>                                                          │

│       Item3: Position                                                        │

│         Index: 8                                                             │

│         Line: 2                                                              │

│         Column: 1                                                            │

│         StreamName:                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



" #!magic



a"

|> run magicCommand

|> _equal (

    Failure (

        $"Error in Ln: 1 Col: 1{nl} #!magic{nl}^{nl}Expecting: '#!'{nl}",

        ParserError (

            Position ("", 0, 1, 1),

            (),

            ErrorMessageList (ExpectedString "#!")

        ),

        ()

    )

)



╭─[ 35.12ms - stdout ]─────────────────────────────────────────────────────────╮

│ Failure                                                                      │

│       Item1: Error in Ln: 1 Col: 1                                           │

│  #!magic                                                                     │

│ ^                                                                            │

│ Expecting: '#!'                                                              │

│                                                                              │

│       Item2: ParserError                                                     │

│         Position: Position                                                   │

│           Index: 0                                                           │

│           Line: 1                                                            │

│           Column: 1                                                          │

│           StreamName:                                                        │

│         UserState: <null>                                                    │

│         Messages: ErrorMessageList                                           │

│           Head: ExpectedString                                               │

│             String: #!                                                       │

│             Type: ExpectedString                                             │

│           Tail: <null>                                                       │

│       Item3: <null>                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## content                                                                   │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let content =

    (newline >>. magicMarker) <|> (eof >>. preturn "")

    |> attempt

    |> lookAhead

    |> manyTill anyChar

    |>> (System.String.Concat >> String.trim)



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"#!magic





a





"

|> run content

|> _equal (

    Success ("#!magic





a", (), Position ("", 14, 7, 1))

)



╭─[ 29.00ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item1: #!magic                                                         │

│                                                                              │

│                                                                              │

│ a                                                                            │

│       Item2: <null>                                                          │

│       Item3: Position                                                        │

│         Index: 14                                                            │

│         Line: 7                                                              │

│         Column: 1                                                            │

│         StreamName:                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## Block                                                                     │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

type Block =

    {

        magic : string

        content : string

    }



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## block                                                                     │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let block =

    pipe2

        magicCommand

        content

        (fun magic content ->

            {

                magic = magic

                content = content

            })



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"#!magic





a





"

|> run block

|> _equal (

    Success (

        { magic = "magic"; content = "a" },

        (),

        Position ("", 14, 7, 1)

    )

)



╭─[ 34.07ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item1: Block                                                           │

│         magic: magic                                                         │

│         content: a                                                           │

│       Item2: <null>                                                          │

│       Item3: Position                                                        │

│         Index: 14                                                            │

│         Line: 7                                                              │

│         Column: 1                                                            │

│         StreamName:                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## blocks                                                                    │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let blocks =

    skipMany newline

    >>. sepEndBy block (skipMany1 newline)



── fsharp ──────────────────────────────────────────────────────────────────────

//// test





"#!magic1



a



\#!magic2



b



"

|> escapeCell

|> run blocks

|> _equal (

    Success (

        [[

            { magic = "magic1"; content = "a" }

            { magic = "magic2"; content = "b" }

        ]],

        (),

        Position ("", 26, 9, 1)

    )

)



╭─[ 41.31ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item1: FSharpList<Block>                                               │

│         - magic: magic1                                                      │

│           content: a                                                         │

│         - magic: magic2                                                      │

│           content: b                                                         │

│       Item2: <null>                                                          │

│       Item3: Position                                                        │

│         Index: 26                                                            │

│         Line: 9                                                              │

│         Column: 1                                                            │

│         StreamName:                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## Output                                                                    │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

type Output =

    | Fs

    | Md

    | Spi

    | Spir



let inline kernelOutputs magic =

    match magic with

    | "fsharp" -> [[ Fs ]]

    | "markdown" -> [[ Md ]]

    | "spiral" -> [[ Spi; Spir ]]

    | _ -> [[]]



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## formatBlock                                                               │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline formatBlock output (block : Block) =

    match output, block with

    | output, { magic = "markdown"; content = content } ->

        let markdownComment =

            match output with

            | Spi | Spir -> "// // "

            | Fs -> "/// "

            | _ -> ""

        content

        |> String.split [[| '\n' |]]

        |> Array.map (String.trimEnd [[||]])

        |> Array.filter (String.endsWith " (test)" >> not)

        |> Array.map (function

            | "" -> markdownComment |> String.trim

            | line -> System.Text.RegularExpressions.Regex.Replace (line, 

"^\\s*", $"$&{markdownComment}")

        )

        |> String.concat "\n"

    | Fs, { magic = "fsharp"; content = content } ->

        let trimmedContent = content |> String.trim

        if trimmedContent |> String.startsWith "//// test" || trimmedContent |> 

String.startsWith "//// ignore"

        then ""

        else

            content

            |> String.split [[| '\n' |]]

            |> Array.filter (String.trimStart [[||]] >> String.startsWith "#r" 

>> not)

            |> String.concat "\n"

    | (Spi | Spir), { magic = "spiral"; content = content } ->

        let trimmedContent = content |> String.trim

        if trimmedContent |> String.startsWith "// // test" || trimmedContent |>

String.startsWith "// // ignore"

        then ""

        else content

    | _ -> ""



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"#!markdown





a



    b



c





\#!markdown





c





\#!fsharp





let a = 1"

|> escapeCell

|> run block

|> function

    | Success (block, _, _) -> formatBlock Fs block

    | Failure (msg, _, _) -> failwith msg

|> _equal "/// a

///

    /// b

///

/// c"



╭─[ 56.04ms - stdout ]─────────────────────────────────────────────────────────╮

│ /// a                                                                        │

│ ///                                                                          │

│     /// b                                                                    │

│ ///                                                                          │

│ /// c                                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## formatBlocks                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline formatBlocks output blocks =

    blocks

    |> List.map (formatBlock output)

    |> List.filter ((<>) "")

    |> String.concat "\n\n"

    |> fun s -> s + "\n"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"#!markdown





a



b





\#!markdown





c





\#!fsharp





let a = 1



\#!markdown



d (test)



\#!fsharp



//// test



let a = 2



\#!markdown



e



\#!fsharp



let a = 3"

|> escapeCell

|> run blocks

|> function

    | Success (blocks, _, _) -> formatBlocks Fs blocks

    | Failure (msg, _, _) -> failwith msg

|> _equal "/// a

///

/// b



/// c



let a = 1



/// e



let a = 3

"



╭─[ 59.51ms - stdout ]─────────────────────────────────────────────────────────╮

│ /// a                                                                        │

│ ///                                                                          │

│ /// b                                                                        │

│                                                                              │

│ /// c                                                                        │

│                                                                              │

│ let a = 1                                                                    │

│                                                                              │

│ /// e                                                                        │

│                                                                              │

│ let a = 3                                                                    │

│                                                                              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## parse                                                                     │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline parse output input =

    match run blocks input with

    | Success (blocks, _, _) ->

        let blocks =

            blocks

            |> List.filter (fun block ->

                block.magic |> kernelOutputs |> List.contains output || 

block.magic = "markdown"

            )

        

        match blocks with

        | { magic = "markdown"; content = content } :: _

            when output = Fs

            && content |> String.startsWith "# "

            && content |> String.endsWith ")"

            ->

            let inline indentBlock (block : Block) =

                { block with

                    content =

                        block.content

                        |> String.split [[| '\n' |]]

                        |> Array.fold

                            (fun (lines, isMultiline) line ->

                                let trimmedLine = line |> String.trim

                                if trimmedLine = ""

                                then "" :: lines, isMultiline

                                else

                                    let inline singleQuoteLine () =

                                        trimmedLine |> Seq.sumBy ((=) '"' >> 

System.Convert.ToInt32) = 1

                                        && trimmedLine |> String.contains 

@"'""'" |> not

                                        && trimmedLine |> String.endsWith "{" |>

not

                                        && trimmedLine |> String.endsWith "{|" 

|> not

                                        && trimmedLine |> String.startsWith "}" 

|> not

                                        && trimmedLine |> String.startsWith "|}"

|> not



                                    match isMultiline, trimmedLine |> 

String.splitString [[| $"{q}{q}{q}" |]] with

                                    | false, [[| _; _ |]] ->

                                        $"    {line}" :: lines, true



                                    | true, [[| _; _ |]] ->

                                        line :: lines, false



                                    | false, _ when singleQuoteLine () ->

                                        $"    {line}" :: lines, true



                                    | false, _ when line |> String.startsWith 

"#" && block.magic = "fsharp" ->

                                        line :: lines, false



                                    | false, _ ->

                                        $"    {line}" :: lines, false



                                    | true, _ when singleQuoteLine () && line |>

String.startsWith "    " ->

                                        $"    {line}" :: lines, false



                                    | true, _ when singleQuoteLine () ->

                                        line :: lines, false



                                    | true, _ ->

                                        line :: lines, true

                            )

                            ([[]], false)

                        |> fst

                        |> List.rev

                        |> String.concat "\n"

                }



            let moduleName, namespaceName =

                System.Text.RegularExpressions.Regex.Match (content, @"# (.*) 

\((.*)\)$")

                |> fun m -> m.Groups.[[1]].Value, m.Groups.[[2]].Value



            let moduleBlock =

                {

                    magic = "fsharp"

                    content =

                        $"#if !INTERACTIVE

namespace {namespaceName}

#endif



module {moduleName} ="

                }



            blocks

            |> List.indexed

            |> List.fold

                (fun blocks (index, block) ->

                    match index with

                    | 0 -> blocks

                    | 1 -> indentBlock block :: moduleBlock :: blocks

                    | _ -> indentBlock block :: blocks

                )

                [[]]

            |> List.rev

        | _ -> blocks

        |> Result.Ok

    | Failure (errorMsg, _, _) -> Result.Error errorMsg



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let example1 =

    $"""#!meta



{{"kernelInfo":{{"defaultKernelName":"fsharp","items":[[{{"aliases":[[]],"name":

"fsharp"}},{{"aliases":[[]],"name":"fsharp"}}]]}}}}



\#!markdown



# TestModule (TestNamespace)



\#!fsharp



\#!import file.dib



\#!fsharp



\#r "nuget:Expecto"



\#!markdown



## ParserLibrary



\#!fsharp



open System



\#!markdown



## x (test)



\#!fsharp



//// ignore



let x = 1



\#!spiral



// // test



inl x = 0i32



\#!spiral



inl x = 0i32



\#!markdown



### TextInput



\#!fsharp



let str1 = "abc

def"



let str2 =

    "abc\

def"



let str3 =

    $"1{{

        1

    }}1"



let str4 =

    $"1{{({{|

        a = 1

    |}}).a}}1"



let str5 =

    "abc \

        def"



let x =

    match '"' with

    | '"' -> true

    | _ -> false



let long1 = {q}{q}{q}a{q}{q}{q}



let long2 =

    {q}{q}{q}

a

{q}{q}{q}



\#!fsharp



type Position =

    {{

#if INTERACTIVE

        line : string

#else

        line : int

#endif

        column : int

    }}"""

    |> escapeCell



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



example1

|> parse Fs

|> Result.toOption

|> Option.get

|> (formatBlocks Fs)

|> _equal $"""#if !INTERACTIVE

namespace TestNamespace

#endif



module TestModule =



    /// ## ParserLibrary



    open System



    /// ### TextInput



    let str1 = "abc

def"



    let str2 =

        "abc\

def"



    let str3 =

        $"1{{

            1

        }}1"



    let str4 =

        $"1{{({{|

            a = 1

        |}}).a}}1"



    let str5 =

        "abc \

            def"



    let x =

        match '"' with

        | '"' -> true

        | _ -> false



    let long1 = {q}{q}{q}a{q}{q}{q}



    let long2 =

        {q}{q}{q}

a

{q}{q}{q}



    type Position =

        {{

#if INTERACTIVE

            line : string

#else

            line : int

#endif

            column : int

        }}

"""



╭─[ 135.37ms - stdout ]────────────────────────────────────────────────────────╮

│ #if !INTERACTIVE                                                             │

│ namespace TestNamespace                                                      │

│ #endif                                                                       │

│                                                                              │

│ module TestModule =                                                          │

│                                                                              │

│     /// ## ParserLibrary                                                     │

│                                                                              │

│     open System                                                              │

│                                                                              │

│     /// ### TextInput                                                        │

│                                                                              │

│     let str1 = "abc                                                          │

│ def"                                                                         │

│                                                                              │

│     let str2 =                                                               │

│         "abc\                                                                │

│ def"                                                                         │

│                                                                              │

│     let str3 =                                                               │

│         $"1{                                                                 │

│             1                                                                │

│         }1"                                                                  │

│                                                                              │

│     let str4 =                                                               │

│         $"1{({|                                                              │

│             a = 1                                                            │

│         |}).a}1"                                                             │

│                                                                              │

│     let str5 =                                                               │

│         "abc \                                                               │

│             def"                                                             │

│                                                                              │

│     let x =                                                                  │

│         match '"' with                                                       │

│         | '"' -> true                                                        │

│         | _ -> false                                                         │

│                                                                              │

│     let long1 = """a"""                                                      │

│                                                                              │

│     let long2 =                                                              │

│         """                                                                  │

│ a                                                                            │

│ """                                                                          │

│                                                                              │

│     type Position =                                                          │

│         {                                                                    │

│ #if INTERACTIVE                                                              │

│             line : string                                                    │

│ #else                                                                        │

│             line : int                                                       │

│ #endif                                                                       │

│             column : int                                                     │

│         }                                                                    │

│                                                                              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



example1

|> parse Md

|> Result.toOption

|> Option.get

|> (formatBlocks Md)

|> _equal "# TestModule (TestNamespace)



## ParserLibrary



### TextInput

"



╭─[ 133.90ms - stdout ]────────────────────────────────────────────────────────╮

│ # TestModule (TestNamespace)                                                 │

│                                                                              │

│ ## ParserLibrary                                                             │

│                                                                              │

│ ### TextInput                                                                │

│                                                                              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



example1

|> parse Spi

|> Result.toOption

|> Option.get

|> (formatBlocks Spi)

|> _equal "// // # TestModule (TestNamespace)



// // ## ParserLibrary



inl x = 0i32



// // ### TextInput

"



╭─[ 141.96ms - stdout ]────────────────────────────────────────────────────────╮

│ // // # TestModule (TestNamespace)                                           │

│                                                                              │

│ // // ## ParserLibrary                                                       │

│                                                                              │

│ inl x = 0i32                                                                 │

│                                                                              │

│ // // ### TextInput                                                          │

│                                                                              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## parseDibCode                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline parseDibCode output file = async {

    let getLocals () = $"output: {output} / file: {file} / {getLocals ()}"

    trace Debug (fun () -> "parseDibCode") getLocals

    let! input = file |> FileSystem.readAllTextAsync

    match parse output input with

    | Result.Ok blocks -> return blocks |> formatBlocks output

    | Result.Error msg -> return failwith msg

}



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## writeDibCode                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline writeDibCode output path = async {

    let getLocals () = $"output: {output} / path: {path} / {getLocals ()}"

    trace Debug (fun () -> "writeDibCode") getLocals

    let! result = parseDibCode output path

    let outputPath = path |> String.replace ".dib" $".{output |> string |> 

String.toLower}"

    do! result |> FileSystem.writeAllTextAsync outputPath

}



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## Arguments                                                                 │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

[[<RequireQualifiedAccess>]]

type Arguments =

    | [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.Mandatory>]]

        File of file : string * Output



    interface Argu.IArgParserTemplate with

        member s.Usage =

            match s with

            | File _ -> nameof File



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## main                                                                      │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let main args =

    let argsMap = args |> Runtime.parseArgsMap<Arguments>



    let files =

        argsMap.[[nameof Arguments.File]]

        |> List.map (function

            | Arguments.File (path, output) -> path, output

        )



    files

    |> List.map (fun (path, output) -> path |> writeDibCode output)

    |> Async.Parallel

    |> Async.Ignore

    |> Async.runWithTimeout 30000

    |> function

        | Some () -> 0

        | None -> 1



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let args =

    System.Environment.GetEnvironmentVariable "ARGS"

    |> Runtime.splitArgs

    |> Seq.toArray



match args with

| [[||]] -> 0

| args -> if main args = 0 then 0 else failwith "main failed"



╭─[ 196.74ms - return value ]──────────────────────────────────────────────────╮

│ <div class="dni-plaintext"><pre>0</pre></div><style>                         │

│ .dni-code-hint {                                                             │

│     font-style: italic;                                                      │

│     overflow: hidden;                                                        │

│     white-space: nowrap;                                                     │

│ }                                                                            │

│ .dni-treeview {                                                              │

│     white-space: nowrap;                                                     │

│ }                                                                            │

│ .dni-treeview td {                                                           │

│     vertical-align: top;                                                     │

│     text-align: start;                                                       │

│ }                                                                            │

│ details.dni-treeview {                                                       │

│     padding-left: 1em;                                                       │

│ }                                                                            │

│ table td {                                                                   │

│     text-align: start;                                                       │

│ }                                                                            │

│ table tr {                                                                   │

│     vertical-align: top;                                                     │

│     margin: 0em 0px;                                                         │

│ }                                                                            │

│ table tr td pre                                                              │

│ {                                                                            │

│     vertical-align: top !important;                                          │

│     margin: 0em 0px !important;                                              │

│ }                                                                            │

│ table th {                                                                   │

│     text-align: start;                                                       │

│ }                                                                            │

│ </style>                                                                     │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 210.47ms - stdout ]────────────────────────────────────────────────────────╮

│ 00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Builder.dib            │

│ 00:00:00 #2 [Debug] parseDibCode / output: Fs / file: Builder.dib            │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ # Builder (Polyglot)                                                         │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../nbs/Testing.dib



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A

spNetCore.Html.Abstractions.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.Formatting.dll"

open System

open System.IO

open System.Text

open Microsoft.DotNet.Interactive.Formatting



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

open type Microsoft.DotNet.Interactive.Kernel



── fsharp - import ─────────────────────────────────────────────────────────────

#r @"../../../../../../../.nuget/packages/expecto/10.1.0/lib/net6.0/Expecto.dll"



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



Formatter.ListExpansionLimit <- 100



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



type AssertExceptionFormatter (ex) =

    member _.Text =

        ex.ToString()

            .Replace("32m", "<span style=\"color: green;\">")

            .Replace("36m", "</span>")

            .Replace("31m", "<span style=\"color: red;\">")

            .Replace("\n", "<br/>\n")





Formatter.Register<AssertExceptionFormatter> ((fun (x : 

AssertExceptionFormatter) -> x.Text), "text/html")



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __expect fn log expected actual =

    if log then printfn $"{actual.ToDisplayString ()}"

    try

        "Testing.__expect" |> fn actual expected

    with :? Expecto.AssertException as ex ->

        AssertExceptionFormatter(ex).Display () |> ignore

        failwith (ex.GetType().FullName)



let inline __contains log expected actual = __expect Expecto.Expect.contains log

expected actual

let inline _contains expected actual = __contains true expected actual



let inline __equal log expected actual = __expect Expecto.Expect.equal log 

expected actual

let inline _equal expected actual = __equal true expected actual



let inline __isGreaterThan log expected actual = __expect 

Expecto.Expect.isGreaterThan log expected actual

let ...



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __isBetween log a b actual =

    let inline isBetween actual (a, b) _ =

        __isGreaterThanOrEqual log a actual

        __isLessThanOrEqual log b actual

    __expect isBetween log (a, b) actual

let inline _isBetween a b actual = __isBetween true a b actual



── fsharp ──────────────────────────────────────────────────────────────────────

#r 

@"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan

dard2.1/FSharp.Control.AsyncSeq.dll"

#r 

@"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.

0/System.Reactive.dll"

#r 

@"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/

netstandard2.0/System.Reactive.Linq.dll"

#r 

@"../../../../../../../.nuget/packages/argu/6.1.1/lib/netstandard2.0/Argu.dll"

#r 

@"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li

b/net6.0/System.CommandLine.dll"



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../nbs/Common.fs

#!import ../nbs/CommonFSharp.fs

#!import ../nbs/Async.fs

#!import ../nbs/AsyncSeq.fs

#!import ../nbs/Networking.fs

#!import ../nbs/Runtime.fs

#!import ../nbs/FileSystem.fs



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Common =



    let nl = System.Environment.NewLine

    let q = @""""



    let inline cons head tail = head :: tail



    module String =

        let inline contains (value : string) (input : string) =

            input.Contains value



        let inline endsWith (value : string) (input : string) =

            input.EndsWith value



        let inline padLeft totalWidth paddingChar (input : string) =

            input.PadLeft (totalWidth, paddingChar)



        let inline replace (oldValue : string) (newValue : string) (input : 

string) =

            input.Replace (oldValue, newValue)



        let inline split separator (input : string) =

            input.Split separator



        let inline spli...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module CommonFSharp =



    open Common



    /// ## getUnionCaseName



    let inline getUnionCaseName<'T> (x: 'T) =

        match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with

        | case, _ -> case.Name





── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Async =



    open Common



    /// ## choice



    let inline choice asyncs = async {

        let e = Event<_> ()

        use cts = new System.Threading.CancellationTokenSource ()

        let fn =

            asyncs

            |> Seq.map (fun a -> async {

                let! x = a

                e.Trigger x

            })

            |> Async.Parallel

            |> Async.Ignore

        Async.Start (fn, cts.Token)

        let! result = Async.AwaitEvent e.Publish

        cts.Cancel ()

        return result

    }



    /// ## map



    let inline map fn a = async {

        let! x = a

        return fn x

    }



    /// ## catch



    let inline catch a =

        a

        |> Async.Catch

        ...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module AsyncSeq =



    open Common



    /// ## subscribeEvent



    let inline subscribeEvent (event: IEvent<'H, 'A>) map =

        let observable = System.Reactive.Linq.Observable.FromEventPattern<'H, 

'A>(event.AddHandler, event.RemoveHandler)

        System.Reactive.Linq.Observable.Select (observable, fun event -> map 

event.EventArgs)

        |> FSharp.Control.AsyncSeq.ofObservableBuffered



    let subscribeToken (token : System.Threading.CancellationToken) =

        let tcs = new System.Threading.Tasks.TaskCompletionSource ()

        System.Action tcs.SetResult |> token.Register |> ignore

        let start = System.DateTime.Now.Ticks

        FSharp.Control.AsyncSeq.unfoldAsync

            (fun (...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Networking =



    open Common



    /// ## testPortOpen



    let inline testPortOpen port = async {

        let! ct = Async.CancellationToken

        use client = new System.Net.Sockets.TcpClient ()

        try

            do! client.ConnectAsync ("127.0.0.1", port, ct) |> 

Async.awaitValueTaskUnit

            return true

        with ex ->

            trace Verbose (fun () -> $"testPortOpen / ex: {ex |> 

printException}") getLocals

            return false

    }



    let inline testPortOpenTimeout timeout port = async {

        let! result =

            testPortOpen port

            |> Async.runWithTimeoutAsync timeout

        return

            match result with

            | None -> false

 ...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Runtime =



    open Common



    /// ## isWindows



    let isWindows =

        fun () ->

            System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform

                System.Runtime.InteropServices.OSPlatform.Windows

        |> memoize



    /// ## getExecutableSuffix



    let inline getExecutableSuffix () =

        if isWindows ()

        then ".exe"

        else ""



    /// ## splitCommand



    type private CommandParseStep =

        | Start

        | Path of quoted: bool

        | Arguments



    let splitCommand (command: string) =

        let rec loop (path, args) chars step =

            match chars, step with

            | ('"' | '\'') :: tail, _ when path = "" -> loop (pat...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module FileSystem =



    open Common



    /// ## Operators



    module Operators =

        let inline (</>) a b =

            System.IO.Path.Combine (a, b)



    open Operators



    /// ## createTempDirectoryName



    let inline createTempDirectoryName () =

        let root = System.Reflection.Assembly.GetEntryAssembly().GetName().Name



        System.IO.Path.GetTempPath ()

        </> $"!{root}"

        </> string (newGuidFromDateTime System.DateTime.Now)



    /// ## createTempDirectory



    let inline createTempDirectory () =

        let tempFolder = createTempDirectoryName ()

        let result = System.IO.Directory.CreateDirectory tempFolder



        if not result.Exists then

            let ge...



── fsharp ──────────────────────────────────────────────────────────────────────

open Common

open FileSystem.Operators



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## buildProject                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline buildProject runtime path = async {

    let fullPath = path |> System.IO.Path.GetFullPath

    let fileDir = fullPath |> System.IO.Path.GetDirectoryName

    let extension = fullPath |> System.IO.Path.GetExtension



    let getLocals () = $"fullPath: {fullPath} / {getLocals ()}"

    trace Debug (fun () -> "buildProject") getLocals



    match extension with

    | ".fsproj" -> ()

    | _ -> failwith "Invalid project file"



    let runtimes =

        runtime

        |> Option.map List.singleton

        |> Option.defaultValue [[ "linux-x64"; "win-x64" ]]



    return!

        runtimes

        |> List.map (fun runtime -> async {

            let! exitCode, _result =

                Runtime.executeWithOptionsAsync

                    {

                        Command = $"dotnet publish -c release -o ../dist -r 

{runtime}"

                        CancellationToken = None

                        OnLine = None

                        WorkingDirectory = Some fileDir

                    }



            return exitCode

        })

        |> Async.Sequential

        |> Async.map Array.sum

}



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## persistCodeProject                                                        │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline persistCodeProject packages modules path name code = async {

    let getLocals () = $"packages: {packages} / modules: {modules} / path: 

{path} / name: {name} / code.Length: {code |> String.length} / {getLocals ()}"

    trace Debug (fun () -> "persistCodeProject") getLocals



    let targetPath = path </> "target"

    System.IO.Directory.CreateDirectory targetPath |> ignore



    let filePath = targetPath </> $"{name}.fs" |> System.IO.Path.GetFullPath

    do! code |> FileSystem.writeAllTextExists filePath



    let repositoryRoot = FileSystem.getSourceDirectory () |> 

FileSystem.findParent ".paket" false



    let modulesCode =

        modules

        |> List.map (fun path -> $"""<Compile Include="{repositoryRoot </> 

path}" />""")

        |> String.concat "\n        "



    let fsprojPath = targetPath </> $"{name}.fsproj"

    let fsprojCode = $"""<Project Sdk="Microsoft.NET.Sdk">

    <PropertyGroup>

        <TargetFramework>net8.0</TargetFramework>

        <LangVersion>preview</LangVersion>

        <RollForward>Major</RollForward>

        <TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>

        <PublishAot>false</PublishAot>

        <PublishTrimmed>false</PublishTrimmed>

        <PublishSingleFile>true</PublishSingleFile>

        <SelfContained>true</SelfContained>

        <Version>0.0.1-alpha.1</Version>

        <OutputType>Exe</OutputType>

    </PropertyGroup>



    <ItemGroup>

        {modulesCode}

        <Compile Include="{filePath}" />

    </ItemGroup>



    <Import Project="{repositoryRoot}/.paket/Paket.Restore.targets" />

</Project>

"""

    do! fsprojCode |> FileSystem.writeAllTextExists fsprojPath



    let paketReferencesPath = targetPath </> "paket.references"

    let paketReferencesCode =

        "FSharp.Core" :: packages

        |> String.concat "\n"

    do! paketReferencesCode |> FileSystem.writeAllTextExists paketReferencesPath



    return fsprojPath

}



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## buildCode                                                                 │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline buildCode runtime packages modules path name code = async {

    let! fsprojPath = persistCodeProject packages modules path name code

    return! fsprojPath |> buildProject runtime

}



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let tempFolder = FileSystem.getSourceDirectory () </> "target/test"



"1 + 1"

|> buildCode None [[]] [[]] tempFolder "test"

|> Async.runWithTimeout 60000

|> _equal (Some 0)



╭─[ 14.71s - stdout ]──────────────────────────────────────────────────────────╮

│ 00:00:00 #1 [Debug] persistCodeProject / packages: [] / modules: [] / path:  │

│ C:\home\git\polyglot\apps\builder\target/test / name: test / code.Length: 5  │

│ 00:00:00 #2 [Debug] buildProject / fullPath:                                 │

│ C:\home\git\polyglot\apps\builder\target\test\target\test.fsproj             │

│ 00:00:00 #3 [Debug] executeAsync / options: { Command = "dotnet publish -c   │

│ release -o ../dist -r linux-x64"                                             │

│   WorkingDirectory = Some                                                    │

│ "C:\home\git\polyglot\apps\builder\target\test\target"                       │

│   CancellationToken = None                                                   │

│   OnLine = None }                                                            │

│ 00:00:00 #4 [Debug] > MSBuild version 17.8.0-preview-23418-03+0125fc9fb for  │

│ .NET                                                                         │

│ 00:00:00 #5 [Debug] >   Determining projects to restore...                   │

│ 00:00:03 #6 [Debug] >   Restored                                             │

│ C:\home\git\polyglot\apps\builder\target\test\target\test.fsproj (in 2.79    │

│ sec).                                                                        │

│ 00:00:04 #7 [Debug] > C:\Program                                             │

│ Files\dotnet\sdk\8.0.100-rc.1.23463.5\Sdks\Microsoft.NET.Sdk\targets\Microso │

│ ft.NET.RuntimeIdentifierInference.targets(311,5): message NETSDK1057: You    │

│ are using a preview version of .NET. See:                                    │

│ https://aka.ms/dotnet-support-policy [                                       │

│ C:\home\git\polyglot\apps\builder\target\test\target\test.fsproj]            │

│ 00:00:05 #8 [Debug] >                                                        │

│ C:\home\git\polyglot\apps\builder\target\test\target\test.fs(1,1): warning   │

│ FS0020: The result of this expression has type 'int' and is implicitly       │

│ ignored. Consider using 'ignore' to discard this value explicitly, e.g.      │

│ 'expr |> ignore', or 'let' to bind the result to a name, e.g. 'let result =  │

│ expr'. [C:\home\git\polyglot\apps\builder\target\test\target\test.fsproj]    │

│ 00:00:05 #9 [Debug] >                                                        │

│ C:\home\git\polyglot\apps\builder\target\test\target\test.fs(1,6): warning   │

│ FS0988: Main module of program is empty: nothing will happen when it is run  │

│ [C:\home\git\polyglot\apps\builder\target\test\target\test.fsproj]           │

│ 00:00:06 #10 [Debug] >   test ->                                             │

│ C:\home\git\polyglot\apps\builder\target\test\target\bin\release\net8.0\linu │

│ x-x64\test.dll                                                               │

│ 00:00:07 #11 [Debug] >   test ->                                             │

│ C:\home\git\polyglot\apps\builder\target\test\dist\                          │

│ 00:00:07 #12 [Debug] executeAsync / exitCode: 0 / output.Length: 1242        │

│ 00:00:07 #13 [Debug] executeAsync / options: { Command = "dotnet publish -c  │

│ release -o ../dist -r win-x64"                                               │

│   WorkingDirectory = Some                                                    │

│ "C:\home\git\polyglot\apps\builder\target\test\target"                       │

│   CancellationToken = None                                                   │

│   OnLine = None }                                                            │

│ 00:00:07 #14 [Debug] > MSBuild version 17.8.0-preview-23418-03+0125fc9fb for │

│ .NET                                                                         │

│ 00:00:08 #15 [Debug] >   Determining projects to restore...                  │

│ 00:00:09 #16 [Debug] >   Restored                                            │

│ C:\home\git\polyglot\apps\builder\target\test\target\test.fsproj (in 297     │

│ ms).                                                                         │

│ 00:00:09 #17 [Debug] > C:\Program                                            │

│ Files\dotnet\sdk\8.0.100-rc.1.23463.5\Sdks\Microsoft.NET.Sdk\targets\Microso │

│ ft.NET.RuntimeIdentifierInference.targets(311,5): message NETSDK1057: You    │

│ are using a preview version of .NET. See:                                    │

│ https://aka.ms/dotnet-support-policy [                                       │

│ C:\home\git\polyglot\apps\builder\target\test\target\test.fsproj]            │

│ 00:00:10 #18 [Debug] >                                                       │

│ C:\home\git\polyglot\apps\builder\target\test\target\test.fs(1,1): warning   │

│ FS0020: The result of this expression has type 'int' and is implicitly       │

│ ignored. Consider using 'ignore' to discard this value explicitly, e.g.      │

│ 'expr |> ignore', or 'let' to bind the result to a name, e.g. 'let result =  │

│ expr'. [C:\home\git\polyglot\apps\builder\target\test\target\test.fsproj]    │

│ 00:00:10 #19 [Debug] >                                                       │

│ C:\home\git\polyglot\apps\builder\target\test\target\test.fs(1,6): warning   │

│ FS0988: Main module of program is empty: nothing will happen when it is run  │

│ [C:\home\git\polyglot\apps\builder\target\test\target\test.fsproj]           │

│ 00:00:11 #20 [Debug] >   test ->                                             │

│ C:\home\git\polyglot\apps\builder\target\test\target\bin\release\net8.0\win- │

│ x64\test.dll                                                                 │

│ 00:00:14 #21 [Debug] >   test ->                                             │

│ C:\home\git\polyglot\apps\builder\target\test\dist\                          │

│ 00:00:14 #22 [Debug] executeAsync / exitCode: 0 / output.Length: 1238        │

│ FSharpOption<Int32>                                                          │

│       Value: 0                                                               │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let tempFolder = FileSystem.getSourceDirectory () </> "target/test"



"1 + a"

|> buildCode None [[]] [[]] tempFolder "test"

|> Async.runWithTimeout 60000

|> _equal (Some 2)



╭─[ 6.98s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:14 #23 [Debug] persistCodeProject / packages: [] / modules: [] / path: │

│ C:\home\git\polyglot\apps\builder\target/test / name: test / code.Length: 5  │

│ 00:00:14 #24 [Debug] buildProject / fullPath:                                │

│ C:\home\git\polyglot\apps\builder\target\test\target\test.fsproj             │

│ 00:00:14 #25 [Debug] executeAsync / options: { Command = "dotnet publish -c  │

│ release -o ../dist -r linux-x64"                                             │

│   WorkingDirectory = Some                                                    │

│ "C:\home\git\polyglot\apps\builder\target\test\target"                       │

│   CancellationToken = None                                                   │

│   OnLine = None }                                                            │

│ 00:00:14 #26 [Debug] > MSBuild version 17.8.0-preview-23418-03+0125fc9fb for │

│ .NET                                                                         │

│ 00:00:15 #27 [Debug] >   Determining projects to restore...                  │

│ 00:00:16 #28 [Debug] >   Restored                                            │

│ C:\home\git\polyglot\apps\builder\target\test\target\test.fsproj (in 291     │

│ ms).                                                                         │

│ 00:00:16 #29 [Debug] > C:\Program                                            │

│ Files\dotnet\sdk\8.0.100-rc.1.23463.5\Sdks\Microsoft.NET.Sdk\targets\Microso │

│ ft.NET.RuntimeIdentifierInference.targets(311,5): message NETSDK1057: You    │

│ are using a preview version of .NET. See:                                    │

│ https://aka.ms/dotnet-support-policy [                                       │

│ C:\home\git\polyglot\apps\builder\target\test\target\test.fsproj]            │

│ 00:00:17 #30 [Debug] >                                                       │

│ C:\home\git\polyglot\apps\builder\target\test\target\test.fs(1,5): error     │

│ FS0039: The value or constructor 'a' is not defined. [                       │

│ C:\home\git\polyglot\apps\builder\target\test\target\test.fsproj]            │

│ 00:00:18 #31 [Debug] executeAsync / exitCode: 1 / output.Length: 684         │

│ 00:00:18 #32 [Debug] executeAsync / options: { Command = "dotnet publish -c  │

│ release -o ../dist -r win-x64"                                               │

│   WorkingDirectory = Some                                                    │

│ "C:\home\git\polyglot\apps\builder\target\test\target"                       │

│   CancellationToken = None                                                   │

│   OnLine = None }                                                            │

│ 00:00:18 #33 [Debug] > MSBuild version 17.8.0-preview-23418-03+0125fc9fb for │

│ .NET                                                                         │

│ 00:00:18 #34 [Debug] >   Determining projects to restore...                  │

│ 00:00:19 #35 [Debug] >   Restored                                            │

│ C:\home\git\polyglot\apps\builder\target\test\target\test.fsproj (in 329     │

│ ms).                                                                         │

│ 00:00:19 #36 [Debug] > C:\Program                                            │

│ Files\dotnet\sdk\8.0.100-rc.1.23463.5\Sdks\Microsoft.NET.Sdk\targets\Microso │

│ ft.NET.RuntimeIdentifierInference.targets(311,5): message NETSDK1057: You    │

│ are using a preview version of .NET. See:                                    │

│ https://aka.ms/dotnet-support-policy [                                       │

│ C:\home\git\polyglot\apps\builder\target\test\target\test.fsproj]            │

│ 00:00:20 #37 [Debug] >                                                       │

│ C:\home\git\polyglot\apps\builder\target\test\target\test.fs(1,5): error     │

│ FS0039: The value or constructor 'a' is not defined. [                       │

│ C:\home\git\polyglot\apps\builder\target\test\target\test.fsproj]            │

│ 00:00:21 #38 [Debug] executeAsync / exitCode: 1 / output.Length: 684         │

│ FSharpOption<Int32>                                                          │

│       Value: 2                                                               │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## buildFile                                                                 │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline buildFile runtime packages modules path = async {

    let fullPath = path |> System.IO.Path.GetFullPath

    let dir = fullPath |> System.IO.Path.GetDirectoryName

    let fileName = fullPath |> System.IO.Path.GetFileNameWithoutExtension

    let! code = fullPath |> FileSystem.readAllTextAsync



    let code = System.Text.RegularExpressions.Regex.Replace (

        code,

        @"( *)(let\s+main\s+.*?\s*=)",

        fun m -> m.Groups.[[1]].Value + "[[<EntryPoint>]]\n" + 

m.Groups.[[1]].Value + m.Groups.[[2]].Value

    )



    return! code |> buildCode runtime packages modules dir fileName

}



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## Arguments                                                                 │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

[[<RequireQualifiedAccess>]]

type Arguments =

    | [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.ExactlyOnce>]] 

Path of path : string

    | [[<Argu.ArguAttributes.Unique>]] Packages of packages : string list

    | [[<Argu.ArguAttributes.Unique>]] Modules of modules : string list

    | [[<Argu.ArguAttributes.Unique>]] Runtime of runtime : string



    interface Argu.IArgParserTemplate with

        member s.Usage =

            match s with

            | Path _ -> nameof Path

            | Packages _ -> nameof Packages

            | Modules _ -> nameof Modules

            | Runtime _ -> nameof Runtime



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## main                                                                      │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let main args =

    let argsMap = args |> Runtime.parseArgsMap<Arguments>



    let path =

        match argsMap.[[nameof Arguments.Path]] with

        | [[ Arguments.Path path ]] -> Some path

        | _ -> None

        |> Option.get



    let packages =

        match argsMap |> Map.tryFind (nameof Arguments.Packages) with

        | Some [[ Arguments.Packages packages ]] -> packages

        | _ -> [[]]



    let modules =

        match argsMap |> Map.tryFind (nameof Arguments.Modules) with

        | Some [[ Arguments.Modules modules ]] -> modules

        | _ -> [[]]



    let runtime =

        match argsMap |> Map.tryFind (nameof Arguments.Runtime) with

        | Some [[ Arguments.Runtime runtime ]] -> Some runtime

        | _ -> None



    path

    |> buildFile runtime packages modules

    |> Async.runWithTimeout 60000

    |> function

        | Some exitCode -> exitCode

        | None -> 1



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let args =

    System.Environment.GetEnvironmentVariable "ARGS"

    |> Runtime.splitArgs

    |> Seq.toArray



match args with

| [[||]] -> 0

| args -> if main args = 0 then 0 else failwith "main failed"



╭─[ 19.41s - return value ]────────────────────────────────────────────────────╮

│ <div class="dni-plaintext"><pre>0</pre></div><style>                         │

│ .dni-code-hint {                                                             │

│     font-style: italic;                                                      │

│     overflow: hidden;                                                        │

│     white-space: nowrap;                                                     │

│ }                                                                            │

│ .dni-treeview {                                                              │

│     white-space: nowrap;                                                     │

│ }                                                                            │

│ .dni-treeview td {                                                           │

│     vertical-align: top;                                                     │

│     text-align: start;                                                       │

│ }                                                                            │

│ details.dni-treeview {                                                       │

│     padding-left: 1em;                                                       │

│ }                                                                            │

│ table td {                                                                   │

│     text-align: start;                                                       │

│ }                                                                            │

│ table tr {                                                                   │

│     vertical-align: top;                                                     │

│     margin: 0em 0px;                                                         │

│ }                                                                            │

│ table tr td pre                                                              │

│ {                                                                            │

│     vertical-align: top !important;                                          │

│     margin: 0em 0px !important;                                              │

│ }                                                                            │

│ table th {                                                                   │

│     text-align: start;                                                       │

│ }                                                                            │

│ </style>                                                                     │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 19.42s - stdout ]──────────────────────────────────────────────────────────╮

│ 00:00:22 #39 [Debug] persistCodeProject / packages: [Argu;                   │

│ FSharp.Control.AsyncSeq; System.CommandLine; ... ] / modules: [              │

│ nbs/Common.fs; nbs/CommonFSharp.fs; nbs/Async.fs; ... ] / path:              │

│ C:\home\git\polyglot\apps\builder / name: Builder / code.Length: 5979        │

│ 00:00:22 #40 [Debug] buildProject / fullPath:                                │

│ C:\home\git\polyglot\apps\builder\target\Builder.fsproj                      │

│ 00:00:22 #41 [Debug] executeAsync / options: { Command = "dotnet publish -c  │

│ release -o ../dist -r linux-x64"                                             │

│   WorkingDirectory = Some "C:\home\git\polyglot\apps\builder\target"         │

│   CancellationToken = None                                                   │

│   OnLine = None }                                                            │

│ 00:00:22 #42 [Debug] > MSBuild version 17.8.0-preview-23418-03+0125fc9fb for │

│ .NET                                                                         │

│ 00:00:23 #43 [Debug] >   Determining projects to restore...                  │

│ 00:00:24 #44 [Debug] >   Restored                                            │

│ C:\home\git\polyglot\apps\builder\target\Builder.fsproj (in 344 ms).         │

│ 00:00:24 #45 [Debug] > C:\Program                                            │

│ Files\dotnet\sdk\8.0.100-rc.1.23463.5\Sdks\Microsoft.NET.Sdk\targets\Microso │

│ ft.NET.RuntimeIdentifierInference.targets(311,5): message NETSDK1057: You    │

│ are using a preview version of .NET. See:                                    │

│ https://aka.ms/dotnet-support-policy [                                       │

│ C:\home\git\polyglot\apps\builder\target\Builder.fsproj]                     │

│ 00:00:29 #46 [Debug] >   Builder ->                                          │

│ C:\home\git\polyglot\apps\builder\target\bin\release\net8.0\linux-x64\Builde │

│ r.dll                                                                        │

│ 00:00:31 #47 [Debug] >   Builder -> C:\home\git\polyglot\apps\builder\dist\  │

│ 00:00:31 #48 [Debug] executeAsync / exitCode: 0 / output.Length: 621         │

│ 00:00:31 #49 [Debug] executeAsync / options: { Command = "dotnet publish -c  │

│ release -o ../dist -r win-x64"                                               │

│   WorkingDirectory = Some "C:\home\git\polyglot\apps\builder\target"         │

│   CancellationToken = None                                                   │

│   OnLine = None }                                                            │

│ 00:00:31 #50 [Debug] > MSBuild version 17.8.0-preview-23418-03+0125fc9fb for │

│ .NET                                                                         │

│ 00:00:31 #51 [Debug] >   Determining projects to restore...                  │

│ 00:00:32 #52 [Debug] >   Restored                                            │

│ C:\home\git\polyglot\apps\builder\target\Builder.fsproj (in 353 ms).         │

│ 00:00:32 #53 [Debug] > C:\Program                                            │

│ Files\dotnet\sdk\8.0.100-rc.1.23463.5\Sdks\Microsoft.NET.Sdk\targets\Microso │

│ ft.NET.RuntimeIdentifierInference.targets(311,5): message NETSDK1057: You    │

│ are using a preview version of .NET. See:                                    │

│ https://aka.ms/dotnet-support-policy [                                       │

│ C:\home\git\polyglot\apps\builder\target\Builder.fsproj]                     │

│ 00:00:38 #54 [Debug] >   Builder ->                                          │

│ C:\home\git\polyglot\apps\builder\target\bin\release\net8.0\win-x64\Builder. │

│ dll                                                                          │

│ 00:00:41 #55 [Debug] >   Builder -> C:\home\git\polyglot\apps\builder\dist\  │

│ 00:00:41 #56 [Debug] executeAsync / exitCode: 0 / output.Length: 619         │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯

[NbConvertApp] Converting notebook Builder.dib.ipynb to html

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

  validate(nb)

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:72: UserWarning: IPython3 lexer unavailable, falling back on Python 3

  return _pygments_highlight(

[NbConvertApp] Writing 317777 bytes to Builder.dib.html

In [ ]:
{ . "$ScriptDir/../apps/parser/build.ps1" } | Invoke-Block

── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ # DibParser (Polyglot)                                                       │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../nbs/Testing.dib



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A

spNetCore.Html.Abstractions.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.Formatting.dll"

open System

open System.IO

open System.Text

open Microsoft.DotNet.Interactive.Formatting



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

open type Microsoft.DotNet.Interactive.Kernel



── fsharp - import ─────────────────────────────────────────────────────────────

#r @"../../../../../../../.nuget/packages/expecto/10.1.0/lib/net6.0/Expecto.dll"



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



Formatter.ListExpansionLimit <- 100



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



type AssertExceptionFormatter (ex) =

    member _.Text =

        ex.ToString()

            .Replace("32m", "<span style=\"color: green;\">")

            .Replace("36m", "</span>")

            .Replace("31m", "<span style=\"color: red;\">")

            .Replace("\n", "<br/>\n")





Formatter.Register<AssertExceptionFormatter> ((fun (x : 

AssertExceptionFormatter) -> x.Text), "text/html")



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __expect fn log expected actual =

    if log then printfn $"{actual.ToDisplayString ()}"

    try

        "Testing.__expect" |> fn actual expected

    with :? Expecto.AssertException as ex ->

        AssertExceptionFormatter(ex).Display () |> ignore

        failwith (ex.GetType().FullName)



let inline __contains log expected actual = __expect Expecto.Expect.contains log

expected actual

let inline _contains expected actual = __contains true expected actual



let inline __equal log expected actual = __expect Expecto.Expect.equal log 

expected actual

let inline _equal expected actual = __equal true expected actual



let inline __isGreaterThan log expected actual = __expect 

Expecto.Expect.isGreaterThan log expected actual

let ...



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __isBetween log a b actual =

    let inline isBetween actual (a, b) _ =

        __isGreaterThanOrEqual log a actual

        __isLessThanOrEqual log b actual

    __expect isBetween log (a, b) actual

let inline _isBetween a b actual = __isBetween true a b actual



── fsharp ──────────────────────────────────────────────────────────────────────

#r 

@"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan

dard2.1/FSharp.Control.AsyncSeq.dll"

#r 

@"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.

0/System.Reactive.dll"

#r 

@"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/

netstandard2.0/System.Reactive.Linq.dll"

#r 

@"../../../../../../../.nuget/packages/argu/6.1.1/lib/netstandard2.0/Argu.dll"

#r 

@"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li

b/net6.0/System.CommandLine.dll"

#r 

@"../../../../../../../.nuget/packages/fparsec/2.0.0-beta2/lib/netstandard2.1/FP

arsec.dll"

#r 

@"../../../../../../../.nuget/packages/fparsec/2.0.0-beta2/lib/netstandard2.1/FP

arsecCS.dll"



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../nbs/Common.fs

#!import ../nbs/CommonFSharp.fs

#!import ../nbs/Async.fs

#!import ../nbs/AsyncSeq.fs

#!import ../nbs/Runtime.fs

#!import ../nbs/FileSystem.fs



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Common =



    let nl = System.Environment.NewLine

    let q = @""""



    let inline cons head tail = head :: tail



    module String =

        let inline contains (value : string) (input : string) =

            input.Contains value



        let inline endsWith (value : string) (input : string) =

            input.EndsWith value



        let inline padLeft totalWidth paddingChar (input : string) =

            input.PadLeft (totalWidth, paddingChar)



        let inline replace (oldValue : string) (newValue : string) (input : 

string) =

            input.Replace (oldValue, newValue)



        let inline split separator (input : string) =

            input.Split separator



        let inline spli...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module CommonFSharp =



    open Common



    /// ## getUnionCaseName



    let inline getUnionCaseName<'T> (x: 'T) =

        match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with

        | case, _ -> case.Name





── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Async =



    open Common



    /// ## choice



    let inline choice asyncs = async {

        let e = Event<_> ()

        use cts = new System.Threading.CancellationTokenSource ()

        let fn =

            asyncs

            |> Seq.map (fun a -> async {

                let! x = a

                e.Trigger x

            })

            |> Async.Parallel

            |> Async.Ignore

        Async.Start (fn, cts.Token)

        let! result = Async.AwaitEvent e.Publish

        cts.Cancel ()

        return result

    }



    /// ## map



    let inline map fn a = async {

        let! x = a

        return fn x

    }



    /// ## catch



    let inline catch a =

        a

        |> Async.Catch

        ...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module AsyncSeq =



    open Common



    /// ## subscribeEvent



    let inline subscribeEvent (event: IEvent<'H, 'A>) map =

        let observable = System.Reactive.Linq.Observable.FromEventPattern<'H, 

'A>(event.AddHandler, event.RemoveHandler)

        System.Reactive.Linq.Observable.Select (observable, fun event -> map 

event.EventArgs)

        |> FSharp.Control.AsyncSeq.ofObservableBuffered



    let subscribeToken (token : System.Threading.CancellationToken) =

        let tcs = new System.Threading.Tasks.TaskCompletionSource ()

        System.Action tcs.SetResult |> token.Register |> ignore

        let start = System.DateTime.Now.Ticks

        FSharp.Control.AsyncSeq.unfoldAsync

            (fun (...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Runtime =



    open Common



    /// ## isWindows



    let isWindows =

        fun () ->

            System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform

                System.Runtime.InteropServices.OSPlatform.Windows

        |> memoize



    /// ## getExecutableSuffix



    let inline getExecutableSuffix () =

        if isWindows ()

        then ".exe"

        else ""



    /// ## splitCommand



    type private CommandParseStep =

        | Start

        | Path of quoted: bool

        | Arguments



    let splitCommand (command: string) =

        let rec loop (path, args) chars step =

            match chars, step with

            | ('"' | '\'') :: tail, _ when path = "" -> loop (pat...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module FileSystem =



    open Common



    /// ## Operators



    module Operators =

        let inline (</>) a b =

            System.IO.Path.Combine (a, b)



    open Operators



    /// ## createTempDirectoryName



    let inline createTempDirectoryName () =

        let root = System.Reflection.Assembly.GetEntryAssembly().GetName().Name



        System.IO.Path.GetTempPath ()

        </> $"!{root}"

        </> string (newGuidFromDateTime System.DateTime.Now)



    /// ## createTempDirectory



    let inline createTempDirectory () =

        let tempFolder = createTempDirectoryName ()

        let result = System.IO.Directory.CreateDirectory tempFolder



        if not result.Exists then

            let ge...



── fsharp ──────────────────────────────────────────────────────────────────────

open Common

open FParsec



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## escapeCell (test)                                                         │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let inline escapeCell input =

    input

    |> String.split [[| '\n' |]]

    |> Array.map (function

        | line when line |> String.startsWith "\\#!" || line |> 

String.startsWith "\\#r" ->

            System.Text.RegularExpressions.Regex.Replace (line, "^\\\\#", "#")

        | line -> line

    )

    |> String.concat "\n"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



$"a{nl}\\#!magic{nl}b{nl}"

|> escapeCell

|> _equal (

    $"a{nl}#!magic{nl}b{nl}"

)



╭─[ 49.44ms - stdout ]─────────────────────────────────────────────────────────╮

│ a                                                                            │

│ #!magic                                                                      │

│ b                                                                            │

│                                                                              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## magicMarker                                                               │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let magicMarker : Parser<string, unit> = pstring "#!"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"#!magic"

|> run magicMarker

|> _equal (

    Success ("#!", (), Position ("", 2, 1, 3))

)



╭─[ 46.00ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item1: #!                                                              │

│       Item2: <null>                                                          │

│       Item3: Position                                                        │

│         Index: 2                                                             │

│         Line: 1                                                              │

│         Column: 3                                                            │

│         StreamName:                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"##!magic"

|> run magicMarker

|> _equal (

    Failure (

        $"Error in Ln: 1 Col: 1{nl}##!magic{nl}^{nl}Expecting: '#!'{nl}",

        ParserError (

            Position ("", 0, 1, 1),

            (),

            ErrorMessageList (ExpectedString "#!")

        ),

        ()

    )

)



╭─[ 55.87ms - stdout ]─────────────────────────────────────────────────────────╮

│ Failure                                                                      │

│       Item1: Error in Ln: 1 Col: 1                                           │

│ ##!magic                                                                     │

│ ^                                                                            │

│ Expecting: '#!'                                                              │

│                                                                              │

│       Item2: ParserError                                                     │

│         Position: Position                                                   │

│           Index: 0                                                           │

│           Line: 1                                                            │

│           Column: 1                                                          │

│           StreamName:                                                        │

│         UserState: <null>                                                    │

│         Messages: ErrorMessageList                                           │

│           Head: ExpectedString                                               │

│             String: #!                                                       │

│             Type: ExpectedString                                             │

│           Tail: <null>                                                       │

│       Item3: <null>                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## magicCommand                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let magicCommand =

    magicMarker

    >>. manyTill anyChar newline

    |>> (System.String.Concat >> String.trim)



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"#!magic



a"

|> run magicCommand

|> _equal (

    Success ("magic", (), Position ("", 8, 2, 1))

)



╭─[ 34.03ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item1: magic                                                           │

│       Item2: <null>                                                          │

│       Item3: Position                                                        │

│         Index: 8                                                             │

│         Line: 2                                                              │

│         Column: 1                                                            │

│         StreamName:                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



" #!magic



a"

|> run magicCommand

|> _equal (

    Failure (

        $"Error in Ln: 1 Col: 1{nl} #!magic{nl}^{nl}Expecting: '#!'{nl}",

        ParserError (

            Position ("", 0, 1, 1),

            (),

            ErrorMessageList (ExpectedString "#!")

        ),

        ()

    )

)



╭─[ 34.42ms - stdout ]─────────────────────────────────────────────────────────╮

│ Failure                                                                      │

│       Item1: Error in Ln: 1 Col: 1                                           │

│  #!magic                                                                     │

│ ^                                                                            │

│ Expecting: '#!'                                                              │

│                                                                              │

│       Item2: ParserError                                                     │

│         Position: Position                                                   │

│           Index: 0                                                           │

│           Line: 1                                                            │

│           Column: 1                                                          │

│           StreamName:                                                        │

│         UserState: <null>                                                    │

│         Messages: ErrorMessageList                                           │

│           Head: ExpectedString                                               │

│             String: #!                                                       │

│             Type: ExpectedString                                             │

│           Tail: <null>                                                       │

│       Item3: <null>                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## content                                                                   │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let content =

    (newline >>. magicMarker) <|> (eof >>. preturn "")

    |> attempt

    |> lookAhead

    |> manyTill anyChar

    |>> (System.String.Concat >> String.trim)



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"#!magic





a





"

|> run content

|> _equal (

    Success ("#!magic





a", (), Position ("", 14, 7, 1))

)



╭─[ 31.50ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item1: #!magic                                                         │

│                                                                              │

│                                                                              │

│ a                                                                            │

│       Item2: <null>                                                          │

│       Item3: Position                                                        │

│         Index: 14                                                            │

│         Line: 7                                                              │

│         Column: 1                                                            │

│         StreamName:                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## Block                                                                     │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

type Block =

    {

        magic : string

        content : string

    }



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## block                                                                     │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let block =

    pipe2

        magicCommand

        content

        (fun magic content ->

            {

                magic = magic

                content = content

            })



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"#!magic





a





"

|> run block

|> _equal (

    Success (

        { magic = "magic"; content = "a" },

        (),

        Position ("", 14, 7, 1)

    )

)



╭─[ 38.59ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item1: Block                                                           │

│         magic: magic                                                         │

│         content: a                                                           │

│       Item2: <null>                                                          │

│       Item3: Position                                                        │

│         Index: 14                                                            │

│         Line: 7                                                              │

│         Column: 1                                                            │

│         StreamName:                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## blocks                                                                    │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let blocks =

    skipMany newline

    >>. sepEndBy block (skipMany1 newline)



── fsharp ──────────────────────────────────────────────────────────────────────

//// test





"#!magic1



a



\#!magic2



b



"

|> escapeCell

|> run blocks

|> _equal (

    Success (

        [[

            { magic = "magic1"; content = "a" }

            { magic = "magic2"; content = "b" }

        ]],

        (),

        Position ("", 26, 9, 1)

    )

)



╭─[ 46.32ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item1: FSharpList<Block>                                               │

│         - magic: magic1                                                      │

│           content: a                                                         │

│         - magic: magic2                                                      │

│           content: b                                                         │

│       Item2: <null>                                                          │

│       Item3: Position                                                        │

│         Index: 26                                                            │

│         Line: 9                                                              │

│         Column: 1                                                            │

│         StreamName:                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## Output                                                                    │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

type Output =

    | Fs

    | Md

    | Spi

    | Spir



let inline kernelOutputs magic =

    match magic with

    | "fsharp" -> [[ Fs ]]

    | "markdown" -> [[ Md ]]

    | "spiral" -> [[ Spi; Spir ]]

    | _ -> [[]]



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## formatBlock                                                               │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline formatBlock output (block : Block) =

    match output, block with

    | output, { magic = "markdown"; content = content } ->

        let markdownComment =

            match output with

            | Spi | Spir -> "// // "

            | Fs -> "/// "

            | _ -> ""

        content

        |> String.split [[| '\n' |]]

        |> Array.map (String.trimEnd [[||]])

        |> Array.filter (String.endsWith " (test)" >> not)

        |> Array.map (function

            | "" -> markdownComment |> String.trim

            | line -> System.Text.RegularExpressions.Regex.Replace (line, 

"^\\s*", $"$&{markdownComment}")

        )

        |> String.concat "\n"

    | Fs, { magic = "fsharp"; content = content } ->

        let trimmedContent = content |> String.trim

        if trimmedContent |> String.startsWith "//// test" || trimmedContent |> 

String.startsWith "//// ignore"

        then ""

        else

            content

            |> String.split [[| '\n' |]]

            |> Array.filter (String.trimStart [[||]] >> String.startsWith "#r" 

>> not)

            |> String.concat "\n"

    | (Spi | Spir), { magic = "spiral"; content = content } ->

        let trimmedContent = content |> String.trim

        if trimmedContent |> String.startsWith "// // test" || trimmedContent |>

String.startsWith "// // ignore"

        then ""

        else content

    | _ -> ""



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"#!markdown





a



    b



c





\#!markdown





c





\#!fsharp





let a = 1"

|> escapeCell

|> run block

|> function

    | Success (block, _, _) -> formatBlock Fs block

    | Failure (msg, _, _) -> failwith msg

|> _equal "/// a

///

    /// b

///

/// c"



╭─[ 58.84ms - stdout ]─────────────────────────────────────────────────────────╮

│ /// a                                                                        │

│ ///                                                                          │

│     /// b                                                                    │

│ ///                                                                          │

│ /// c                                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## formatBlocks                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline formatBlocks output blocks =

    blocks

    |> List.map (formatBlock output)

    |> List.filter ((<>) "")

    |> String.concat "\n\n"

    |> fun s -> s + "\n"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"#!markdown





a



b





\#!markdown





c





\#!fsharp





let a = 1



\#!markdown



d (test)



\#!fsharp



//// test



let a = 2



\#!markdown



e



\#!fsharp



let a = 3"

|> escapeCell

|> run blocks

|> function

    | Success (blocks, _, _) -> formatBlocks Fs blocks

    | Failure (msg, _, _) -> failwith msg

|> _equal "/// a

///

/// b



/// c



let a = 1



/// e



let a = 3

"



╭─[ 68.50ms - stdout ]─────────────────────────────────────────────────────────╮

│ /// a                                                                        │

│ ///                                                                          │

│ /// b                                                                        │

│                                                                              │

│ /// c                                                                        │

│                                                                              │

│ let a = 1                                                                    │

│                                                                              │

│ /// e                                                                        │

│                                                                              │

│ let a = 3                                                                    │

│                                                                              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## parse                                                                     │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline parse output input =

    match run blocks input with

    | Success (blocks, _, _) ->

        let blocks =

            blocks

            |> List.filter (fun block ->

                block.magic |> kernelOutputs |> List.contains output || 

block.magic = "markdown"

            )

        

        match blocks with

        | { magic = "markdown"; content = content } :: _

            when output = Fs

            && content |> String.startsWith "# "

            && content |> String.endsWith ")"

            ->

            let inline indentBlock (block : Block) =

                { block with

                    content =

                        block.content

                        |> String.split [[| '\n' |]]

                        |> Array.fold

                            (fun (lines, isMultiline) line ->

                                let trimmedLine = line |> String.trim

                                if trimmedLine = ""

                                then "" :: lines, isMultiline

                                else

                                    let inline singleQuoteLine () =

                                        trimmedLine |> Seq.sumBy ((=) '"' >> 

System.Convert.ToInt32) = 1

                                        && trimmedLine |> String.contains 

@"'""'" |> not

                                        && trimmedLine |> String.endsWith "{" |>

not

                                        && trimmedLine |> String.endsWith "{|" 

|> not

                                        && trimmedLine |> String.startsWith "}" 

|> not

                                        && trimmedLine |> String.startsWith "|}"

|> not



                                    match isMultiline, trimmedLine |> 

String.splitString [[| $"{q}{q}{q}" |]] with

                                    | false, [[| _; _ |]] ->

                                        $"    {line}" :: lines, true



                                    | true, [[| _; _ |]] ->

                                        line :: lines, false



                                    | false, _ when singleQuoteLine () ->

                                        $"    {line}" :: lines, true



                                    | false, _ when line |> String.startsWith 

"#" && block.magic = "fsharp" ->

                                        line :: lines, false



                                    | false, _ ->

                                        $"    {line}" :: lines, false



                                    | true, _ when singleQuoteLine () && line |>

String.startsWith "    " ->

                                        $"    {line}" :: lines, false



                                    | true, _ when singleQuoteLine () ->

                                        line :: lines, false



                                    | true, _ ->

                                        line :: lines, true

                            )

                            ([[]], false)

                        |> fst

                        |> List.rev

                        |> String.concat "\n"

                }



            let moduleName, namespaceName =

                System.Text.RegularExpressions.Regex.Match (content, @"# (.*) 

\((.*)\)$")

                |> fun m -> m.Groups.[[1]].Value, m.Groups.[[2]].Value



            let moduleBlock =

                {

                    magic = "fsharp"

                    content =

                        $"#if !INTERACTIVE

namespace {namespaceName}

#endif



module {moduleName} ="

                }



            blocks

            |> List.indexed

            |> List.fold

                (fun blocks (index, block) ->

                    match index with

                    | 0 -> blocks

                    | 1 -> indentBlock block :: moduleBlock :: blocks

                    | _ -> indentBlock block :: blocks

                )

                [[]]

            |> List.rev

        | _ -> blocks

        |> Result.Ok

    | Failure (errorMsg, _, _) -> Result.Error errorMsg



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let example1 =

    $"""#!meta



{{"kernelInfo":{{"defaultKernelName":"fsharp","items":[[{{"aliases":[[]],"name":

"fsharp"}},{{"aliases":[[]],"name":"fsharp"}}]]}}}}



\#!markdown



# TestModule (TestNamespace)



\#!fsharp



\#!import file.dib



\#!fsharp



\#r "nuget:Expecto"



\#!markdown



## ParserLibrary



\#!fsharp



open System



\#!markdown



## x (test)



\#!fsharp



//// ignore



let x = 1



\#!spiral



// // test



inl x = 0i32



\#!spiral



inl x = 0i32



\#!markdown



### TextInput



\#!fsharp



let str1 = "abc

def"



let str2 =

    "abc\

def"



let str3 =

    $"1{{

        1

    }}1"



let str4 =

    $"1{{({{|

        a = 1

    |}}).a}}1"



let str5 =

    "abc \

        def"



let x =

    match '"' with

    | '"' -> true

    | _ -> false



let long1 = {q}{q}{q}a{q}{q}{q}



let long2 =

    {q}{q}{q}

a

{q}{q}{q}



\#!fsharp



type Position =

    {{

#if INTERACTIVE

        line : string

#else

        line : int

#endif

        column : int

    }}"""

    |> escapeCell



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



example1

|> parse Fs

|> Result.toOption

|> Option.get

|> (formatBlocks Fs)

|> _equal $"""#if !INTERACTIVE

namespace TestNamespace

#endif



module TestModule =



    /// ## ParserLibrary



    open System



    /// ### TextInput



    let str1 = "abc

def"



    let str2 =

        "abc\

def"



    let str3 =

        $"1{{

            1

        }}1"



    let str4 =

        $"1{{({{|

            a = 1

        |}}).a}}1"



    let str5 =

        "abc \

            def"



    let x =

        match '"' with

        | '"' -> true

        | _ -> false



    let long1 = {q}{q}{q}a{q}{q}{q}



    let long2 =

        {q}{q}{q}

a

{q}{q}{q}



    type Position =

        {{

#if INTERACTIVE

            line : string

#else

            line : int

#endif

            column : int

        }}

"""



╭─[ 167.56ms - stdout ]────────────────────────────────────────────────────────╮

│ #if !INTERACTIVE                                                             │

│ namespace TestNamespace                                                      │

│ #endif                                                                       │

│                                                                              │

│ module TestModule =                                                          │

│                                                                              │

│     /// ## ParserLibrary                                                     │

│                                                                              │

│     open System                                                              │

│                                                                              │

│     /// ### TextInput                                                        │

│                                                                              │

│     let str1 = "abc                                                          │

│ def"                                                                         │

│                                                                              │

│     let str2 =                                                               │

│         "abc\                                                                │

│ def"                                                                         │

│                                                                              │

│     let str3 =                                                               │

│         $"1{                                                                 │

│             1                                                                │

│         }1"                                                                  │

│                                                                              │

│     let str4 =                                                               │

│         $"1{({|                                                              │

│             a = 1                                                            │

│         |}).a}1"                                                             │

│                                                                              │

│     let str5 =                                                               │

│         "abc \                                                               │

│             def"                                                             │

│                                                                              │

│     let x =                                                                  │

│         match '"' with                                                       │

│         | '"' -> true                                                        │

│         | _ -> false                                                         │

│                                                                              │

│     let long1 = """a"""                                                      │

│                                                                              │

│     let long2 =                                                              │

│         """                                                                  │

│ a                                                                            │

│ """                                                                          │

│                                                                              │

│     type Position =                                                          │

│         {                                                                    │

│ #if INTERACTIVE                                                              │

│             line : string                                                    │

│ #else                                                                        │

│             line : int                                                       │

│ #endif                                                                       │

│             column : int                                                     │

│         }                                                                    │

│                                                                              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



example1

|> parse Md

|> Result.toOption

|> Option.get

|> (formatBlocks Md)

|> _equal "# TestModule (TestNamespace)



## ParserLibrary



### TextInput

"



╭─[ 148.27ms - stdout ]────────────────────────────────────────────────────────╮

│ # TestModule (TestNamespace)                                                 │

│                                                                              │

│ ## ParserLibrary                                                             │

│                                                                              │

│ ### TextInput                                                                │

│                                                                              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



example1

|> parse Spi

|> Result.toOption

|> Option.get

|> (formatBlocks Spi)

|> _equal "// // # TestModule (TestNamespace)



// // ## ParserLibrary



inl x = 0i32



// // ### TextInput

"



╭─[ 142.81ms - stdout ]────────────────────────────────────────────────────────╮

│ // // # TestModule (TestNamespace)                                           │

│                                                                              │

│ // // ## ParserLibrary                                                       │

│                                                                              │

│ inl x = 0i32                                                                 │

│                                                                              │

│ // // ### TextInput                                                          │

│                                                                              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## parseDibCode                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline parseDibCode output file = async {

    let getLocals () = $"output: {output} / file: {file} / {getLocals ()}"

    trace Debug (fun () -> "parseDibCode") getLocals

    let! input = file |> FileSystem.readAllTextAsync

    match parse output input with

    | Result.Ok blocks -> return blocks |> formatBlocks output

    | Result.Error msg -> return failwith msg

}



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## writeDibCode                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline writeDibCode output path = async {

    let getLocals () = $"output: {output} / path: {path} / {getLocals ()}"

    trace Debug (fun () -> "writeDibCode") getLocals

    let! result = parseDibCode output path

    let outputPath = path |> String.replace ".dib" $".{output |> string |> 

String.toLower}"

    do! result |> FileSystem.writeAllTextAsync outputPath

}



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## Arguments                                                                 │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

[[<RequireQualifiedAccess>]]

type Arguments =

    | [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.Mandatory>]]

        File of file : string * Output



    interface Argu.IArgParserTemplate with

        member s.Usage =

            match s with

            | File _ -> nameof File



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## main                                                                      │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let main args =

    let argsMap = args |> Runtime.parseArgsMap<Arguments>



    let files =

        argsMap.[[nameof Arguments.File]]

        |> List.map (function

            | Arguments.File (path, output) -> path, output

        )



    files

    |> List.map (fun (path, output) -> path |> writeDibCode output)

    |> Async.Parallel

    |> Async.Ignore

    |> Async.runWithTimeout 30000

    |> function

        | Some () -> 0

        | None -> 1



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let args =

    System.Environment.GetEnvironmentVariable "ARGS"

    |> Runtime.splitArgs

    |> Seq.toArray



match args with

| [[||]] -> 0

| args -> if main args = 0 then 0 else failwith "main failed"



╭─[ 212.41ms - return value ]──────────────────────────────────────────────────╮

│ <div class="dni-plaintext"><pre>0</pre></div><style>                         │

│ .dni-code-hint {                                                             │

│     font-style: italic;                                                      │

│     overflow: hidden;                                                        │

│     white-space: nowrap;                                                     │

│ }                                                                            │

│ .dni-treeview {                                                              │

│     white-space: nowrap;                                                     │

│ }                                                                            │

│ .dni-treeview td {                                                           │

│     vertical-align: top;                                                     │

│     text-align: start;                                                       │

│ }                                                                            │

│ details.dni-treeview {                                                       │

│     padding-left: 1em;                                                       │

│ }                                                                            │

│ table td {                                                                   │

│     text-align: start;                                                       │

│ }                                                                            │

│ table tr {                                                                   │

│     vertical-align: top;                                                     │

│     margin: 0em 0px;                                                         │

│ }                                                                            │

│ table tr td pre                                                              │

│ {                                                                            │

│     vertical-align: top !important;                                          │

│     margin: 0em 0px !important;                                              │

│ }                                                                            │

│ table th {                                                                   │

│     text-align: start;                                                       │

│ }                                                                            │

│ </style>                                                                     │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 224.22ms - stdout ]────────────────────────────────────────────────────────╮

│ 00:00:00 #1 [Debug] writeDibCode / output: Fs / path: DibParser.dib          │

│ 00:00:00 #2 [Debug] parseDibCode / output: Fs / file: DibParser.dib          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯

[NbConvertApp] Converting notebook DibParser.dib.ipynb to html

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

  validate(nb)

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:72: UserWarning: IPython3 lexer unavailable, falling back on Python 3

  return _pygments_highlight(

[NbConvertApp] Writing 363952 bytes to DibParser.dib.html

00:00:00 #1 [Debug] persistCodeProject / packages: [Argu; FParsec; FSharp.Control.AsyncSeq; ... ] / modules: [nbs/Common.fs; nbs/CommonFSharp.fs; nbs/Async.fs; ... ] / path: C:\home\git\polyglot\apps\parser / name: DibParser / code.Length: 9066

00:00:00 #2 [Debug] buildProject / fullPath: C:\home\git\polyglot\apps\parser\target\DibParser.fsproj

00:00:00 #3 [Debug] executeAsync / options: { Command = "dotnet publish -c release -o ../dist -r linux-x64"

  WorkingDirectory = Some "C:\home\git\polyglot\apps\parser\target"

  CancellationToken = None

  OnLine = None }

00:00:00 #4 [Debug] > MSBuild version 17.8.0-preview-23418-03+0125fc9fb for .NET

00:00:00 #5 [Debug] >   Determining projects to restore...

00:00:01 #6 [Debug] >   Restored C:\home\git\polyglot\apps\parser\target\DibParser.fsproj (in 453 ms).

00:00:01 #7 [Debug] > C:\Program Files\dotnet\sdk\8.0.100-rc.1.23463.5\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(311,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\apps\parser\target\DibParser.fsproj]

00:00:07 #8 [Debug] >   DibParser -> C:\home\git\polyglot\apps\parser\target\bin\release\net8.0\linux-x64\DibParser.dll

00:00:08 #9 [Debug] >   DibParser -> C:\home\git\polyglot\apps\parser\dist\

00:00:08 #10 [Debug] executeAsync / exitCode: 0 / output.Length: 627

00:00:08 #11 [Debug] executeAsync / options: { Command = "dotnet publish -c release -o ../dist -r win-x64"

  WorkingDirectory = Some "C:\home\git\polyglot\apps\parser\target"

  CancellationToken = None

  OnLine = None }

00:00:09 #12 [Debug] > MSBuild version 17.8.0-preview-23418-03+0125fc9fb for .NET

00:00:09 #13 [Debug] >   Determining projects to restore...

00:00:10 #14 [Debug] >   Restored C:\home\git\polyglot\apps\parser\target\DibParser.fsproj (in 349 ms).

00:00:10 #15 [Debug] > C:\Program Files\dotnet\sdk\8.0.100-rc.1.23463.5\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(311,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\apps\parser\target\DibParser.fsproj]

00:00:15 #16 [Debug] >   DibParser -> C:\home\git\polyglot\apps\parser\target\bin\release\net8.0\win-x64\DibParser.dll

00:00:19 #17 [Debug] >   DibParser -> C:\home\git\polyglot\apps\parser\dist\

00:00:19 #18 [Debug] executeAsync / exitCode: 0 / output.Length: 625



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ # JsonParser (Polyglot)                                                      │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../nbs/Testing.dib



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A

spNetCore.Html.Abstractions.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.Formatting.dll"

open System

open System.IO

open System.Text

open Microsoft.DotNet.Interactive.Formatting



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

open type Microsoft.DotNet.Interactive.Kernel



── fsharp - import ─────────────────────────────────────────────────────────────

#r @"../../../../../../../.nuget/packages/expecto/10.1.0/lib/net6.0/Expecto.dll"



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



Formatter.ListExpansionLimit <- 100



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



type AssertExceptionFormatter (ex) =

    member _.Text =

        ex.ToString()

            .Replace("32m", "<span style=\"color: green;\">")

            .Replace("36m", "</span>")

            .Replace("31m", "<span style=\"color: red;\">")

            .Replace("\n", "<br/>\n")





Formatter.Register<AssertExceptionFormatter> ((fun (x : 

AssertExceptionFormatter) -> x.Text), "text/html")



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __expect fn log expected actual =

    if log then printfn $"{actual.ToDisplayString ()}"

    try

        "Testing.__expect" |> fn actual expected

    with :? Expecto.AssertException as ex ->

        AssertExceptionFormatter(ex).Display () |> ignore

        failwith (ex.GetType().FullName)



let inline __contains log expected actual = __expect Expecto.Expect.contains log

expected actual

let inline _contains expected actual = __contains true expected actual



let inline __equal log expected actual = __expect Expecto.Expect.equal log 

expected actual

let inline _equal expected actual = __equal true expected actual



let inline __isGreaterThan log expected actual = __expect 

Expecto.Expect.isGreaterThan log expected actual

let ...



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __isBetween log a b actual =

    let inline isBetween actual (a, b) _ =

        __isGreaterThanOrEqual log a actual

        __isLessThanOrEqual log b actual

    __expect isBetween log (a, b) actual

let inline _isBetween a b actual = __isBetween true a b actual



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../nbs/Common.fs

#!import Parser.fs



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Common =



    let nl = System.Environment.NewLine

    let q = @""""



    let inline cons head tail = head :: tail



    module String =

        let inline contains (value : string) (input : string) =

            input.Contains value



        let inline endsWith (value : string) (input : string) =

            input.EndsWith value



        let inline padLeft totalWidth paddingChar (input : string) =

            input.PadLeft (totalWidth, paddingChar)



        let inline replace (oldValue : string) (newValue : string) (input : 

string) =

            input.Replace (oldValue, newValue)



        let inline split separator (input : string) =

            input.Split separator



        let inline spli...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Parser =



    open Common



    /// ### TextInput



    type Position =

        {

            line : int

            column : int

        }



    let initialPos = { line = 0; column = 0 }



    let inline incrCol (pos : Position) =

        { pos with column = pos.column + 1 }



    let inline incrLine pos =

        { line = pos.line + 1; column = 0 }



    type InputState =

        {

            lines : string[[]]

            position : Position

        }



    let inline fromStr str =

        {

            lines =

                if str |> String.IsNullOrEmpty

                then [[||]]

                else str |> String.splitString [[| "\r\n"; "\n" |]]

            position = initialPos

        }



   ...



── fsharp ──────────────────────────────────────────────────────────────────────

open Common

open Parser



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## JsonParser                                                                │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

(*

// --------------------------------

JSON spec from http://www.json.org/

// --------------------------------



The JSON spec is available at [[json.org]](http://www.json.org/). I'll paraphase

it here:



* A `value` can be a `string` or a `number` or a `bool` or `null` or an `object`

or an `array`.

  * These structures can be nested.

* A `string` is a sequence of zero or more Unicode characters, wrapped in double

quotes, using backslash escapes.

* A `number` is very much like a C or Java number, except that the octal and 

hexadecimal formats are not used.

* A `boolean` is the literal `true` or `false`

* A `null` is the literal `null`

* An `object` is an unordered set of name/value pairs.

  * An object begins with { (left brace) and ends with } (right brace).

  * Each name is followed by : (colon) and the name/value pairs are separated by

, (comma).

* An `array` is an ordered collection of values.

  * An array begins with [[ (left bracket) and ends with ]] (right bracket).

  * Values are separated by , (comma).

* Whitespace can be inserted between any pair of tokens.



*)



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let inline parserEqual (expected : ParseResult<'a>) (actual : ParseResult<'a * 

Input>) =

    match actual, expected with

    | Success (_actual, _), Success _expected ->

        printResult actual

        _actual |> _equal _expected

    | Failure (l1, e1, p1), Failure (l2, e2, p2) when l1 = l2 && e1 = e2 && p1 =

p2 ->

        printResult actual

    | _ ->

        printfn $"Actual: {actual}"

        printfn $"Expected: {expected}"

        failwith "Parse failed"

    actual



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ### JValue                                                                   │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

type JValue =

    | JString of string

    | JNumber of float

    | JBool   of bool

    | JNull

    | JObject of Map<string, JValue>

    | JArray  of JValue list



── fsharp ──────────────────────────────────────────────────────────────────────

let jValue, jValueRef = createParserForwardedToRef<JValue> ()



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ### jNull                                                                    │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let jNull =

    pstring "null"

    >>% JNull

    <?> "null"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



jValueRef <|

    choice

        [[

            jNull

        ]]



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jValue "null"

|> parserEqual (Success JNull)



╭─[ 225.62ms - return value ]──────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (JNull, { lines = [                      │

│ |&quot;null&quot;|]<br/>                  position = { line = 0<br/>         │

│ column = 4 }                                                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JNull, { lines = [|&quot;null&quot;|]<br/>      │

│ position = { line = 0<br/>               column = 4 }                        │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><details class="dni-treeview"><summary><span                  │

│ class="dni-code-hint"><code>JNull</code></span></summary><div><table><thead> │

│ <tr></tr></thead><tbody></tbody></table></div></deta...                      │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 233.85ms - stdout ]────────────────────────────────────────────────────────╮

│ JNull                                                                        │

│ JNull                                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jNull "nulp"

|> parserEqual (

    Failure (

        "null",

        "Unexpected 'p'",

        { currentLine = "nulp"; line = 0; column = 3 }

    )

)



╭─[ 45.54ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Failure (&quot;null&quot;, &quot;Unexpected      │

│ &#39;p&#39;&quot;, { currentLine = &quot;nulp&quot;<br/>                     │

│ line = 0<br/>                                     column = 3                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><div                                                          │

│ class="dni-plaintext"><pre>null</pre></div></td></tr><tr><td>Item2</td><td>< │

│ div class="dni-plaintext"><pre>Unexpected                                    │

│ &#39;p&#39;</pre></div></td></tr><tr><td>Item3</td><td><details              │

│ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │

│ currentLine = &quot;nulp&quot;<br/>  line = 0<br/>  column = 3               │

│ }</code></span></summary><div><table><thead><tr></tr></thead...              │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 51.75ms - stdout ]─────────────────────────────────────────────────────────╮

│ Line:0 Col:3 Error parsing null                                              │

│ nulp                                                                         │

│    ^Unexpected 'p'                                                           │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ### jBool                                                                    │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let jBool =

    let jtrue =

        pstring "true"

        >>% JBool true

    let jfalse =

        pstring "false"

        >>% JBool false



    jtrue <|> jfalse

    <?> "bool"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



jValueRef <|

    choice

        [[

            jNull

            jBool

        ]]



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jBool "true"

|> parserEqual (Success (JBool true))



╭─[ 49.78ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (JBool true, { lines = [                 │

│ |&quot;true&quot;|]<br/>                       position = { line = 0<br/>    │

│ column = 4 }                                                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JBool true, { lines = [|&quot;true&quot;|]<br/> │

│ position = { line = 0<br/>               column = 4 }                        │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><details class="dni-treeview"><summary><span                  │

│ class="dni-code-hint"><code>JBool                                            │

│ true</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr.. │

│ .                                                                            │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 55.98ms - stdout ]─────────────────────────────────────────────────────────╮

│ JBool true                                                                   │

│ JBool                                                                        │

│       Item: True                                                             │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jBool "false"

|> parserEqual (Success (JBool false))



╭─[ 44.68ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (JBool false, { lines = [                │

│ |&quot;false&quot;|]<br/>                        position = { line = 0<br/>  │

│ column = 5 }                                                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JBool false, { lines = [                        │

│ |&quot;false&quot;|]<br/>  position = { line = 0<br/>               column = │

│ 5 }                                                                          │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><details class="dni-treeview"><summary><span                  │

│ class="dni-code-hint"><code>JBool                                            │

│ false</code></span></summary><div><table><thead><tr></tr></thead><tb...      │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 51.03ms - stdout ]─────────────────────────────────────────────────────────╮

│ JBool false                                                                  │

│ JBool                                                                        │

│       Item: False                                                            │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jBool "truX"

|> parserEqual (

    Failure (

        "bool",

        "Unexpected 't'",

        { currentLine = "truX"; line = 0; column = 0 }

    )

)



╭─[ 25.79ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Failure (&quot;bool&quot;, &quot;Unexpected      │

│ &#39;t&#39;&quot;, { currentLine = &quot;truX&quot;<br/>                     │

│ line = 0<br/>                                     column = 0                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><div                                                          │

│ class="dni-plaintext"><pre>bool</pre></div></td></tr><tr><td>Item2</td><td>< │

│ div class="dni-plaintext"><pre>Unexpected                                    │

│ &#39;t&#39;</pre></div></td></tr><tr><td>Item3</td><td><details              │

│ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │

│ currentLine = &quot;truX&quot;<br/>  line = 0<br/>  column = 0               │

│ }</code></span></summary><div><table><thead><tr></tr></thead...              │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 31.71ms - stdout ]─────────────────────────────────────────────────────────╮

│ Line:0 Col:0 Error parsing bool                                              │

│ truX                                                                         │

│ ^Unexpected 't'                                                              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ### jUnescapedChar                                                           │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let jUnescapedChar =

    satisfy (fun ch -> ch <> '\\' && ch <> '\"') "char"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jUnescapedChar "a"

|> parserEqual (Success 'a')



╭─[ 56.86ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (&#39;a&#39;, { lines = [                │

│ |&quot;a&quot;|]<br/>                position = { line = 0<br/>              │

│ column = 1 }                                                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(a, { lines = [|&quot;a&quot;|]<br/>  position = │

│ { line = 0<br/>               column = 1 }                                   │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><div                                                          │

│ class="dni-plaintext"><pre>a</pre></div></td></tr><tr><td>Item2</td><td><det │

│ ails class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines │

│ = [|&quot;a&quot;|]<br/...                                                   │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 63.34ms - stdout ]─────────────────────────────────────────────────────────╮

│ 'a'                                                                          │

│ a                                                                            │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jUnescapedChar "\\"

|> parserEqual (

    Failure (

        "char",

        "Unexpected '\\'",

        { currentLine = "\\"; line = 0; column = 0 }

    )

)



╭─[ 31.63ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Failure (&quot;char&quot;, &quot;Unexpected      │

│ &#39;\&#39;&quot;, { currentLine = &quot;\&quot;<br/>                        │

│ line = 0<br/>                                     column = 0                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><div                                                          │

│ class="dni-plaintext"><pre>char</pre></div></td></tr><tr><td>Item2</td><td>< │

│ div class="dni-plaintext"><pre>Unexpected                                    │

│ &#39;\&#39;</pre></div></td></tr><tr><td>Item3</td><td><details              │

│ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │

│ currentLine = &quot;\&quot;<br/>  line = 0<br/>  column = 0                  │

│ }</code></span></summary><div><table><thead><tr></tr></thead><tbod...        │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 37.68ms - stdout ]─────────────────────────────────────────────────────────╮

│ Line:0 Col:0 Error parsing char                                              │

│ \                                                                            │

│ ^Unexpected '\'                                                              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ### jEscapedChar                                                             │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let jEscapedChar =

    [[

        ("\\\"",'\"')

        ("\\\\",'\\')

        ("\\/",'/')

        ("\\b",'\b')

        ("\\f",'\f')

        ("\\n",'\n')

        ("\\r",'\r')

        ("\\t",'\t')

    ]]

    |> List.map (fun (toMatch, result) ->

        pstring toMatch >>% result

    )

    |> choice

    <?> "escaped char"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jEscapedChar "\\\\"

|> parserEqual (Success '\\')



╭─[ 34.74ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (&#39;\\&#39;, { lines = [               │

│ |&quot;\\&quot;|]<br/>                 position = { line = 0<br/>            │

│ column = 2 }                                                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(\, { lines = [|&quot;\\&quot;|]<br/>  position  │

│ = { line = 0<br/>               column = 2 }                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><div                                                          │

│ class="dni-plaintext"><pre>\</pre></div></td></tr><tr><td>Item2</td><td><det │

│ ails class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines │

│ = [|&quot;\\&quot;...                                                        │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 41.17ms - stdout ]─────────────────────────────────────────────────────────╮

│ '\\'                                                                         │

│ \                                                                            │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jEscapedChar "\\t"

|> parserEqual (Success '\t')



╭─[ 31.39ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (&#39;\009&#39;, { lines = [             │

│ |&quot;\t&quot;|]<br/>                   position = { line = 0<br/>          │

│ column = 2 }                                                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(	, { lines = [|&quot;\t&quot;|]<br/>  position =  │

│ { line = 0<br/>               column = 2 }                                   │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><div class="dni-plaintext"><pre>	                               │

│ </pre></div></td></tr><tr><td>Item2</td><td><details                         │

│ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines = [  │

│ |&quot;\t...                                                                 │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 38.65ms - stdout ]─────────────────────────────────────────────────────────╮

│ '\009'                                                                       │

│ 	                                                                              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jEscapedChar @"\\"

|> parserEqual (Success '\\')



╭─[ 34.63ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (&#39;\\&#39;, { lines = [               │

│ |&quot;\\&quot;|]<br/>                 position = { line = 0<br/>            │

│ column = 2 }                                                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(\, { lines = [|&quot;\\&quot;|]<br/>  position  │

│ = { line = 0<br/>               column = 2 }                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><div                                                          │

│ class="dni-plaintext"><pre>\</pre></div></td></tr><tr><td>Item2</td><td><det │

│ ails class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines │

│ = [|&quot;\\&quot;...                                                        │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 41.01ms - stdout ]─────────────────────────────────────────────────────────╮

│ '\\'                                                                         │

│ \                                                                            │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jEscapedChar @"\n"

|> parserEqual (Success '\n')



╭─[ 32.30ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (&#39;\010&#39;, { lines = [             │

│ |&quot;<br/>&quot;|]<br/>                   position = { line = 0<br/>       │

│ column = 2 }                                                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(<br/>, { lines = [|&quot;<br/>&quot;|]<br/>     │

│ position = { line = 0<br/>               column = 2 }                        │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><div class="dni-plaintext"><pre>                              │

│ </pre></div></td></tr><tr><td>Item2</td><td><details                         │

│ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines =    │

│ ...                                                                          │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 38.87ms - stdout ]─────────────────────────────────────────────────────────╮

│ '\010'                                                                       │

│                                                                              │

│                                                                              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jEscapedChar "a"

|> parserEqual (

    Failure (

        "escaped char",

        "Unexpected 'a'",

        { currentLine = "a"; line = 0; column = 0 }

    )

)



╭─[ 26.76ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Failure (&quot;escaped char&quot;,               │

│ &quot;Unexpected &#39;a&#39;&quot;, { currentLine = &quot;a&quot;<br/>       │

│ line = 0<br/>                                             column = 0         │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><div class="dni-plaintext"><pre>escaped                       │

│ char</pre></div></td></tr><tr><td>Item2</td><td><div                         │

│ class="dni-plaintext"><pre>Unexpected                                        │

│ &#39;a&#39;</pre></div></td></tr><tr><td>Item3</td><td><details              │

│ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │

│ currentLine = &quot;a&quot;<br/>  line = 0<br/>  column = 0                  │

│ }</code></span></summary><div><tab...                                        │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 32.69ms - stdout ]─────────────────────────────────────────────────────────╮

│ Line:0 Col:0 Error parsing escaped char                                      │

│ a                                                                            │

│ ^Unexpected 'a'                                                              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ### jUnicodeChar                                                             │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let jUnicodeChar =

    let backslash = pchar '\\'

    let uChar = pchar 'u'

    let hexdigit = anyOf ([[ '0' .. '9' ]] @ [[ 'A' .. 'F' ]] @ [[ 'a' .. 'f' 

]])

    let fourHexDigits = hexdigit .>>. hexdigit .>>. hexdigit .>>. hexdigit



    let inline convertToChar (((h1, h2), h3), h4) =

        let str = $"%c{h1}%c{h2}%c{h3}%c{h4}"

        Int32.Parse (str, Globalization.NumberStyles.HexNumber) |> char



    backslash >>. uChar >>. fourHexDigits

    |>> convertToChar



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jUnicodeChar "\\u263A"

|> parserEqual (Success '☺')



╭─[ 56.32ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (&#39;☺&#39;, { lines = [                │

│ |&quot;\u263A&quot;|]<br/>                position = { line = 0<br/>         │

│ column = 6 }                                                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(☺, { lines = [|&quot;\u263A&quot;|]<br/>        │

│ position = { line = 0<br/>               column = 6 }                        │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><div                                                          │

│ class="dni-plaintext"><pre>☺</pre></div></td></tr><tr><td>Item2</td><td><det │

│ ails class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines │

│ = [|&quot;\u2...                                                             │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 63.30ms - stdout ]─────────────────────────────────────────────────────────╮

│ '☺'                                                                          │

│ ☺                                                                            │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ### jString                                                                  │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let quotedString =

    let quote = pchar '\"' <?> "quote"

    let jchar = jUnescapedChar <|> jEscapedChar <|> jUnicodeChar



    quote >>. manyChars jchar .>> quote



── fsharp ──────────────────────────────────────────────────────────────────────

let jString =

    quotedString

    |>> JString

    <?> "quoted string"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



jValueRef <|

    choice

        [[

            jNull

            jBool

            jString

        ]]



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jString "\"\""

|> parserEqual (Success (JString ""))



╭─[ 49.10ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (JString &quot;&quot;, { lines = [       │

│ |&quot;&quot;&quot;&quot;|]<br/>                       position = { line =   │

│ 0<br/>                                    column = 2 }                       │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JString &quot;&quot;, { lines = [               │

│ |&quot;&quot;&quot;&quot;|]<br/>  position = { line = 0<br/>                 │

│ column = 2 }                                                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><details class="dni-treeview"><summary><span                  │

│ class="dni-code-hint"><code>JString &quot;&quot;</code></span></summary>...  │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 55.84ms - stdout ]─────────────────────────────────────────────────────────╮

│ JString ""                                                                   │

│ JString                                                                      │

│       Item:                                                                  │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jString "\"a\""

|> parserEqual (Success (JString "a"))



╭─[ 32.06ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (JString &quot;a&quot;, { lines = [      │

│ |&quot;&quot;a&quot;&quot;|]<br/>                        position = { line = │

│ 0<br/>                                     column = 3 }                      │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JString &quot;a&quot;, { lines = [              │

│ |&quot;&quot;a&quot;&quot;|]<br/>  position = { line = 0<br/>                │

│ column = 3 }                                                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><details class="dni-treeview"><summary><span                  │

│ class="dni-code-hint"><code>JString &quot;a&quot;</code></span></s...        │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 38.26ms - stdout ]─────────────────────────────────────────────────────────╮

│ JString "a"                                                                  │

│ JString                                                                      │

│       Item: a                                                                │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jString "\"ab\""

|> parserEqual (Success (JString "ab"))



╭─[ 33.90ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (JString &quot;ab&quot;, { lines = [     │

│ |&quot;&quot;ab&quot;&quot;|]<br/>                         position = { line │

│ = 0<br/>                                      column = 4 }                   │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JString &quot;ab&quot;, { lines = [             │

│ |&quot;&quot;ab&quot;&quot;|]<br/>  position = { line = 0<br/>               │

│ column = 4 }                                                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><details class="dni-treeview"><summary><span                  │

│ class="dni-code-hint"><code>JString &quot;ab&quot;</code></s...              │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 39.74ms - stdout ]─────────────────────────────────────────────────────────╮

│ JString "ab"                                                                 │

│ JString                                                                      │

│       Item: ab                                                               │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jString "\"ab\\tde\""

|> parserEqual (Success (JString "ab\tde"))



╭─[ 35.06ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (JString &quot;ab	de&quot;, { lines = [    │

│ |&quot;&quot;ab\tde&quot;&quot;|]<br/>                            position = │

│ { line = 0<br/>                                         column = 8 }         │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JString &quot;ab	de&quot;, { lines = [            │

│ |&quot;&quot;ab\tde&quot;&quot;|]<br/>  position = { line = 0<br/>           │

│ column = 8 }                                                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><details class="dni-treeview"><summary><span                  │

│ class="dni-code-hint"><code>JString &quo...                                  │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 41.38ms - stdout ]─────────────────────────────────────────────────────────╮

│ JString "ab	de"                                                                │

│ JString                                                                      │

│       Item: ab	de                                                              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jString "\"ab\\u263Ade\""

|> parserEqual (Success (JString "ab☺de"))



╭─[ 31.10ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (JString &quot;ab☺de&quot;, { lines = [  │

│ |&quot;&quot;ab\u263Ade&quot;&quot;|]<br/>                                   │

│ position = { line = 0<br/>                                         column =  │

│ 12 }                                                                         │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JString &quot;ab☺de&quot;, { lines = [          │

│ |&quot;&quot;ab\u263Ade&quot;&quot;|]<br/>  position = { line = 0<br/>       │

│ column = 12 }                                                                │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><details class="dni-treeview"><summary><span                  │

│ class="dni-code-hint"><code>JS...                                            │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 37.31ms - stdout ]─────────────────────────────────────────────────────────╮

│ JString "ab☺de"                                                              │

│ JString                                                                      │

│       Item: ab☺de                                                            │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ### jNumber                                                                  │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let jNumber =

    let optSign = opt (pchar '-')



    let zero = pstring "0"



    let digitOneNine =

        satisfy (fun ch -> Char.IsDigit ch && ch <> '0') "1-9"



    let digit =

        satisfy Char.IsDigit "digit"



    let point = pchar '.'



    let e = pchar 'e' <|> pchar 'E'



    let optPlusMinus = opt (pchar '-' <|> pchar '+')



    let nonZeroInt =

        digitOneNine .>>. manyChars digit

        |>> fun (first, rest) -> string first + rest



    let intPart = zero <|> nonZeroInt



    let fractionPart = point >>. manyChars1 digit



    let exponentPart = e >>. optPlusMinus .>>. manyChars1 digit



    let inline (|>?) opt f =

        match opt with

        | None -> ""

        | Some x -> f x



    let inline convertToJNumber (((optSign, intPart), fractionPart), expPart) =

        let signStr =

            optSign

            |>? string



        let fractionPartStr =

            fractionPart

            |>? (fun digits -> "." + digits)



        let expPartStr =

            expPart

            |>? fun (optSign, digits) ->

                let sign = optSign |>? string

                "e" + sign + digits



        (signStr + intPart + fractionPartStr + expPartStr)

        |> float

        |> JNumber



    optSign .>>. intPart .>>. opt fractionPart .>>. opt exponentPart

    |>> convertToJNumber

    <?> "number"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



jValueRef <|

    choice

        [[

            jNull

            jBool

            jString

            jNumber

        ]]



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jNumber "123"

|> parserEqual (Success (JNumber 123.0))



╭─[ 68.78ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (JNumber 123.0, { lines = [              │

│ |&quot;123&quot;|]<br/>                          position = { line = 0<br/>  │

│ column = 3 }                                                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JNumber 123.0, { lines = [                      │

│ |&quot;123&quot;|]<br/>  position = { line = 0<br/>               column = 3 │

│ }                                                                            │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><details class="dni-treeview"><summary><span                  │

│ class="dni-code-hint"><code>JNumber                                          │

│ 123.0</code></span></summary><div><table><thead><tr></tr></the...            │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 74.83ms - stdout ]─────────────────────────────────────────────────────────╮

│ JNumber 123.0                                                                │

│ JNumber                                                                      │

│       Item: 123                                                              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jNumber "-123"

|> parserEqual (Success (JNumber -123.0))



╭─[ 34.61ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (JNumber -123.0, { lines = [             │

│ |&quot;-123&quot;|]<br/>                           position = { line =       │

│ 0<br/>                                        column = 4 }                   │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JNumber -123.0, { lines = [                     │

│ |&quot;-123&quot;|]<br/>  position = { line = 0<br/>               column =  │

│ 4 }                                                                          │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><details class="dni-treeview"><summary><span                  │

│ class="dni-code-hint"><code>JNumber                                          │

│ -123.0</code></span></summary><div><table><thead><tr></t...                  │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 41.20ms - stdout ]─────────────────────────────────────────────────────────╮

│ JNumber -123.0                                                               │

│ JNumber                                                                      │

│       Item: -123                                                             │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jNumber "123.4"

|> parserEqual (Success (JNumber 123.4))



╭─[ 33.54ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (JNumber 123.4, { lines = [              │

│ |&quot;123.4&quot;|]<br/>                          position = { line =       │

│ 0<br/>                                       column = 5 }                    │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JNumber 123.4, { lines = [                      │

│ |&quot;123.4&quot;|]<br/>  position = { line = 0<br/>               column = │

│ 5 }                                                                          │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><details class="dni-treeview"><summary><span                  │

│ class="dni-code-hint"><code>JNumber                                          │

│ 123.4</code></span></summary><div><table><thead><tr></tr><...                │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 40.12ms - stdout ]─────────────────────────────────────────────────────────╮

│ JNumber 123.4                                                                │

│ JNumber                                                                      │

│       Item: 123.4                                                            │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jNumber "-123."

|> parserEqual (Success (JNumber -123.0))



╭─[ 33.28ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (JNumber -123.0, { lines = [             │

│ |&quot;-123.&quot;|]<br/>                           position = { line =      │

│ 0<br/>                                        column = 4 }                   │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JNumber -123.0, { lines = [                     │

│ |&quot;-123.&quot;|]<br/>  position = { line = 0<br/>               column = │

│ 4 }                                                                          │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><details class="dni-treeview"><summary><span                  │

│ class="dni-code-hint"><code>JNumber                                          │

│ -123.0</code></span></summary><div><table><thead><tr><...                    │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 40.27ms - stdout ]─────────────────────────────────────────────────────────╮

│ JNumber -123.0                                                               │

│ JNumber                                                                      │

│       Item: -123                                                             │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jNumber "00.1"

|> parserEqual (Success (JNumber 0.0))



╭─[ 32.97ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (JNumber 0.0, { lines = [                │

│ |&quot;00.1&quot;|]<br/>                        position = { line = 0<br/>   │

│ column = 1 }                                                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JNumber 0.0, { lines = [                        │

│ |&quot;00.1&quot;|]<br/>  position = { line = 0<br/>               column =  │

│ 1 }                                                                          │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><details class="dni-treeview"><summary><span                  │

│ class="dni-code-hint"><code>JNumber                                          │

│ 0.0</code></span></summary><div><table><thead><tr></tr></thead><tbod...      │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 39.34ms - stdout ]─────────────────────────────────────────────────────────╮

│ JNumber 0.0                                                                  │

│ JNumber                                                                      │

│       Item: 0                                                                │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let jNumber_ = jNumber .>> spaces1



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jNumber_ "123"

|> parserEqual (Success (JNumber 123.0))



╭─[ 39.84ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (JNumber 123.0, { lines = [              │

│ |&quot;123&quot;|]<br/>                          position = { line = 1<br/>  │

│ column = 0 }                                                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JNumber 123.0, { lines = [                      │

│ |&quot;123&quot;|]<br/>  position = { line = 1<br/>               column = 0 │

│ }                                                                            │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><details class="dni-treeview"><summary><span                  │

│ class="dni-code-hint"><code>JNumber                                          │

│ 123.0</code></span></summary><div><table><thead><tr></tr></the...            │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 46.66ms - stdout ]─────────────────────────────────────────────────────────╮

│ JNumber 123.0                                                                │

│ JNumber                                                                      │

│       Item: 123                                                              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jNumber_ "-123"

|> parserEqual (Success (JNumber -123.0))



╭─[ 33.41ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (JNumber -123.0, { lines = [             │

│ |&quot;-123&quot;|]<br/>                           position = { line =       │

│ 1<br/>                                        column = 0 }                   │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JNumber -123.0, { lines = [                     │

│ |&quot;-123&quot;|]<br/>  position = { line = 1<br/>               column =  │

│ 0 }                                                                          │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><details class="dni-treeview"><summary><span                  │

│ class="dni-code-hint"><code>JNumber                                          │

│ -123.0</code></span></summary><div><table><thead><tr></t...                  │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 40.20ms - stdout ]─────────────────────────────────────────────────────────╮

│ JNumber -123.0                                                               │

│ JNumber                                                                      │

│       Item: -123                                                             │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jNumber_ "-123."

|> parserEqual (

    Failure (

        "number andThen many1 whitespace",

        "Unexpected '.'",

        { currentLine = "-123."; line = 0; column = 4 }

    )

)



╭─[ 23.39ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Failure<br/>  (&quot;number andThen many1        │

│ whitespace&quot;, &quot;Unexpected &#39;.&#39;&quot;, { currentLine =        │

│ &quot;-123.&quot;<br/>                                                       │

│ line = 0<br/>                                                                │

│ column = 4                                                                   │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><div class="dni-plaintext"><pre>number andThen many1          │

│ whitespace</pre></div></td></tr><tr><td>Item2</td><td><div                   │

│ class="dni-plaintext"><pre>Unexpected                                        │

│ &#39;.&#39;</pre></div></td></tr><tr><td>Item3</td><td><details              │

│ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │

│ currentLine = &quot;...                                                      │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 29.81ms - stdout ]─────────────────────────────────────────────────────────╮

│ Line:0 Col:4 Error parsing number andThen many1 whitespace                   │

│ -123.                                                                        │

│     ^Unexpected '.'                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jNumber_ "123.4"

|> parserEqual (Success (JNumber 123.4))



╭─[ 34.13ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (JNumber 123.4, { lines = [              │

│ |&quot;123.4&quot;|]<br/>                          position = { line =       │

│ 1<br/>                                       column = 0 }                    │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JNumber 123.4, { lines = [                      │

│ |&quot;123.4&quot;|]<br/>  position = { line = 1<br/>               column = │

│ 0 }                                                                          │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><details class="dni-treeview"><summary><span                  │

│ class="dni-code-hint"><code>JNumber                                          │

│ 123.4</code></span></summary><div><table><thead><tr></tr><...                │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 40.74ms - stdout ]─────────────────────────────────────────────────────────╮

│ JNumber 123.4                                                                │

│ JNumber                                                                      │

│       Item: 123.4                                                            │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jNumber_ "00.4"

|> parserEqual (

    Failure (

        "number andThen many1 whitespace",

        "Unexpected '0'",

        { currentLine = "00.4"; line = 0; column = 1 }

    )

)



╭─[ 26.30ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Failure<br/>  (&quot;number andThen many1        │

│ whitespace&quot;, &quot;Unexpected &#39;0&#39;&quot;, { currentLine =        │

│ &quot;00.4&quot;<br/>                                                        │

│ line = 0<br/>                                                                │

│ column = 1                                                                   │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><div class="dni-plaintext"><pre>number andThen many1          │

│ whitespace</pre></div></td></tr><tr><td>Item2</td><td><div                   │

│ class="dni-plaintext"><pre>Unexpected                                        │

│ &#39;0&#39;</pre></div></td></tr><tr><td>Item3</td><td><details              │

│ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │

│ currentLine = &quot;0...                                                     │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 32.35ms - stdout ]─────────────────────────────────────────────────────────╮

│ Line:0 Col:1 Error parsing number andThen many1 whitespace                   │

│ 00.4                                                                         │

│  ^Unexpected '0'                                                             │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jNumber_ "123e4"

|> parserEqual (Success (JNumber 1230000.0))



╭─[ 34.63ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (JNumber 1230000.0, { lines = [          │

│ |&quot;123e4&quot;|]<br/>                              position = { line =   │

│ 1<br/>                                           column = 0 }                │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JNumber 1230000.0, { lines = [                  │

│ |&quot;123e4&quot;|]<br/>  position = { line = 1<br/>               column = │

│ 0 }                                                                          │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><details class="dni-treeview"><summary><span                  │

│ class="dni-code-hint"><code>JNumber                                          │

│ 1230000.0</code></span></summary><div><tab...                                │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 41.57ms - stdout ]─────────────────────────────────────────────────────────╮

│ JNumber 1230000.0                                                            │

│ JNumber                                                                      │

│       Item: 1230000                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jNumber_ "123.4e5"

|> parserEqual (Success (JNumber 12340000.0))



╭─[ 37.72ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (JNumber 12340000.0, { lines = [         │

│ |&quot;123.4e5&quot;|]<br/>                               position = { line  │

│ = 1<br/>                                            column = 0 }             │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JNumber 12340000.0, { lines = [                 │

│ |&quot;123.4e5&quot;|]<br/>  position = { line = 1<br/>               column │

│ = 0 }                                                                        │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><details class="dni-treeview"><summary><span                  │

│ class="dni-code-hint"><code>JNumber 12340000.0</code></span></summary>...    │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 44.36ms - stdout ]─────────────────────────────────────────────────────────╮

│ JNumber 12340000.0                                                           │

│ JNumber                                                                      │

│       Item: 12340000                                                         │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jNumber_ "123.4e-5"

|> parserEqual (Success (JNumber 0.001234))



╭─[ 36.49ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (JNumber 0.001234, { lines = [           │

│ |&quot;123.4e-5&quot;|]<br/>                             position = { line = │

│ 1<br/>                                          column = 0 }                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JNumber 0.001234, { lines = [                   │

│ |&quot;123.4e-5&quot;|]<br/>  position = { line = 1<br/>                     │

│ column = 0 }                                                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><details class="dni-treeview"><summary><span                  │

│ class="dni-code-hint"><code>JNumber                                          │

│ 0.001234</code></span></summary><div><ta...                                  │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 42.97ms - stdout ]─────────────────────────────────────────────────────────╮

│ JNumber 0.001234                                                             │

│ JNumber                                                                      │

│       Item: 0.001234                                                         │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ### jArray                                                                   │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let jArray =

    let left = pchar '[[' .>> spaces

    let right = pchar ']]' .>> spaces

    let comma = pchar ',' .>> spaces

    let value = jValue .>> spaces



    let values = sepBy value comma



    between left values right

    |>> JArray

    <?> "array"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



jValueRef <|

    choice

        [[

            jNull

            jBool

            jString

            jNumber

            jArray

        ]]



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jArray "[[ 1, 2 ]]"

|> parserEqual (Success (JArray [[ JNumber 1.0; JNumber 2.0 ]]))



╭─[ 84.37ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success (JArray [JNumber 1.0; JNumber 2.0], {    │

│ lines = [|&quot;[ 1, 2 ]&quot;|]<br/>                                        │

│ position = { line = 1<br/>                                                   │

│ column = 0 }                                                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JArray [JNumber 1.0; JNumber 2.0], { lines = [  │

│ |&quot;[ 1, 2 ]&quot;|]<br/>  position = { line = 1<br/>                     │

│ column = 0 }                                                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><details class="dni-treeview"><summary><span class="d...      │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 90.48ms - stdout ]─────────────────────────────────────────────────────────╮

│ JArray [JNumber 1.0; JNumber 2.0]                                            │

│ JArray                                                                       │

│       Item: FSharpList<JValue>                                               │

│         - Item: 1                                                            │

│         - Item: 2                                                            │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jArray "[[ 1, 2, ]]"

|> parserEqual (

    Failure (

        "array",

        "Unexpected ','",

        { currentLine = "[[ 1, 2, ]]"; line = 0; column = 6 }

    )

)



╭─[ 30.03ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Failure (&quot;array&quot;, &quot;Unexpected     │

│ &#39;,&#39;&quot;, { currentLine = &quot;[ 1, 2, ]&quot;<br/>                │

│ line = 0<br/>                                      column = 6                │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><div                                                          │

│ class="dni-plaintext"><pre>array</pre></div></td></tr><tr><td>Item2</td><td> │

│ <div class="dni-plaintext"><pre>Unexpected                                   │

│ &#39;,&#39;</pre></div></td></tr><tr><td>Item3</td><td><details              │

│ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │

│ currentLine = &quot;[ 1, 2, ]&quot;<br/>  line = 0<br/>  column = 6          │

│ }</code></span></summary><div><table><thead><t...                            │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 35.78ms - stdout ]─────────────────────────────────────────────────────────╮

│ Line:0 Col:6 Error parsing array                                             │

│ [ 1, 2, ]                                                                    │

│       ^Unexpected ','                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ### jObject                                                                  │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let jObject =

    let left = spaces >>. pchar '{' .>> spaces

    let right = pchar '}' .>> spaces

    let colon = pchar ':' .>> spaces

    let comma = pchar ',' .>> spaces

    let key = quotedString .>> spaces

    let value = jValue .>> spaces



    let keyValue = (key .>> colon) .>>. value

    let keyValues = sepBy keyValue comma



    between left keyValues right

    |>> Map.ofList

    |>> JObject

    <?> "object"



── fsharp ──────────────────────────────────────────────────────────────────────

jValueRef <|

    choice

        [[

            jNull

            jBool

            jString

            jNumber

            jArray

            jObject

        ]]



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jObject """{ "a":1, "b"  :  2 }"""

|> parserEqual (

    Success (

        JObject (

            Map.ofList [[

                "a", JNumber 1.0

                "b", JNumber 2.0

            ]]

        )

    )

)



╭─[ 86.39ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success<br/>  (JObject (map [(&quot;a&quot;,     │

│ JNumber 1.0); (&quot;b&quot;, JNumber 2.0)]),<br/>   { lines = [|&quot;{     │

│ &quot;a&quot;:1, &quot;b&quot;  :  2 }&quot;|]<br/>     position = { line =  │

│ 1<br/>                  column = 0 }                                         │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item</td><td><details class="dni-treeview"><summary><span                   │

│ class="dni-code-hint"><code>(JObject (map [(&quot;a&quot;, JNumber 1.0);     │

│ (&quot;b&quot;, JNumber 2.0)]), { lines = [|&quot;{ &quot;a&quot;:1,         │

│ &quot;b&quot;  :  2 }&quot;|]<br/>  position = { line = 1<br/>               │

│ column = 0 }                                                                 │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbod...       │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 92.96ms - stdout ]─────────────────────────────────────────────────────────╮

│ JObject (map [("a", JNumber 1.0); ("b", JNumber 2.0)])                       │

│ JObject                                                                      │

│       Item: FSharpMap<String,JValue>                                         │

│         - Key: a                                                             │

│           Value: JNumber                                                     │

│             Item: 1                                                          │

│         - Key: b                                                             │

│           Value: JNumber                                                     │

│             Item: 2                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run jObject """{ "a":1, "b"  :  2, }"""

|> parserEqual (

    Failure (

        "object",

        "Unexpected ','",

        { currentLine = """{ "a":1, "b"  :  2, }"""; line = 0; column = 18 }

    )

)



╭─[ 29.86ms - return value ]───────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Failure (&quot;object&quot;, &quot;Unexpected    │

│ &#39;,&#39;&quot;, { currentLine = &quot;{ &quot;a&quot;:1, &quot;b&quot;  : │

│ 2, }&quot;<br/>                                       line = 0<br/>          │

│ column = 18                                                                  │

│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><div                                                          │

│ class="dni-plaintext"><pre>object</pre></div></td></tr><tr><td>Item2</td><td │

│ ><div class="dni-plaintext"><pre>Unexpected                                  │

│ &#39;,&#39;</pre></div></td></tr><tr><td>Item3</td><td><details              │

│ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │

│ currentLine = &quot;{ &quot;a&quot;:1, &quot;b&quot;  :  2, }&quot;<br/>     │

│ lin...                                                                       │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 36.47ms - stdout ]─────────────────────────────────────────────────────────╮

│ Line:0 Col:18 Error parsing object                                           │

│ { "a":1, "b"  :  2, }                                                        │

│                   ^Unexpected ','                                            │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ### jValue                                                                   │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let example1 = """{

    "name" : "Scott",

    "isMale" : true,

    "bday" : {"year":2001, "month":12, "day":25 },

    "favouriteColors" : [["blue", "green"]],

    "emptyArray" : [[]],

    "emptyObject" : {}

}"""

run jValue example1

|> parserEqual (

    Success (

        JObject (

            Map.ofList [[

                "name", JString "Scott"

                "isMale", JBool true

                "bday", JObject (

                    Map.ofList [[

                        "year", JNumber 2001.0

                        "month", JNumber 12.0

                        "day", JNumber 25.0

                    ]]

                )

                "favouriteColors", JArray [[ JString "blue"; JString "green" ]]

                "emptyArray", JArray [[]]

                "emptyObject", JObject Map.empty

            ]]

        )

    )

)



╭─[ 170.80ms - return value ]──────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success<br/>  (JObject<br/>     (map<br/>        │

│ [(&quot;bday&quot;,<br/>          JObject<br/>            (map<br/>          │

│ [(&quot;day&quot;, JNumber 25.0); (&quot;month&quot;, JNumber 12.0);<br/>    │

│ (&quot;year&quot;, JNumber 2001.0)])); (&quot;emptyArray&quot;, JArray [     │

│ ]);<br/>         (&quot;emptyObject&quot;, JObject (map []));<br/>           │

│ (&quot;favouriteColors&quot;,                                                │

│ ...</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><t │

│ d>Item</td><td><details class="dni-treeview"><summary><span                  │

│ class="dni-code-hint"><code>(JObject<br/>  (map<br/>     [                   │

│ (&quot;bday&quot;,<br/>       JObject<br/>         (map<br/>            [    │

│ (...                                                                         │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 176.69ms - stdout ]────────────────────────────────────────────────────────╮

│ JObject                                                                      │

│   (map                                                                       │

│      [("bday",                                                               │

│        JObject                                                               │

│          (map                                                                │

│             [("day", JNumber 25.0); ("month", JNumber 12.0);                 │

│              ("year", JNumber 2001.0)])); ("emptyArray", JArray []);         │

│       ("emptyObject", JObject (map []));                                     │

│       ("favouriteColors", JArray [JString "blue"; JString "green"]);         │

│       ("isMale", JBool true); ("name", JString "Scott")])                    │

│ JObject                                                                      │

│       Item: FSharpMap<String,JValue>                                         │

│         - Key: bday                                                          │

│           Value: JObject                                                     │

│             Item: FSharpMap<String,JValue>                                   │

│               - Key: day                                                     │

│                 Value: JNumber 25.0                                          │

│               - Key: month                                                   │

│                 Value: JNumber 12.0                                          │

│               - Key: year                                                    │

│                 Value: JNumber 2001.0                                        │

│         - Key: emptyArray                                                    │

│           Value: JArray                                                      │

│             Item: FSharpList<JValue>                                         │

│                                                                              │

│         - Key: emptyObject                                                   │

│           Value: JObject                                                     │

│             Item: FSharpMap<String,JValue>                                   │

│                                                                              │

│         - Key: favouriteColors                                               │

│           Value: JArray                                                      │

│             Item: FSharpList<JValue>                                         │

│               - Item: blue                                                   │

│               - Item: green                                                  │

│         - Key: isMale                                                        │

│           Value: JBool                                                       │

│             Item: True                                                       │

│         - Key: name                                                          │

│           Value: JString                                                     │

│             Item: Scott                                                      │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let example2 = """{"widget": {

    "debug": "on",

    "window": {

        "title": "Sample Konfabulator Widget",

        "name": "main_window",

        "width": 500,

        "height": 500

    },

    "image": {

        "src": "Images/Sun.png",

        "name": "sun1",

        "hOffset": 250,

        "vOffset": 250,

        "alignment": "center"

    },

    "text": {

        "data": "Click Here",

        "size": 36,

        "style": "bold",

        "name": "text1",

        "hOffset": 250,

        "vOffset": 100,

        "alignment": "center",

        "onMouseUp": "sun1.opacity = (sun1.opacity / 100) * 90;"

    }

}}"""



run jValue example2

|> parserEqual (

    Success (

        JObject (

            Map.ofList [[

                "widget", JObject (

                    Map.ofList [[

                        "debug", JString "on"

                        "window", JObject (

                            Map.ofList [[

                                "title", JString "Sample Konfabulator Widget"

                                "name", JString "main_window"

                                "width", JNumber 500.0

                                "height", JNumber 500.0

                            ]]

                        )

                        "image", JObject (

                            Map.ofList [[

                                "src", JString "Images/Sun.png"

                                "name", JString "sun1"

                                "hOffset", JNumber 250.0

                                "vOffset", JNumber 250.0

                                "alignment", JString "center"

                            ]]

                        )

                        "text", JObject (

                            Map.ofList [[

                                "data", JString "Click Here"

                                "size", JNumber 36.0

                                "style", JString "bold"

                                "name", JString "text1"

                                "hOffset", JNumber 250.0

                                "vOffset", JNumber 100.0

                                "alignment", JString "center"

                                "onMouseUp", JString "sun1.opacity = 

(sun1.opacity / 100) * 90;"

                            ]]

                        )

                    ]]

                )

            ]]

        )

    )

)



╭─[ 315.98ms - return value ]──────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success<br/>  (JObject<br/>     (map<br/>        │

│ [(&quot;widget&quot;,<br/>          JObject<br/>            (map<br/>        │

│ [(&quot;debug&quot;, JString &quot;on&quot;);<br/>                           │

│ (&quot;image&quot;,<br/>                 JObject<br/>                        │

│ (map<br/>                      [(&quot;alignment&quot;, JString              │

│ &quot;center&quot;);<br/>                                                    │

│ (&quot;hOffset&quot;...</code></span></summary><div><table><thead><tr></tr>< │

│ /thead><tbody><tr><td>Item</td><td><details                                  │

│ class="dni-treeview"><summary><span                                          │

│ class="dni-code-hint"><code>(JObject<br/>  (map<br/>     [                   │

│ (&quot;widget&quot;,<br/>       JObject<br/>         (map<br/>      ...      │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 322.45ms - stdout ]────────────────────────────────────────────────────────╮

│ JObject                                                                      │

│   (map                                                                       │

│      [("widget",                                                             │

│        JObject                                                               │

│          (map                                                                │

│             [("debug", JString "on");                                        │

│              ("image",                                                       │

│               JObject                                                        │

│                 (map                                                         │

│                    [("alignment", JString "center"); ("hOffset", JNumber     │

│ 250.0);                                                                      │

│                     ("name", JString "sun1"); ("src", JString                │

│ "Images/Sun.png");                                                           │

│                     ("vOffset", JNumber 250.0)]));                           │

│              ("text",                                                        │

│               JObject                                                        │

│                 (map                                                         │

│                    [("alignment", JString "center");                         │

│                     ("data", JString "Click Here"); ("hOffset", JNumber      │

│ 250.0);                                                                      │

│                     ("name", JString "text1");                               │

│                     ("onMouseUp",                                            │

│                      JString "sun1.opacity = (sun1.opacity / 100) * 90;");   │

│                     ("size", JNumber 36.0); ("style", JString "bold");       │

│                     ("vOffset", JNumber 100.0)]));                           │

│              ("window",                                                      │

│               JObject                                                        │

│                 (map                                                         │

│                    [("height", JNumber 500.0); ("name", JString              │

│ "main_window");                                                              │

│                     ("title", JString "Sample Konfabulator Widget");         │

│                     ("width", JNumber 500.0)]))]))])                         │

│ JObject                                                                      │

│       Item: FSharpMap<String,JValue>                                         │

│         - Key: widget                                                        │

│           Value: JObject                                                     │

│             Item: FSharpMap<String,JValue>                                   │

│               - Key: debug                                                   │

│                 Value: JString "on"                                          │

│               - Key: image                                                   │

│                 Value: JObject                                               │

│   (map                                                                       │

│      [("alignment", JString "center"); ("hOffset", JNumber 250.0);           │

│       ("name", JString "sun1"); ("src", JString "Images/Sun.png");           │

│       ("vOffset", JNumber 250.0)])                                           │

│               - Key: text                                                    │

│                 Value: JObject                                               │

│   (map                                                                       │

│      [("alignment", JString "center"); ("data", JString "Click Here");       │

│       ("hOffset", JNumber 250.0); ("name", JString "text1");                 │

│       ("onMouseUp", JString "sun1.opacity = (sun1.opacity / 100) * 90;");    │

│       ("size", JNumber 36.0); ("style", JString "bold");                     │

│       ("vOffset", JNumber 100.0)])                                           │

│               - Key: window                                                  │

│                 Value: JObject                                               │

│   (map                                                                       │

│      [("height", JNumber 500.0); ("name", JString "main_window");            │

│       ("title", JString "Sample Konfabulator Widget"); ("width", JNumber     │

│ 500.0)])                                                                     │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let example3 = """{

  "string": "Hello, \"World\"!",

  "escapedString": "This string contains \\/\\\\\\b\\f\\n\\r\\t\\\"\\'",

  "number": 42,

  "scientificNumber": 3.14e-10,

  "boolean": true,

  "nullValue": null,

  "array": [[1, 2, 3, 4, 5]],

  "unicodeString1": "프리마",

  "unicodeString2": "\u0048\u0065\u006C\u006C\u006F, 

\u0022\u0057\u006F\u0072\u006C\u0064\u0022!",

  "specialCharacters": "!@#$%^&*()",

  "emptyArray": [[]],

  "emptyObject": {},

  "nestedArrays": [[[[1, 2, 3]], [[4, 5, 6]]]],

  "object": {

    "nestedString": "Nested Value",

    "nestedNumber": 3.14,

    "nestedBoolean": false,

    "nestedNull": null,

    "nestedArray": [["a", "b", "c"]],

    "nestedObject": {

      "nestedProperty": "Nested Object Value"

    }

  },

  "nestedObjects": [[

    {"name": "Alice", "age": 25},

    {"name": "Bob", "age": 30}

  ]]

}"""

run jValue example3

|> parserEqual (

    Success (

        JObject (

            Map.ofList [[

                "string", JString @"Hello, ""World""!"

                "escapedString", JString @"This string contains 

\/\\\b\f\n\r\t\""\'"

                "number", JNumber 42.0

                "scientificNumber", JNumber 3.14e-10

                "boolean", JBool true

                "nullValue", JNull

                "array", JArray [[

                    JNumber 1.0; JNumber 2.0; JNumber 3.0; JNumber 4.0; JNumber 

5.0

                ]]

                "unicodeString1", JString "프리마"

                "unicodeString2", JString @"Hello, ""World""!"

                "specialCharacters", JString "!@#$%^&*()"

                "emptyArray", JArray [[]]

                "emptyObject", JObject Map.empty

                "nestedArrays", JArray [[

                    JArray [[ JNumber 1.0; JNumber 2.0; JNumber 3.0 ]]

                    JArray [[ JNumber 4.0; JNumber 5.0; JNumber 6.0 ]]

                ]]

                "object", JObject (

                    Map.ofList [[

                        "nestedString", JString "Nested Value"

                        "nestedNumber", JNumber 3.14

                        "nestedBoolean", JBool false

                        "nestedNull", JNull

                        "nestedArray", JArray [[JString "a"; JString "b"; 

JString "c"]]

                        "nestedObject", JObject (

                            Map.ofList [[

                                "nestedProperty", JString "Nested Object Value"

                            ]]

                        )

                    ]]

                )

                "nestedObjects", JArray [[

                  JObject (Map.ofList [[ "name", JString "Alice"; "age", JNumber

25.0 ]])

                  JObject (Map.ofList [[ "name", JString "Bob"; "age", JNumber 

30.0 ]])

                ]]

            ]]

        )

    )

)



╭─[ 421.14ms - return value ]──────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Success<br/>  (JObject<br/>     (map<br/>        │

│ [(&quot;array&quot;,<br/>          JArray<br/>            [JNumber 1.0;      │

│ JNumber 2.0; JNumber 3.0; JNumber 4.0; JNumber 5.0]);<br/>                   │

│ (&quot;boolean&quot;, JBool true); (&quot;emptyArray&quot;, JArray []);<br/> │

│ (&quot;emptyObject&quot;, JObject (map []));<br/>                            │

│ (&quot;escapedString&quot;, JString &quot;This                               │

│ s...</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr>< │

│ td>Item</td><td><details class="dni-treeview"><summary><span                 │

│ class="dni-code-hint"><code>(JObject<br/>  (map<br/>     [                   │

│ (&quot;array&quot;,<br/>       JArray [JNumber 1.0; JNumber 2.0; JNumber     │

│ 3.0; JNumber 4.0; J...                                                       │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 427.79ms - stdout ]────────────────────────────────────────────────────────╮

│ JObject                                                                      │

│   (map                                                                       │

│      [("array",                                                              │

│        JArray [JNumber 1.0; JNumber 2.0; JNumber 3.0; JNumber 4.0; JNumber   │

│ 5.0]);                                                                       │

│       ("boolean", JBool true); ("emptyArray", JArray []);                    │

│       ("emptyObject", JObject (map []));                                     │

│       ("escapedString", JString "This string contains \/\\\b\f\n\r\t\"\'");  │

│       ("nestedArrays",                                                       │

│        JArray                                                                │

│          [JArray [JNumber 1.0; JNumber 2.0; JNumber 3.0];                    │

│           JArray [JNumber 4.0; JNumber 5.0; JNumber 6.0]]);                  │

│       ("nestedObjects",                                                      │

│        JArray                                                                │

│          [JObject (map [("age", JNumber 25.0); ("name", JString "Alice")]);  │

│           JObject (map [("age", JNumber 30.0); ("name", JString "Bob")])]);  │

│       ("nullValue", JNull); ("number", JNumber 42.0); ...])                  │

│ JObject                                                                      │

│       Item: FSharpMap<String,JValue>                                         │

│         - Key: array                                                         │

│           Value: JArray                                                      │

│             Item: FSharpList<JValue>                                         │

│               - Item: 1                                                      │

│               - Item: 2                                                      │

│               - Item: 3                                                      │

│               - Item: 4                                                      │

│               - Item: 5                                                      │

│         - Key: boolean                                                       │

│           Value: JBool                                                       │

│             Item: True                                                       │

│         - Key: emptyArray                                                    │

│           Value: JArray                                                      │

│             Item: FSharpList<JValue>                                         │

│                                                                              │

│         - Key: emptyObject                                                   │

│           Value: JObject                                                     │

│             Item: FSharpMap<String,JValue>                                   │

│                                                                              │

│         - Key: escapedString                                                 │

│           Value: JString                                                     │

│             Item: This string contains \/\\\b\f\n\r\t\"\'                    │

│         - Key: nestedArrays                                                  │

│           Value: JArray                                                      │

│             Item: FSharpList<JValue>                                         │

│               - Item: [ JNumber 1.0, JNumber 2.0, JNumber 3.0 ]              │

│               - Item: [ JNumber 4.0, JNumber 5.0, JNumber 6.0 ]              │

│         - Key: nestedObjects                                                 │

│           Value: JArray                                                      │

│             Item: FSharpList<JValue>                                         │

│               - Item: [ [age, JNumber 25.0], [name, JString "Alice"] ]       │

│               - Item: [ [age, JNumber 30.0], [name, JString "Bob"] ]         │

│         - Key: nullValue                                                     │

│           Value: JNull                                                       │

│         - Key: number                                                        │

│           Value: JNumber                                                     │

│             Item: 42                                                         │

│         - Key: object                                                        │

│           Value: JObject                                                     │

│             Item: FSharpMap<String,JValue>                                   │

│               - Key: nestedArray                                             │

│                 Value: JArray [JString "a"; JString "b"; JString "c"]        │

│               - Key: nestedBoolean                                           │

│                 Value: JBool false                                           │

│               - Key: nestedNull                                              │

│                 Value: JNull                                                 │

│               - Key: nestedNumber                                            │

│                 Value: JNumber 3.14                                          │

│               - Key: nestedObject                                            │

│                 Value: JObject (map [("nestedProperty", JString "Nested      │

│ Object Value")])                                                             │

│               - Key: nestedString                                            │

│                 Value: JString "Nested Value"                                │

│         - Key: scientificNumber                                              │

│           Value: JNumber                                                     │

│             Item: 3.14E-10                                                   │

│         - Key: specialCharacters                                             │

│           Value: JString                                                     │

│             Item: !@#$%^&*()                                                 │

│         - Key: string                                                        │

│           Value: JString                                                     │

│             Item: Hello, "World"!                                            │

│         - Key: unicodeString1                                                │

│           Value: JString                                                     │

│             Item: 프리마                                                     │

│         - Key: unicodeString2                                                │

│           Value: JString                                                     │

│             Item: Hello, "World"!                                            │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯

[NbConvertApp] Converting notebook JsonParser.dib.ipynb to html

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

  validate(nb)

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:72: UserWarning: IPython3 lexer unavailable, falling back on Python 3

  return _pygments_highlight(

[NbConvertApp] Writing 502725 bytes to JsonParser.dib.html



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ # Parser (Polyglot)                                                          │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../nbs/Testing.dib



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A

spNetCore.Html.Abstractions.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.Formatting.dll"

open System

open System.IO

open System.Text

open Microsoft.DotNet.Interactive.Formatting



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

open type Microsoft.DotNet.Interactive.Kernel



── fsharp - import ─────────────────────────────────────────────────────────────

#r @"../../../../../../../.nuget/packages/expecto/10.1.0/lib/net6.0/Expecto.dll"



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



Formatter.ListExpansionLimit <- 100



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



type AssertExceptionFormatter (ex) =

    member _.Text =

        ex.ToString()

            .Replace("32m", "<span style=\"color: green;\">")

            .Replace("36m", "</span>")

            .Replace("31m", "<span style=\"color: red;\">")

            .Replace("\n", "<br/>\n")





Formatter.Register<AssertExceptionFormatter> ((fun (x : 

AssertExceptionFormatter) -> x.Text), "text/html")



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __expect fn log expected actual =

    if log then printfn $"{actual.ToDisplayString ()}"

    try

        "Testing.__expect" |> fn actual expected

    with :? Expecto.AssertException as ex ->

        AssertExceptionFormatter(ex).Display () |> ignore

        failwith (ex.GetType().FullName)



let inline __contains log expected actual = __expect Expecto.Expect.contains log

expected actual

let inline _contains expected actual = __contains true expected actual



let inline __equal log expected actual = __expect Expecto.Expect.equal log 

expected actual

let inline _equal expected actual = __equal true expected actual



let inline __isGreaterThan log expected actual = __expect 

Expecto.Expect.isGreaterThan log expected actual

let ...



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __isBetween log a b actual =

    let inline isBetween actual (a, b) _ =

        __isGreaterThanOrEqual log a actual

        __isLessThanOrEqual log b actual

    __expect isBetween log (a, b) actual

let inline _isBetween a b actual = __isBetween true a b actual



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../nbs/Common.fs



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Common =



    let nl = System.Environment.NewLine

    let q = @""""



    let inline cons head tail = head :: tail



    module String =

        let inline contains (value : string) (input : string) =

            input.Contains value



        let inline endsWith (value : string) (input : string) =

            input.EndsWith value



        let inline padLeft totalWidth paddingChar (input : string) =

            input.PadLeft (totalWidth, paddingChar)



        let inline replace (oldValue : string) (newValue : string) (input : 

string) =

            input.Replace (oldValue, newValue)



        let inline split separator (input : string) =

            input.Split separator



        let inline spli...



── fsharp ──────────────────────────────────────────────────────────────────────

open Common



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ### TextInput                                                                │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

type Position =

    {

        line : int

        column : int

    }



── fsharp ──────────────────────────────────────────────────────────────────────

let initialPos = { line = 0; column = 0 }



── fsharp ──────────────────────────────────────────────────────────────────────

let inline incrCol (pos : Position) =

    { pos with column = pos.column + 1 }



── fsharp ──────────────────────────────────────────────────────────────────────

let inline incrLine pos =

    { line = pos.line + 1; column = 0 }



── fsharp ──────────────────────────────────────────────────────────────────────

type InputState =

    {

        lines : string[[]]

        position : Position

    }



── fsharp ──────────────────────────────────────────────────────────────────────

let inline fromStr str =

    {

        lines =

            if str |> String.IsNullOrEmpty

            then [[||]]

            else str |> String.splitString [[| "\r\n"; "\n" |]]

        position = initialPos

    }



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



fromStr "" |> _equal {

    lines = [[||]]

    position = { line = 0; column = 0 }

}



╭─[ 45.55ms - stdout ]─────────────────────────────────────────────────────────╮

│ InputState                                                                   │

│       lines: [  ]                                                            │

│       position: Position                                                     │

│         line: 0                                                              │

│         column: 0                                                            │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



fromStr "Hello \n World" |> _equal {

    lines = [[| "Hello "; " World" |]]

    position = { line = 0; column = 0 }

}



╭─[ 21.96ms - stdout ]─────────────────────────────────────────────────────────╮

│ InputState                                                                   │

│       lines: [ Hello ,  World ]                                              │

│       position: Position                                                     │

│         line: 0                                                              │

│         column: 0                                                            │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline currentLine inputState =

    let linePos = inputState.position.line

    if linePos < inputState.lines.Length

    then inputState.lines.[[linePos]]

    else "end of file"



── fsharp ──────────────────────────────────────────────────────────────────────

let inline nextChar input =

    let linePos = input.position.line

    let colPos = input.position.column



    if linePos >= input.lines.Length

    then input, None

    else

        let currentLine = currentLine input

        if colPos < currentLine.Length then

            let char = currentLine.[[colPos]]

            let newPos = incrCol input.position

            let newState = { input with position = newPos }

            newState, Some char

        else

            let char = '\n'

            let newPos = incrLine input.position

            let newState = { input with position = newPos }

            newState, Some char



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let newInput, charOpt = fromStr "Hello World" |> nextChar



newInput |> _equal {

    lines = [[| "Hello World" |]]

    position = { line = 0; column = 1 }

}

charOpt |> _equal (Some 'H')



╭─[ 42.65ms - stdout ]─────────────────────────────────────────────────────────╮

│ InputState                                                                   │

│       lines: [ Hello World ]                                                 │

│       position: Position                                                     │

│         line: 0                                                              │

│         column: 1                                                            │

│ FSharpOption<Char>                                                           │

│       Value: H                                                               │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let newInput, charOpt = fromStr "Hello\n\nWorld" |> nextChar



newInput |> _equal {

    lines = [[| "Hello"; ""; "World" |]]

    position = { line = 0; column = 1 }

}

charOpt |> _equal (Some 'H')



╭─[ 28.32ms - stdout ]─────────────────────────────────────────────────────────╮

│ InputState                                                                   │

│       lines: [ Hello, , World ]                                              │

│       position: Position                                                     │

│         line: 0                                                              │

│         column: 1                                                            │

│ FSharpOption<Char>                                                           │

│       Value: H                                                               │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ### Parser                                                                   │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

type Input = InputState

type ParserLabel = string

type ParserError = string



type ParserPosition =

    {

        currentLine : string

        line : int

        column : int

    }



type ParseResult<'a> =

    | Success of 'a

    | Failure of ParserLabel * ParserError * ParserPosition



type Parser<'a> =

    {

        label : ParserLabel

        parseFn : Input -> ParseResult<'a * Input>

    }



── fsharp ──────────────────────────────────────────────────────────────────────

let inline printResult result =

    match result with

    | Success (value, input) ->

        printfn $"%A{value}"

    | Failure (label, error, parserPos) ->

        let errorLine = parserPos.currentLine

        let colPos = parserPos.column

        let linePos = parserPos.line

        let failureCaret = $"{' ' |> string |> String.replicate colPos}^{error}"

        printfn $"Line:%i{linePos} Col:%i{colPos} Error parsing 

%s{label}\n%s{errorLine}\n%s{failureCaret}"



── fsharp ──────────────────────────────────────────────────────────────────────

let inline runOnInput parser input =

    parser.parseFn input



── fsharp ──────────────────────────────────────────────────────────────────────

let inline run parser inputStr =

    runOnInput parser (fromStr inputStr)



── fsharp ──────────────────────────────────────────────────────────────────────

let inline parserPositionFromInputState (inputState : Input) =

    {

        currentLine = currentLine inputState

        line = inputState.position.line

        column = inputState.position.column

    }



── fsharp ──────────────────────────────────────────────────────────────────────

let inline getLabel parser =

    parser.label



── fsharp ──────────────────────────────────────────────────────────────────────

let inline setLabel parser newLabel =

    {

        label = newLabel

        parseFn = fun input ->

            match parser.parseFn input with

            | Success s -> Success s

            | Failure (oldLabel, err, pos) -> Failure (newLabel, err, pos)

    }



── fsharp ──────────────────────────────────────────────────────────────────────

let (<?>) = setLabel



── fsharp ──────────────────────────────────────────────────────────────────────

let inline satisfy predicate label =

    {

        label = label

        parseFn = fun input ->

            let remainingInput, charOpt = nextChar input

            match charOpt with

            | None ->

                let err = "No more input"

                let pos = parserPositionFromInputState input

                Failure (label, err, pos)

            | Some first ->

                if predicate first

                then Success (first, remainingInput)

                else

                    let err = $"Unexpected '%c{first}'"

                    let pos = parserPositionFromInputState input

                    Failure (label, err, pos)

    }



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "Hello"

let parser = satisfy (fun c -> c = 'H') "H"

runOnInput parser input |> _equal (

    Success (

        'H',

        {

            lines = [[| "Hello" |]]

            position = { line = 0; column = 1 }

        }

    )

)



╭─[ 27.69ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item:       - H                                                        │

│       - InputState                                                           │

│           lines: [ Hello ]                                                   │

│           position: Position                                                 │

│             line: 0                                                          │

│             column: 1                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "World"

let parser = satisfy (fun c -> c = 'H') "H"

runOnInput parser input |> _equal (

    Failure (

        "H",

        "Unexpected 'W'",

        {

            currentLine = "World"

            line = 0

            column = 0

        }

    )

)



╭─[ 29.56ms - stdout ]─────────────────────────────────────────────────────────╮

│ Failure                                                                      │

│       Item1: H                                                               │

│       Item2: Unexpected 'W'                                                  │

│       Item3: ParserPosition                                                  │

│         currentLine: World                                                   │

│         line: 0                                                              │

│         column: 0                                                            │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline bindP f p =

    {

        label = "unknown"

        parseFn = fun input ->

            match runOnInput p input with

            | Failure (label, err, pos) -> Failure (label, err, pos)

            | Success (value1, remainingInput) -> runOnInput (f value1) 

remainingInput

    }



── fsharp ──────────────────────────────────────────────────────────────────────

let inline (>>=) p f = bindP f p



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "Hello"

let parser = satisfy (fun c -> c = 'H') "H"

let parser2 = parser >>= fun c -> satisfy (fun c -> c = 'e') "e"

runOnInput parser2 input |> _equal (

    Success (

        'e',

        {

            lines = [[| "Hello" |]]

            position = { line = 0; column = 2 }

        }

    )

)



╭─[ 38.40ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item:       - e                                                        │

│       - InputState                                                           │

│           lines: [ Hello ]                                                   │

│           position: Position                                                 │

│             line: 0                                                          │

│             column: 2                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "World"

let parser = satisfy (fun c -> c = 'W') "W"

let parser2 = parser >>= fun c -> satisfy (fun c -> c = 'e') "e"

runOnInput parser2 input |> _equal (

    Failure (

        "e",

        "Unexpected 'o'",

        {

            currentLine = "World"

            line = 0

            column = 1

        }

    )

)



╭─[ 37.66ms - stdout ]─────────────────────────────────────────────────────────╮

│ Failure                                                                      │

│       Item1: e                                                               │

│       Item2: Unexpected 'o'                                                  │

│       Item3: ParserPosition                                                  │

│         currentLine: World                                                   │

│         line: 0                                                              │

│         column: 1                                                            │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline returnP x =

    {

        label = $"%A{x}"

        parseFn = fun input -> Success (x, input)

    }



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "Hello"

let parser = returnP "Hello"

runOnInput parser input |> _equal (

    Success (

        "Hello",

        {

            lines = [[| "Hello" |]]

            position = { line = 0; column = 0 }

        }

    )

)



╭─[ 32.02ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item:       - Hello                                                    │

│       - InputState                                                           │

│           lines: [ Hello ]                                                   │

│           position: Position                                                 │

│             line: 0                                                          │

│             column: 0                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline mapP f =

    bindP (f >> returnP)



── fsharp ──────────────────────────────────────────────────────────────────────

let (<!>) = mapP



── fsharp ──────────────────────────────────────────────────────────────────────

let inline (|>>) x f = f <!> x



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "Hello"

let parser = satisfy (fun c -> c = 'H') "H"

let parser2 = parser |>> string

runOnInput parser2 input |> _equal (

    Success (

        "H",

        {

            lines = [[| "Hello" |]]

            position = { line = 0; column = 1 }

        }

    )

)



╭─[ 33.35ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item:       - H                                                        │

│       - InputState                                                           │

│           lines: [ Hello ]                                                   │

│           position: Position                                                 │

│             line: 0                                                          │

│             column: 1                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline applyP fP xP =

    fP >>=

        fun f ->

            xP >>=

                fun x ->

                    returnP (f x)



── fsharp ──────────────────────────────────────────────────────────────────────

let (<*>) = applyP



── fsharp ──────────────────────────────────────────────────────────────────────

let inline lift2 f xP yP =

    returnP f <*> xP <*> yP



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "Hello"

let parser = satisfy (fun c -> c = 'H') "H"

let parser2 = satisfy (fun c -> c = 'e') "e"

let parser3 = lift2 (fun c1 c2 -> string c1 + string c2) parser parser2

runOnInput parser3 input |> _equal (

    Success (

        "He",

        {

            lines = [[| "Hello" |]]

            position = { line = 0; column = 2 }

        }

    )

)



╭─[ 76.44ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item:       - He                                                       │

│       - InputState                                                           │

│           lines: [ Hello ]                                                   │

│           position: Position                                                 │

│             line: 0                                                          │

│             column: 2                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline andThen p1 p2 =

    p1 >>=

        fun p1Result ->

            p2 >>=

                fun p2Result ->

                    returnP (p1Result, p2Result)

    <?> $"{getLabel p1} andThen {getLabel p2}"



── fsharp ──────────────────────────────────────────────────────────────────────

let (.>>.) = andThen



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "Hello"

let parser = satisfy (fun c -> c = 'H') "H"

let parser2 = satisfy (fun c -> c = 'e') "e"

let parser3 = parser .>>. parser2

runOnInput parser3 input |> _equal (

    Success (

        ('H', 'e'),

        {

            lines = [[| "Hello" |]]

            position = { line = 0; column = 2 }

        }

    )

)



╭─[ 51.45ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item:       - ( H, e )                                                 │

│       - InputState                                                           │

│           lines: [ Hello ]                                                   │

│           position: Position                                                 │

│             line: 0                                                          │

│             column: 2                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline orElse p1 p2 =

    {

        label = $"{getLabel p1} orElse {getLabel p2}"

        parseFn = fun input ->

            match runOnInput p1 input with

            | Success _ as result -> result

            | Failure _ -> runOnInput p2 input

    }



── fsharp ──────────────────────────────────────────────────────────────────────

let (<|>) = orElse



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "hello"

let parser = satisfy (fun c -> c = 'H') "H"

let parser2 = satisfy (fun c -> c = 'h') "h"

let parser3 = parser <|> parser2

runOnInput parser3 input |> _equal (

    Success (

        'h',

        {

            lines = [[| "hello" |]]

            position = { line = 0; column = 1 }

        }

    )

)



╭─[ 37.44ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item:       - h                                                        │

│       - InputState                                                           │

│           lines: [ hello ]                                                   │

│           position: Position                                                 │

│             line: 0                                                          │

│             column: 1                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline choice listOfParsers =

    listOfParsers |> List.reduce (<|>)



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "hello"

let parser = satisfy (fun c -> c = 'H') "H"

let parser2 = satisfy (fun c -> c = 'h') "h"

let parser3 = choice [[ parser; parser2 ]]

runOnInput parser3 input |> _equal (

    Success (

        'h',

        {

            lines = [[| "hello" |]]

            position = { line = 0; column = 1 }

        }

    )

)



╭─[ 34.39ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item:       - h                                                        │

│       - InputState                                                           │

│           lines: [ hello ]                                                   │

│           position: Position                                                 │

│             line: 0                                                          │

│             column: 1                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let rec sequence parserList =

    match parserList with

    | [[]] -> returnP [[]]

    | head :: tail -> (lift2 cons) head (sequence tail)



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "Hello"

let parser = satisfy (fun c -> c = 'H') "H"

let parser2 = satisfy (fun c -> c = 'e') "e"

let parser3 = sequence [[ parser; parser2 ]]

runOnInput parser3 input |> _equal (

    Success (

        [[ 'H'; 'e' ]],

        {

            lines = [[| "Hello" |]]

            position = { line = 0; column = 2 }

        }

    )

)



╭─[ 60.42ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item:       - [ H, e ]                                                 │

│       - InputState                                                           │

│           lines: [ Hello ]                                                   │

│           position: Position                                                 │

│             line: 0                                                          │

│             column: 2                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let rec parseZeroOrMore parser input =

    match runOnInput parser input with

    | Failure (_, _, _) ->

        [[]], input

    | Success (firstValue, inputAfterFirstParse) ->

        let subsequentValues, remainingInput = parseZeroOrMore parser 

inputAfterFirstParse

        firstValue :: subsequentValues, remainingInput



── fsharp ──────────────────────────────────────────────────────────────────────

let inline many parser =

    {

        label = $"many {getLabel parser}"

        parseFn = fun input -> Success (parseZeroOrMore parser input)

    }



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "hello"

let parser = satisfy (fun c -> c = 'H') "H"

let parser2 = many parser

runOnInput parser2 input |> _equal (

    Success (

        [[]],

        {

            lines = [[| "hello" |]]

            position = { line = 0; column = 0 }

        }

    )

)



╭─[ 29.99ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item:       - [  ]                                                     │

│       - InputState                                                           │

│           lines: [ hello ]                                                   │

│           position: Position                                                 │

│             line: 0                                                          │

│             column: 0                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline many1 p =

    p >>=

        fun head ->

            many p >>=

                fun tail ->

                    returnP (head :: tail)

    <?> $"many1 {getLabel p}"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "hello"

let parser = satisfy (fun c -> c = 'H') "H"

let parser2 = many1 parser

runOnInput parser2 input |> _equal (

    Failure (

        "many1 H",

        "Unexpected 'h'",

        {

            currentLine = "hello"

            line = 0

            column = 0

        }

    )

)



╭─[ 43.83ms - stdout ]─────────────────────────────────────────────────────────╮

│ Failure                                                                      │

│       Item1: many1 H                                                         │

│       Item2: Unexpected 'h'                                                  │

│       Item3: ParserPosition                                                  │

│         currentLine: hello                                                   │

│         line: 0                                                              │

│         column: 0                                                            │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline opt p =

    let some = p |>> Some

    let none = returnP None

    (some <|> none)

    <?> $"opt {getLabel p}"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "hello"

let parser = satisfy (fun c -> c = 'H') "H"

let parser2 = opt parser

runOnInput parser2 input |> _equal (

    Success (

        None,

        {

            lines = [[| "hello" |]]

            position = { line = 0; column = 0 }

        }

    )

)



╭─[ 49.08ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item:       - <null>                                                   │

│       - InputState                                                           │

│           lines: [ hello ]                                                   │

│           position: Position                                                 │

│             line: 0                                                          │

│             column: 0                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline (.>>) p1 p2 =

    p1 .>>. p2

    |> mapP fst



── fsharp ──────────────────────────────────────────────────────────────────────

let inline (>>.) p1 p2 =

    p1 .>>. p2

    |> mapP snd



── fsharp ──────────────────────────────────────────────────────────────────────

let inline between p1 p2 p3 =

    p1 >>. p2 .>> p3



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "[[Hello]]"

let parser =

    between

        (satisfy (fun c -> c = '[[') "[[")

        (many (satisfy (fun c -> [[ 'a' .. 'z' ]] @ [[ 'A' .. 'Z' ]] |> 

List.contains c) "letter"))

        (satisfy (fun c -> c = ']]') "]]")

runOnInput parser input |> _equal (

    Success (

        [[ 'H'; 'e'; 'l'; 'l'; 'o' ]],

        {

            lines = [[| "[[Hello]]" |]]

            position = { line = 0; column = 7 }

        }

    )

)



╭─[ 103.81ms - stdout ]────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item:       - [ H, e, l, l, o ]                                        │

│       - InputState                                                           │

│           lines: [ [Hello] ]                                                 │

│           position: Position                                                 │

│             line: 0                                                          │

│             column: 7                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline sepBy1 p sep =

    let sepThenP = sep >>. p

    p .>>. many sepThenP

    |>> fun (p, pList) -> p :: pList



── fsharp ──────────────────────────────────────────────────────────────────────

let inline sepBy p sep =

    sepBy1 p sep <|> returnP [[]]



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "Hello,World"

let parser = sepBy (many (satisfy (fun c -> c <> ',') "not comma")) (satisfy 

(fun c -> c = ',') "comma")

runOnInput parser input |> _equal (

    Success (

        [[ [[ 'H'; 'e'; 'l'; 'l'; 'o' ]]; [[ 'W'; 'o'; 'r'; 'l'; 'd'; '\n' ]] 

]],

        {

            lines = [[| "Hello,World" |]]

            position = { line = 1; column = 0 }

        }

    )

)



╭─[ 79.80ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item:       - FSharpList<FSharpList<Char>>                             │

│ [ H, e, l, l, o ]                                                            │

│ [ W, o, r, l, d,                                                             │

│  ]                                                                           │

│       - InputState                                                           │

│           lines: [ Hello,World ]                                             │

│           position: Position                                                 │

│             line: 1                                                          │

│             column: 0                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline pchar charToMatch =

    satisfy ((=) charToMatch) $"%c{charToMatch}"



── fsharp ──────────────────────────────────────────────────────────────────────

let inline anyOf listOfChars =

    listOfChars

    |> List.map pchar

    |> choice

    <?> $"anyOf %A{listOfChars}"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "Hello"

let parser = anyOf [[ 'H'; 'e'; 'l'; 'o' ]] |> many

runOnInput parser input |> _equal (

    Success (

        [[ 'H'; 'e'; 'l'; 'l'; 'o' ]],

        {

            lines = [[| "Hello" |]]

            position = { line = 0; column = 5 }

        }

    )

)



╭─[ 39.44ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item:       - [ H, e, l, l, o ]                                        │

│       - InputState                                                           │

│           lines: [ Hello ]                                                   │

│           position: Position                                                 │

│             line: 0                                                          │

│             column: 5                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline charListToStr charList =

    charList |> List.toArray |> String



── fsharp ──────────────────────────────────────────────────────────────────────

let inline manyChars cp =

    many cp

    |>> charListToStr



── fsharp ──────────────────────────────────────────────────────────────────────

let inline manyChars1 cp =

    many1 cp

    |>> charListToStr



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "Hello"

let parser = manyChars1 (anyOf [[ 'H'; 'e'; 'l'; 'o' ]])

runOnInput parser input |> _equal (

    Success (

        "Hello",

        {

            lines = [[| "Hello" |]]

            position = { line = 0; column = 5 }

        }

    )

)



╭─[ 46.40ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item:       - Hello                                                    │

│       - InputState                                                           │

│           lines: [ Hello ]                                                   │

│           position: Position                                                 │

│             line: 0                                                          │

│             column: 5                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline pstring str =

    str

    |> List.ofSeq

    |> List.map pchar

    |> sequence

    |> mapP charListToStr

    <?> str



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "Hello"

let parser = pstring "Hello"

runOnInput parser input |> _equal (

    Success (

        "Hello",

        {

            lines = [[| "Hello" |]]

            position = { line = 0; column = 5 }

        }

    )

)



╭─[ 44.45ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item:       - Hello                                                    │

│       - InputState                                                           │

│           lines: [ Hello ]                                                   │

│           position: Position                                                 │

│             line: 0                                                          │

│             column: 5                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let whitespaceChar =

    satisfy Char.IsWhiteSpace "whitespace"



── fsharp ──────────────────────────────────────────────────────────────────────

let spaces = many whitespaceChar



── fsharp ──────────────────────────────────────────────────────────────────────

let spaces1 = many1 whitespaceChar



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "  Hello"

let parser = spaces1 .>>. pstring "Hello"

runOnInput parser input |> _equal (

    Success (

        ([[ ' '; ' ' ]], "Hello"),

        {

            lines = [[| "  Hello" |]]

            position = { line = 0; column = 7 }

        }

    )

)



╭─[ 53.56ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item:       -         - [  ,   ]                                       │

│         - Hello                                                              │

│       - InputState                                                           │

│           lines: [   Hello ]                                                 │

│           position: Position                                                 │

│             line: 0                                                          │

│             column: 7                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let digitChar =

    satisfy Char.IsDigit "digit"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let input = fromStr "Hello"

let parser = digitChar

runOnInput parser input |> _equal (

    Failure (

        "digit",

        "Unexpected 'H'",

        {

            currentLine = "Hello"

            line = 0

            column = 0

        }

    )

)



╭─[ 22.05ms - stdout ]─────────────────────────────────────────────────────────╮

│ Failure                                                                      │

│       Item1: digit                                                           │

│       Item2: Unexpected 'H'                                                  │

│       Item3: ParserPosition                                                  │

│         currentLine: Hello                                                   │

│         line: 0                                                              │

│         column: 0                                                            │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let pint =

    let inline resultToInt (sign, digits) =

        let i = int digits

        match sign with

        | Some ch -> -i

        | None -> i



    let digits = manyChars1 digitChar



    opt (pchar '-') .>>. digits

    |> mapP resultToInt

    <?> "integer"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run pint "-123"

|> _equal (

    Success (

        -123,

        {

            lines = [[| "-123" |]]

            position = { line = 0; column = 4 }

        }

    )

)



╭─[ 32.68ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item:       - -123                                                     │

│       - InputState                                                           │

│           lines: [ -123 ]                                                    │

│           position: Position                                                 │

│             line: 0                                                          │

│             column: 4                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let pfloat =

    let inline resultToFloat (((sign, digits1), point), digits2) =

        let fl = float $"{digits1}.{digits2}"

        match sign with

        | Some ch -> -fl

        | None -> fl



    let digits = manyChars1 digitChar



    opt (pchar '-') .>>. digits .>>. pchar '.' .>>. digits

    |> mapP resultToFloat

    <?> "float"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



run pfloat "-123.45"

|> _equal (

    Success (

        -123.45,

        {

            lines = [[| "-123.45" |]]

            position = { line = 0; column = 7 }

        }

    )

)



╭─[ 37.62ms - stdout ]─────────────────────────────────────────────────────────╮

│ Success                                                                      │

│       Item:       - -123.45                                                  │

│       - InputState                                                           │

│           lines: [ -123.45 ]                                                 │

│           position: Position                                                 │

│             line: 0                                                          │

│             column: 7                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline createParserForwardedToRef<'a> () =

    let mutable parserRef : Parser<'a> =

        {

            label = "unknown"

            parseFn = fun _ -> failwith "unfixed forwarded parser"

        }



    let wrapperParser =

        { parserRef with

            parseFn = fun input -> runOnInput parserRef input

        }



    wrapperParser, (fun v -> parserRef <- v)



── fsharp ──────────────────────────────────────────────────────────────────────

let inline (>>%) p x =

    p

    |>> fun _ -> x

[NbConvertApp] Converting notebook Parser.dib.ipynb to html

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

  validate(nb)

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:72: UserWarning: IPython3 lexer unavailable, falling back on Python 3

  return _pygments_highlight(

[NbConvertApp] Writing 412907 bytes to Parser.dib.html

00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Parser.dib

00:00:00 #1 [Debug] writeDibCode / output: Fs / path: JsonParser.dib

00:00:00 #3 [Debug] parseDibCode / output: Fs / file: JsonParser.dib

00:00:00 #3 [Debug] parseDibCode / output: Fs / file: Parser.dib

In [ ]:
{ . "$ScriptDir/../nbs/build.ps1" } | Invoke-Block

── csharp ──────────────────────────────────────────────────────────────────────





── csharp - import ─────────────────────────────────────────────────────────────



using static Microsoft.DotNet.Interactive.Kernel;





── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ # Async (Polyglot)                                                           │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../nbs/Testing.dib



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A

spNetCore.Html.Abstractions.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.Formatting.dll"

open System

open System.IO

open System.Text

open Microsoft.DotNet.Interactive.Formatting



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

open type Microsoft.DotNet.Interactive.Kernel



── fsharp - import ─────────────────────────────────────────────────────────────

#r @"../../../../../../../.nuget/packages/expecto/10.1.0/lib/net6.0/Expecto.dll"



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



Formatter.ListExpansionLimit <- 100



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



type AssertExceptionFormatter (ex) =

    member _.Text =

        ex.ToString()

            .Replace("32m", "<span style=\"color: green;\">")

            .Replace("36m", "</span>")

            .Replace("31m", "<span style=\"color: red;\">")

            .Replace("\n", "<br/>\n")





Formatter.Register<AssertExceptionFormatter> ((fun (x : 

AssertExceptionFormatter) -> x.Text), "text/html")



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __expect fn log expected actual =

    if log then printfn $"{actual.ToDisplayString ()}"

    try

        "Testing.__expect" |> fn actual expected

    with :? Expecto.AssertException as ex ->

        AssertExceptionFormatter(ex).Display () |> ignore

        failwith (ex.GetType().FullName)



let inline __contains log expected actual = __expect Expecto.Expect.contains log

expected actual

let inline _contains expected actual = __contains true expected actual



let inline __equal log expected actual = __expect Expecto.Expect.equal log 

expected actual

let inline _equal expected actual = __equal true expected actual



let inline __isGreaterThan log expected actual = __expect 

Expecto.Expect.isGreaterThan log expected actual

let ...



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __isBetween log a b actual =

    let inline isBetween actual (a, b) _ =

        __isGreaterThanOrEqual log a actual

        __isLessThanOrEqual log b actual

    __expect isBetween log (a, b) actual

let inline _isBetween a b actual = __isBetween true a b actual



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../nbs/Common.fs



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Common =



    let nl = System.Environment.NewLine

    let q = @""""



    let inline cons head tail = head :: tail



    module String =

        let inline contains (value : string) (input : string) =

            input.Contains value



        let inline endsWith (value : string) (input : string) =

            input.EndsWith value



        let inline padLeft totalWidth paddingChar (input : string) =

            input.PadLeft (totalWidth, paddingChar)



        let inline replace (oldValue : string) (newValue : string) (input : 

string) =

            input.Replace (oldValue, newValue)



        let inline split separator (input : string) =

            input.Split separator



        let inline spli...



── fsharp ──────────────────────────────────────────────────────────────────────

open Common



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## choice                                                                    │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline choice asyncs = async {

    let e = Event<_> ()

    use cts = new System.Threading.CancellationTokenSource ()

    let fn =

        asyncs

        |> Seq.map (fun a -> async {

            let! x = a

            e.Trigger x

        })

        |> Async.Parallel

        |> Async.Ignore

    Async.Start (fn, cts.Token)

    let! result = Async.AwaitEvent e.Publish

    cts.Cancel ()

    return result

}



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## map                                                                       │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline map fn a = async {

    let! x = a

    return fn x

}



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## catch                                                                     │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline catch a =

    a

    |> Async.Catch

    |> map (function

        | Choice1Of2 result -> Ok result

        | Choice2Of2 ex -> Error ex

    )



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## runWithTimeoutAsync                                                       │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline runWithTimeoutAsync (timeout : int) fn =

    let getLocals () = $"timeout: {timeout} / {getLocals ()}"



    let timeoutTask = async {

        do! Async.Sleep timeout

        trace Debug (fun () -> "runWithTimeoutAsync") getLocals

        return None

    }



    let task = async {

        try

            let! result = fn

            return Some result

        with

        | :? System.AggregateException as ex when

            ex.InnerExceptions

            |> Seq.exists (function :? 

System.Threading.Tasks.TaskCanceledException -> true | _ -> false)

            ->

            let getLocals () = $"ex: {ex |> printException} / {getLocals ()}"

            trace Warning (fun () -> "runWithTimeoutAsync") getLocals

            return None

        | ex ->

            trace Critical (fun () -> $"runWithTimeoutAsync** / ex: {ex |> 

printException}") getLocals

            return None

    }



    [[ timeoutTask; task ]]

    |> choice



── fsharp ──────────────────────────────────────────────────────────────────────

let inline runWithTimeout timeout fn =

    fn

    |> runWithTimeoutAsync timeout

    |> Async.RunSynchronously



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



Async.Sleep 60

|> runWithTimeout 10

|> _equal None



╭─[ 139.24ms - stdout ]────────────────────────────────────────────────────────╮

│ 00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 10                        │

│ <null>                                                                       │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



Async.Sleep 10

|> runWithTimeout 60

|> _equal (Some ())



╭─[ 90.14ms - stdout ]─────────────────────────────────────────────────────────╮

│ FSharpOption<Unit>                                                           │

│       Value: <null>                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



async {

    raise (exn "error")

}

|> runWithTimeout 60

|> _equal None



╭─[ 102.98ms - stdout ]────────────────────────────────────────────────────────╮

│ 00:00:00 #2 [Critical] runWithTimeoutAsync** / ex: System.Exception: error / │

│ timeout: 60                                                                  │

│ <null>                                                                       │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## runWithTimeoutChildAsync                                                  │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline runWithTimeoutChildAsync (timeout : int) fn = async {

    let getLocals () = $"timeout: {timeout} / {getLocals ()}"

    let! child = Async.StartChild (fn, timeout)

    return!

        child

        |> catch

        |> map (function

            | Ok result -> Some result

            | Error (:? System.TimeoutException as ex) ->

                trace Debug (fun () -> $"runWithTimeoutChildAsync") getLocals

                None

            | Error ex ->

                trace Critical (fun () -> $"runWithTimeoutChildAsync** / ex: {ex

|> printException}") getLocals

                None

        )

}



── fsharp ──────────────────────────────────────────────────────────────────────

let inline runWithTimeoutChild timeout fn =

    fn

    |> runWithTimeoutChildAsync timeout

    |> Async.RunSynchronously



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



Async.Sleep 60

|> runWithTimeoutChild 10

|> _equal None



╭─[ 80.41ms - stdout ]─────────────────────────────────────────────────────────╮

│ 00:00:00 #3 [Debug] runWithTimeoutChildAsync / timeout: 10                   │

│ <null>                                                                       │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



Async.Sleep 10

|> runWithTimeoutChild 60

|> _equal (Some ())



╭─[ 70.56ms - stdout ]─────────────────────────────────────────────────────────╮

│ FSharpOption<Unit>                                                           │

│       Value: <null>                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



async {

    raise (exn "error")

}

|> runWithTimeoutChild 60

|> _equal None



╭─[ 66.31ms - stdout ]─────────────────────────────────────────────────────────╮

│ 00:00:00 #4 [Critical] runWithTimeoutChildAsync** / ex: System.Exception:    │

│ error / timeout: 60                                                          │

│ <null>                                                                       │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## runWithTimeoutStrict                                                      │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline runWithTimeoutStrict (timeout : int) fn =

    let getLocals () = $"timeout: {timeout} / {getLocals ()}"



    let timeoutTask = async {

        do! Async.Sleep timeout

        return None, getLocals

    }

    

    let task = async {

        try

            return Async.RunSynchronously (fn, timeout) |> Some, getLocals

        with

        | :? System.TimeoutException as ex ->

            let getLocals () = $"ex: {ex |> printException} / {getLocals ()}"

            return None, getLocals

        | ex ->

            trace Critical (fun () -> $"runWithTimeoutStrict / ex: {ex |> 

printException}") getLocals

            return raise ex

    }



    try

        [[| timeoutTask; task |]]

        |> Array.map Async.StartAsTask

        |> System.Threading.Tasks.Task.WhenAny

        |> fun task ->

            match task.Result.Result with

            | None, getLocals ->

                trace Debug (fun () -> "runWithTimeoutStrict") getLocals

                None

            | result, _ -> result

    with

    | :? System.AggregateException as ex when

        ex.InnerExceptions

        |> Seq.exists (function :? System.Threading.Tasks.TaskCanceledException 

-> true | _ -> false)

        ->

        let getLocals () = $"ex: {ex |> printException} / {getLocals ()}"

        trace Warning (fun () -> "runWithTimeoutStrict") getLocals

        None

    | ex ->

        let getLocals () = $"ex: {ex |> printException} / {getLocals ()}"

        trace Critical (fun () -> "runWithTimeoutStrict**") getLocals

        None



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



Async.Sleep 60

|> runWithTimeoutStrict 10

|> _equal None



╭─[ 87.07ms - stdout ]─────────────────────────────────────────────────────────╮

│ 00:00:00 #5 [Debug] runWithTimeoutStrict / timeout: 10                       │

│ <null>                                                                       │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



Async.Sleep 10

|> runWithTimeoutStrict 60

|> _equal (Some ())



╭─[ 73.84ms - stdout ]─────────────────────────────────────────────────────────╮

│ FSharpOption<Unit>                                                           │

│       Value: <null>                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



async {

    raise (exn "error")

}

|> runWithTimeoutStrict 60

|> _equal None



╭─[ 85.31ms - stdout ]─────────────────────────────────────────────────────────╮

│ 00:00:00 #6 [Critical] runWithTimeoutStrict / ex: System.Exception: error /  │

│ timeout: 60                                                                  │

│ 00:00:00 #7 [Critical] runWithTimeoutStrict** / ex:                          │

│ System.AggregateException: One or more errors occurred. (error) / timeout:   │

│ 60                                                                           │

│ <null>                                                                       │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## awaitValueTask                                                            │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline awaitValueTaskUnit (task : System.Threading.Tasks.ValueTask) =

    task.AsTask () |> Async.AwaitTask



let inline awaitValueTask (task : System.Threading.Tasks.ValueTask<_>) =

    task.AsTask () |> Async.AwaitTask



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## init                                                                      │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline init x = async {

    return x

}



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



init 1

|> Async.RunSynchronously

|> _equal 1



╭─[ 28.05ms - stdout ]─────────────────────────────────────────────────────────╮

│ 1                                                                            │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## mergeCancellationTokenWithDefaultAsync                                    │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline mergeCancellationTokenWithDefaultAsync (token : 

System.Threading.CancellationToken) = async {

    let! ct = Async.CancellationToken

    let dct = Async.DefaultCancellationToken

    let cts = System.Threading.CancellationTokenSource.CreateLinkedTokenSource 

[[| ct; dct; token |]]

    return cts.Token

}



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## withCancellationToken                                                     │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline withCancellationToken (ct : System.Threading.CancellationToken) fn =

    Async.StartImmediateAsTask (fn, ct)

    |> Async.AwaitTask



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let cts = new System.Threading.CancellationTokenSource ()



async {

    let run = async {

        do! Async.Sleep 100

        return 1

    }



    let! child =

        run

        |> withCancellationToken cts.Token

        |> catch

        |> Async.StartChild



    do! Async.Sleep 50

    cts.Cancel ()

    return! child

}

|> Async.RunSynchronously

|> Result.mapError (fun x -> x.Message)

|> _equal (Error ("A task was canceled."))



╭─[ 185.74ms - stdout ]────────────────────────────────────────────────────────╮

│ FSharpResult<Int32,String>                                                   │

│       ResultValue: 0                                                         │

│       ErrorValue: A task was canceled.                                       │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## withTraceLevel                                                            │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline withTraceLevel level fn = async {

    let oldTraceLevel = traceLevel

    try

        traceLevel <- level

        return! fn

    finally

        traceLevel <- oldTraceLevel

}

[NbConvertApp] Converting notebook Async.dib.ipynb to html

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

  validate(nb)

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:72: UserWarning: IPython3 lexer unavailable, falling back on Python 3

  return _pygments_highlight(

[NbConvertApp] Writing 323665 bytes to Async.dib.html



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ # AsyncSeq (Polyglot)                                                        │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../nbs/Testing.dib



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A

spNetCore.Html.Abstractions.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.Formatting.dll"

open System

open System.IO

open System.Text

open Microsoft.DotNet.Interactive.Formatting



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

open type Microsoft.DotNet.Interactive.Kernel



── fsharp - import ─────────────────────────────────────────────────────────────

#r @"../../../../../../../.nuget/packages/expecto/10.1.0/lib/net6.0/Expecto.dll"



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



Formatter.ListExpansionLimit <- 100



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



type AssertExceptionFormatter (ex) =

    member _.Text =

        ex.ToString()

            .Replace("32m", "<span style=\"color: green;\">")

            .Replace("36m", "</span>")

            .Replace("31m", "<span style=\"color: red;\">")

            .Replace("\n", "<br/>\n")





Formatter.Register<AssertExceptionFormatter> ((fun (x : 

AssertExceptionFormatter) -> x.Text), "text/html")



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __expect fn log expected actual =

    if log then printfn $"{actual.ToDisplayString ()}"

    try

        "Testing.__expect" |> fn actual expected

    with :? Expecto.AssertException as ex ->

        AssertExceptionFormatter(ex).Display () |> ignore

        failwith (ex.GetType().FullName)



let inline __contains log expected actual = __expect Expecto.Expect.contains log

expected actual

let inline _contains expected actual = __contains true expected actual



let inline __equal log expected actual = __expect Expecto.Expect.equal log 

expected actual

let inline _equal expected actual = __equal true expected actual



let inline __isGreaterThan log expected actual = __expect 

Expecto.Expect.isGreaterThan log expected actual

let ...



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __isBetween log a b actual =

    let inline isBetween actual (a, b) _ =

        __isGreaterThanOrEqual log a actual

        __isLessThanOrEqual log b actual

    __expect isBetween log (a, b) actual

let inline _isBetween a b actual = __isBetween true a b actual



── fsharp ──────────────────────────────────────────────────────────────────────

#r 

@"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan

dard2.1/FSharp.Control.AsyncSeq.dll"

#r 

@"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.

0/System.Reactive.dll"

#r 

@"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/

netstandard2.0/System.Reactive.Linq.dll"



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../nbs/Common.fs

#!import ../nbs/Async.fs



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Common =



    let nl = System.Environment.NewLine

    let q = @""""



    let inline cons head tail = head :: tail



    module String =

        let inline contains (value : string) (input : string) =

            input.Contains value



        let inline endsWith (value : string) (input : string) =

            input.EndsWith value



        let inline padLeft totalWidth paddingChar (input : string) =

            input.PadLeft (totalWidth, paddingChar)



        let inline replace (oldValue : string) (newValue : string) (input : 

string) =

            input.Replace (oldValue, newValue)



        let inline split separator (input : string) =

            input.Split separator



        let inline spli...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Async =



    open Common



    /// ## choice



    let inline choice asyncs = async {

        let e = Event<_> ()

        use cts = new System.Threading.CancellationTokenSource ()

        let fn =

            asyncs

            |> Seq.map (fun a -> async {

                let! x = a

                e.Trigger x

            })

            |> Async.Parallel

            |> Async.Ignore

        Async.Start (fn, cts.Token)

        let! result = Async.AwaitEvent e.Publish

        cts.Cancel ()

        return result

    }



    /// ## map



    let inline map fn a = async {

        let! x = a

        return fn x

    }



    /// ## catch



    let inline catch a =

        a

        |> Async.Catch

        ...



── fsharp ──────────────────────────────────────────────────────────────────────

open Common



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## subscribeEvent                                                            │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline subscribeEvent (event: IEvent<'H, 'A>) map =

    let observable = System.Reactive.Linq.Observable.FromEventPattern<'H, 

'A>(event.AddHandler, event.RemoveHandler)

    System.Reactive.Linq.Observable.Select (observable, fun event -> map 

event.EventArgs)

    |> FSharp.Control.AsyncSeq.ofObservableBuffered



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



type TestEvent () as self =

    member val Calls = [[]] with get, set

    member val Event = Event<ErrorEventHandler, ErrorEventArgs> () with get



    member _.AddCall text =

        self.Calls <- self.Calls @ [[ text ]]



    member _.EventInterface =

        { new IEvent<ErrorEventHandler, ErrorEventArgs> with

            member _.AddHandler handler =

                self.AddCall "AddHandler"

                self.Event.Publish.AddHandler handler



            member _.RemoveHandler handler =

                self.AddCall "RemoveHandler"

                self.Event.Publish.RemoveHandler handler



            member _.Subscribe observer =

                self.AddCall "IObservable.Subscribe"

                let disposable = self.Event.Publish.Subscribe observer

                newDisposable (fun () ->

                    self.AddCall "IObservable.Dispose"

                    disposable.Dispose ()

                )

        }



    member _.Subscribe () =

        subscribeEvent

            self.EventInterface

            (fun args ->

                let result = args.GetException () |> printException

                self.AddCall $"TestEvent.Subscribe({result})"

                result

            )



    member _.Iter subscription =

        subscription

        |> FSharp.Control.AsyncSeq.iteriAsync (fun i error -> async {

            self.AddCall $"TestEvent.Iter({i}: {error})"

        })



    member _.WaitCall text = async {

        while self.Calls |> List.last <> text do

            do! Async.SwitchToThreadPool ()

    }



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let testEvent = TestEvent ()



async {

    testEvent.AddCall "1"

    let! child = testEvent.Subscribe () |> testEvent.Iter |> Async.StartChild

    do! testEvent.WaitCall "AddHandler"

    testEvent.AddCall "2"

    do! child

    testEvent.AddCall "3"

}

|> Async.runWithTimeout 300

|> _equal None



testEvent.Calls

|> Seq.toList

|> _equal [[ "1"; "AddHandler"; "2"; "RemoveHandler" ]]



╭─[ 495.50ms - stdout ]────────────────────────────────────────────────────────╮

│ 00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 300                       │

│ <null>                                                                       │

│ [ 1, AddHandler, 2, RemoveHandler ]                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let testEvent = TestEvent ()



async {

    testEvent.AddCall "1"

    let! child = testEvent.Subscribe () |> testEvent.Iter |> Async.StartChild

    do! testEvent.WaitCall "AddHandler"

    testEvent.AddCall "2"

    use _ = testEvent.EventInterface.Subscribe (fun args ->

        testEvent.AddCall $"testEvent.EventInterface.Subscribe({args})"

    )

    testEvent.AddCall "3"

    do! child

    testEvent.AddCall "4"

}

|> Async.runWithTimeout 300

|> _equal None



testEvent.Calls

|> _equal [[ "1"; "AddHandler"; "2"; "IObservable.Subscribe"; "3"; 

"RemoveHandler"; "IObservable.Dispose" ]]



╭─[ 452.08ms - stdout ]────────────────────────────────────────────────────────╮

│ 00:00:00 #2 [Debug] runWithTimeoutAsync / timeout: 300                       │

│ <null>                                                                       │

│ [ 1, AddHandler, 2, IObservable.Subscribe, 3, RemoveHandler,                 │

│ IObservable.Dispose ]                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let testEvent = TestEvent ()



async {

    testEvent.AddCall "1"

    let! child = testEvent.Subscribe () |> testEvent.Iter |> Async.StartChild

    do! testEvent.WaitCall "AddHandler"

    testEvent.AddCall "2"

    use _ = testEvent.EventInterface.Subscribe (fun args ->

        async {

            do! testEvent.WaitCall "TestEvent.Iter(0: System.Exception: error)"

            testEvent.AddCall 

$"testEvent.EventInterface.Subscribe({args.GetException () |> printException})"

        }

        |> Async.RunSynchronously

    )

    testEvent.AddCall "3"

    testEvent.Event.Trigger (null, ErrorEventArgs (Exception "error"))

    testEvent.AddCall "4"

    do! child

    testEvent.AddCall "5"

}

|> Async.runWithTimeout 300

|> _equal None



testEvent.Calls

|> _equal [[

    "1"

    "AddHandler"

    "2"

    "IObservable.Subscribe"

    "3"

    "TestEvent.Subscribe(System.Exception: error)"

    "TestEvent.Iter(0: System.Exception: error)"

    "testEvent.EventInterface.Subscribe(System.Exception: error)"

    "4"

    "RemoveHandler"

    "IObservable.Dispose"

]]



╭─[ 481.62ms - stdout ]────────────────────────────────────────────────────────╮

│ 00:00:00 #3 [Debug] runWithTimeoutAsync / timeout: 300                       │

│ <null>                                                                       │

│ [ 1, AddHandler, 2, IObservable.Subscribe, 3,                                │

│ TestEvent.Subscribe(System.Exception: error), TestEvent.Iter(0:              │

│ System.Exception: error),                                                    │

│ testEvent.EventInterface.Subscribe(System.Exception: error), 4,              │

│ RemoveHandler, IObservable.Dispose ]                                         │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let subscribeToken (token : System.Threading.CancellationToken) =

    let tcs = new System.Threading.Tasks.TaskCompletionSource ()

    System.Action tcs.SetResult |> token.Register |> ignore

    let start = System.DateTime.Now.Ticks

    FSharp.Control.AsyncSeq.unfoldAsync

        (fun () -> async {

            do! tcs.Task |> Async.AwaitTask

            return Some (System.DateTime.Now.Ticks - start, ())

        })

        ()



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let cts = new System.Threading.CancellationTokenSource ()



async {

    let! child =

        cts.Token

        |> subscribeToken

        |> FSharp.Control.AsyncSeq.tryFirst

        |> Async.StartChild



    do! Async.Sleep 100

    cts.Cancel ()

    return! child

}

|> Async.RunSynchronously

|> Option.get

|> _isGreaterThan 1000000



╭─[ 174.94ms - stdout ]────────────────────────────────────────────────────────╮

│ 1081004                                                                      │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯

[NbConvertApp] Converting notebook AsyncSeq.dib.ipynb to html

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

  validate(nb)

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:72: UserWarning: IPython3 lexer unavailable, falling back on Python 3

  return _pygments_highlight(

[NbConvertApp] Writing 300346 bytes to AsyncSeq.dib.html



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ # Common (Polyglot)                                                          │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../nbs/Testing.dib



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A

spNetCore.Html.Abstractions.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.Formatting.dll"

open System

open System.IO

open System.Text

open Microsoft.DotNet.Interactive.Formatting



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

open type Microsoft.DotNet.Interactive.Kernel



── fsharp - import ─────────────────────────────────────────────────────────────

#r @"../../../../../../../.nuget/packages/expecto/10.1.0/lib/net6.0/Expecto.dll"



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



Formatter.ListExpansionLimit <- 100



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



type AssertExceptionFormatter (ex) =

    member _.Text =

        ex.ToString()

            .Replace("32m", "<span style=\"color: green;\">")

            .Replace("36m", "</span>")

            .Replace("31m", "<span style=\"color: red;\">")

            .Replace("\n", "<br/>\n")





Formatter.Register<AssertExceptionFormatter> ((fun (x : 

AssertExceptionFormatter) -> x.Text), "text/html")



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __expect fn log expected actual =

    if log then printfn $"{actual.ToDisplayString ()}"

    try

        "Testing.__expect" |> fn actual expected

    with :? Expecto.AssertException as ex ->

        AssertExceptionFormatter(ex).Display () |> ignore

        failwith (ex.GetType().FullName)



let inline __contains log expected actual = __expect Expecto.Expect.contains log

expected actual

let inline _contains expected actual = __contains true expected actual



let inline __equal log expected actual = __expect Expecto.Expect.equal log 

expected actual

let inline _equal expected actual = __equal true expected actual



let inline __isGreaterThan log expected actual = __expect 

Expecto.Expect.isGreaterThan log expected actual

let ...



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __isBetween log a b actual =

    let inline isBetween actual (a, b) _ =

        __isGreaterThanOrEqual log a actual

        __isLessThanOrEqual log b actual

    __expect isBetween log (a, b) actual

let inline _isBetween a b actual = __isBetween true a b actual



── fsharp ──────────────────────────────────────────────────────────────────────

let nl = System.Environment.NewLine

let q = @""""



── fsharp ──────────────────────────────────────────────────────────────────────

let inline cons head tail = head :: tail



── fsharp ──────────────────────────────────────────────────────────────────────

module String =

    let inline contains (value : string) (input : string) =

        input.Contains value



    let inline endsWith (value : string) (input : string) =

        input.EndsWith value



    let inline padLeft totalWidth paddingChar (input : string) =

        input.PadLeft (totalWidth, paddingChar)



    let inline replace (oldValue : string) (newValue : string) (input : string) 

=

        input.Replace (oldValue, newValue)



    let inline split separator (input : string) =

        input.Split separator



    let inline splitString (separator : string array) (input : string) =

        input.Split (separator, System.StringSplitOptions.None)



    let inline startsWith (value : string) (input : string) =

        input.StartsWith value



    let inline substring startIndex length (input : string) =

        input.Substring (startIndex, length)



    let inline toLower (input : string) =

        input.ToLower ()



    let inline toUpper (input : string) =

        input.ToUpper ()



    let inline trim (input : string) =

        input.Trim ()

    

    let inline trimEnd (trimChars : char array) (input : string) =

        input.TrimEnd trimChars



    let inline trimStart (trimChars : char array) (input : string) =

        input.TrimStart trimChars



── fsharp ──────────────────────────────────────────────────────────────────────

type TicksGuid = System.Guid

type DateTimeGuid = System.Guid



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let testGuid = Guid "FEDCBA98-7654-3210-FEDC-BA9876543210"



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## dateTimeGuidFromDateTime                                                  │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline dateTimeGuidFromDateTime (guid: System.Guid) (dateTime: 

System.DateTime) =

    let guid = guid |> string

    let prefix = dateTime.ToString "yyyyMMdd-HHmm-ssff-ffff-f"

    DateTimeGuid $"{prefix}{guid.[[prefix.Length..]]}"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



dateTimeGuidFromDateTime testGuid DateTime.MinValue

|> _equal (DateTimeGuid "00010101-0000-0000-0000-0a9876543210")



╭─[ 64.92ms - stdout ]─────────────────────────────────────────────────────────╮

│ 00010101-0000-0000-0000-0a9876543210                                         │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



dateTimeGuidFromDateTime testGuid DateTime.MaxValue

|> _equal (DateTimeGuid $"99991231-2359-5999-9999-9{(testGuid |> 

string).[[^10..]]}")



╭─[ 37.37ms - stdout ]─────────────────────────────────────────────────────────╮

│ 99991231-2359-5999-9999-9a9876543210                                         │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



dateTimeGuidFromDateTime testGuid DateTime.UnixEpoch

|> _equal (DateTimeGuid $"19700101-0000-0000-0000-0{(testGuid |> 

string).[[^10..]]}")



╭─[ 37.53ms - stdout ]─────────────────────────────────────────────────────────╮

│ 19700101-0000-0000-0000-0a9876543210                                         │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## dateTimeFromGuid                                                          │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline dateTimeFromGuid (dateTimeGuid: DateTimeGuid) =

    let dateTimeGuid = dateTimeGuid |> string

    System.DateTime.ParseExact (dateTimeGuid.[[..24]] |> String.replace "-" "", 

"yyyyMMddHHmmssfffffff", null)



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



dateTimeFromGuid (DateTimeGuid "00010101-0000-0000-0000-0a9876543210")

|> _equal DateTime.MinValue



╭─[ 28.21ms - stdout ]─────────────────────────────────────────────────────────╮

│ 0001-01-01 00:00:00Z                                                         │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



dateTimeFromGuid (DateTimeGuid $"99991231-2359-5999-9999-9{(testGuid |> 

string).[[^10..]]}")

|> _equal DateTime.MaxValue



╭─[ 34.05ms - stdout ]─────────────────────────────────────────────────────────╮

│ 9999-12-31 23:59:59Z                                                         │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



dateTimeFromGuid (DateTimeGuid $"19700101-0000-0000-0000-0{(testGuid |> 

string).[[^10..]]}")

|> _equal DateTime.UnixEpoch



╭─[ 31.75ms - stdout ]─────────────────────────────────────────────────────────╮

│ 1970-01-01 00:00:00Z                                                         │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## ticksGuidFromTicks                                                        │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline ticksGuidFromTicks (guid: System.Guid) (ticks: int64) =

    let guid = guid |> string

    let ticks = ticks |> string |> String.padLeft 18 '0'

    TicksGuid 

$"{ticks.[[0..7]]}-{ticks.[[8..11]]}-{ticks.[[12..15]]}-{ticks.[[16..17]]}{guid.

[[21..]]}"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



ticksGuidFromTicks testGuid 0L

|> _equal (TicksGuid "00000000-0000-0000-00dc-ba9876543210")



╭─[ 35.53ms - stdout ]─────────────────────────────────────────────────────────╮

│ 00000000-0000-0000-00dc-ba9876543210                                         │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



ticksGuidFromTicks testGuid 999999999999999999L

|> _equal (TicksGuid $"99999999-9999-9999-99dc-b{(testGuid |> 

string).[[^10..]]}")



╭─[ 46.40ms - stdout ]─────────────────────────────────────────────────────────╮

│ 99999999-9999-9999-99dc-ba9876543210                                         │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## ticksFromGuid                                                             │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline ticksFromGuid (ticksGuid: DateTimeGuid) =

    let ticks = ticksGuid |> string

    int64 

$"{ticks.[[0..7]]}{ticks.[[9..12]]}{ticks.[[14..17]]}{ticks.[[19..20]]}"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



ticksFromGuid (TicksGuid "00000000-0000-0000-00dc-ba9876543210")

|> _equal 0L



╭─[ 33.18ms - stdout ]─────────────────────────────────────────────────────────╮

│ 0                                                                            │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



ticksFromGuid (TicksGuid $"99999999-9999-9999-99{(testGuid |> 

string).[[^14..]]}")

|> _equal 999999999999999999L



╭─[ 41.26ms - stdout ]─────────────────────────────────────────────────────────╮

│ 999999999999999999                                                           │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## newGuidFromDateTime                                                       │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline newGuidFromDateTime (dateTime: System.DateTime) =

    let guid = System.Guid.NewGuid ()

    dateTimeGuidFromDateTime guid dateTime



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



newGuidFromDateTime System.DateTime.UtcNow

|> dateTimeFromGuid

|> fun dateTime -> (dateTime - System.DateTime.UtcNow).TotalSeconds |> int

|> _equal 0



╭─[ 64.83ms - stdout ]─────────────────────────────────────────────────────────╮

│ 0                                                                            │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## newGuidFromTicks                                                          │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline newGuidFromTicks (ticks: int64) =

    let guid = System.Guid.NewGuid ()

    ticksGuidFromTicks guid ticks



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



newGuidFromTicks System.DateTime.UtcNow.Ticks

|> ticksFromGuid

|> fun ticks -> (ticks - System.DateTime.UtcNow.Ticks) / 100000L

|> _equal 0L



╭─[ 53.12ms - stdout ]─────────────────────────────────────────────────────────╮

│ 0                                                                            │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## memoize                                                                   │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline memoize fn =

    let result = lazy fn ()

    fun () -> result.Value



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let mutable count = 0

let add =

    fun () -> count <- count + 1

    |> memoize



add ()

add ()

add ()



count

|> _equal 1



╭─[ 27.97ms - stdout ]─────────────────────────────────────────────────────────╮

│ 1                                                                            │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## printException                                                            │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline printException (ex : System.Exception) =

    $"{ex.GetType ()}: {ex.Message}"



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



fun () -> failwith "test"

|> _throwsC (fun ex _ ->

    printException ex

    |> _equal "System.Exception: test"

)



╭─[ 63.32ms - stdout ]─────────────────────────────────────────────────────────╮

│ FSI_0034+it@3-1                                                              │

│ System.Exception: test                                                       │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## trace                                                                     │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

type TraceLevel =

    | Verbose

    | Debug

    | Info

    | Warning

    | Critical



let inline getLocals () = ""



let mutable traceEnabled = true

let mutable traceCount = 0

let mutable traceLevel = Verbose

let mutable traceDump = false



let private replStart =

#if INTERACTIVE || !FABLE_COMPILER

    fun () ->

        if System.Reflection.Assembly.GetEntryAssembly().GetName().Name <> 

"Microsoft.DotNet.Interactive.App"

        then Some System.DateTime.Now.Ticks

        else None

    |> memoize

#else

    fun () -> None : int64 option

#endif



let rec trace level fn getLocals =

    if traceEnabled && level >= traceLevel then

        traceCount <- traceCount + 1

        let time =

#if CHAIN

            ""

#else

            match replStart () with

            | Some replStart ->

                let t = System.DateTime.Now.Ticks - replStart |> System.TimeSpan

                System.DateTime (1, 1, 1, t.Hours, t.Minutes, t.Seconds, 

t.Milliseconds, t.Microseconds)

            | None -> System.DateTime.Now

            |> fun dateTime ->

#if FABLE_COMPILER_RUST

                "hh:mm:ss"

#else

                "HH:mm:ss"

#endif

                |> dateTime.ToString

#endif

        let text =

            $"{time} #{traceCount} [[%A{level}]] %s{fn ()} / %s{getLocals ()}"

            |> String.trimStart [[||]]

            |> String.trimEnd [[| ' '; '/' |]]



        System.Console.WriteLine text

#if !CHAIN && !FABLE_COMPILER

        if traceDump then

            try

                let tmpPath = System.IO.Path.GetTempPath ()

                let logDir = System.IO.Path.Combine (tmpPath, "!polyglot")

                System.IO.Directory.CreateDirectory logDir |> ignore

                let logFile = System.IO.Path.Combine (logDir, 

$"{newGuidFromDateTime System.DateTime.Now}.txt")

                System.IO.File.WriteAllTextAsync (logFile, text) |> 

Async.AwaitTask |> Async.RunSynchronously

            with ex ->

                trace Critical (fun () -> $"trace / ex: {ex |> printException}")

getLocals

#endif



let inline withTrace enabled fn =

    let oldTraceEnabled = traceEnabled

    try

        traceEnabled <- enabled

        fn ()

    finally

        traceEnabled <- oldTraceEnabled



let inline withTraceEnabled fn =

    withTrace true fn



let inline withTraceDisabled fn =

    withTrace false fn



let inline withTraceLevel level fn =

    let oldTraceLevel = traceLevel

    try

        traceLevel <- level

        fn ()

    finally

        traceLevel <- oldTraceLevel



let inline withTraceDump dump fn =

    let oldTraceDump = traceDump

    try

        traceDump <- dump

        fn ()

    finally

        traceDump <- oldTraceDump



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



trace Debug (fun () -> "test") getLocals



╭─[ 38.21ms - stdout ]─────────────────────────────────────────────────────────╮

│ 00:00:00 #1 [Debug] test                                                     │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## newDisposable                                                             │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline newDisposable fn =

    { new System.IDisposable with

        member _.Dispose () = fn ()

    }



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let mutable newDisposableTest = 0

newDisposable (fun () -> newDisposableTest <- newDisposableTest + 1)

|> fun x -> x.Dispose ()

newDisposableTest |> _equal 1



╭─[ 21.42ms - stdout ]─────────────────────────────────────────────────────────╮

│ 1                                                                            │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let mutable newDisposableTest = 0

fun () -> task {

    use x = newDisposable (fun () -> newDisposableTest <- newDisposableTest + 1)

    ()

}

|> fun x -> x () |> Async.AwaitTask |> Async.RunSynchronously

newDisposableTest |> _equal 1



╭─[ 120.08ms - stdout ]────────────────────────────────────────────────────────╮

│ 1                                                                            │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let mutable newDisposableTest = 0

async {

    use x = newDisposable (fun () -> newDisposableTest <- newDisposableTest + 1)

    ()

}

|> Async.RunSynchronously

newDisposableTest |> _equal 1



╭─[ 38.20ms - stdout ]─────────────────────────────────────────────────────────╮

│ 1                                                                            │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let mutable newDisposableTest = 0

async {

    let x = newDisposable (fun () -> newDisposableTest <- newDisposableTest + 1)

    ()

}

|> Async.RunSynchronously

newDisposableTest |> _equal 0



╭─[ 31.23ms - stdout ]─────────────────────────────────────────────────────────╮

│ 0                                                                            │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## retryFn                                                                   │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline retryFn retries fn =

    let rec loop retry =

        try

            if retry < retries

            then fn () |> Some

            else None

        with ex ->

            let getLocals () = $"retry: {retry} / ex: {ex |> printException} / 

{getLocals ()}"

            trace Warning (fun () -> "retryFn") getLocals

            System.Threading.Thread.Sleep 1

            loop (retry + 1)

    loop 0



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let mutable retryFnTest = 0

fun () ->

    retryFnTest <- retryFnTest + 1

    retryFnTest

|> retryFn 3

|> _equal (Some 1)



╭─[ 29.41ms - stdout ]─────────────────────────────────────────────────────────╮

│ FSharpOption<Int32>                                                          │

│       Value: 1                                                               │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



fun () -> failwith "test"

|> retryFn 3

|> _equal None



╭─[ 76.48ms - stdout ]─────────────────────────────────────────────────────────╮

│ 00:00:00 #2 [Warning] retryFn / retry: 0 / ex: System.Exception: test        │

│ 00:00:00 #3 [Warning] retryFn / retry: 1 / ex: System.Exception: test        │

│ 00:00:00 #4 [Warning] retryFn / retry: 2 / ex: System.Exception: test        │

│ <null>                                                                       │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let mutable retryFnTest = 0

fun () ->

    if retryFnTest >= 2

    then retryFnTest

    else

        retryFnTest <- retryFnTest + 1

        failwith "test"

|> retryFn 3

|> _equal (Some 2)



╭─[ 63.01ms - stdout ]─────────────────────────────────────────────────────────╮

│ 00:00:00 #5 [Warning] retryFn / retry: 0 / ex: System.Exception: test        │

│ 00:00:00 #6 [Warning] retryFn / retry: 1 / ex: System.Exception: test        │

│ FSharpOption<Int32>                                                          │

│       Value: 2                                                               │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯

[NbConvertApp] Converting notebook Common.dib.ipynb to html

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

  validate(nb)

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:72: UserWarning: IPython3 lexer unavailable, falling back on Python 3

  return _pygments_highlight(

[NbConvertApp] Writing 347437 bytes to Common.dib.html



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ # CommonFSharp (Polyglot)                                                    │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../nbs/Testing.dib



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A

spNetCore.Html.Abstractions.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.Formatting.dll"

open System

open System.IO

open System.Text

open Microsoft.DotNet.Interactive.Formatting



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

open type Microsoft.DotNet.Interactive.Kernel



── fsharp - import ─────────────────────────────────────────────────────────────

#r @"../../../../../../../.nuget/packages/expecto/10.1.0/lib/net6.0/Expecto.dll"



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



Formatter.ListExpansionLimit <- 100



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



type AssertExceptionFormatter (ex) =

    member _.Text =

        ex.ToString()

            .Replace("32m", "<span style=\"color: green;\">")

            .Replace("36m", "</span>")

            .Replace("31m", "<span style=\"color: red;\">")

            .Replace("\n", "<br/>\n")





Formatter.Register<AssertExceptionFormatter> ((fun (x : 

AssertExceptionFormatter) -> x.Text), "text/html")



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __expect fn log expected actual =

    if log then printfn $"{actual.ToDisplayString ()}"

    try

        "Testing.__expect" |> fn actual expected

    with :? Expecto.AssertException as ex ->

        AssertExceptionFormatter(ex).Display () |> ignore

        failwith (ex.GetType().FullName)



let inline __contains log expected actual = __expect Expecto.Expect.contains log

expected actual

let inline _contains expected actual = __contains true expected actual



let inline __equal log expected actual = __expect Expecto.Expect.equal log 

expected actual

let inline _equal expected actual = __equal true expected actual



let inline __isGreaterThan log expected actual = __expect 

Expecto.Expect.isGreaterThan log expected actual

let ...



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __isBetween log a b actual =

    let inline isBetween actual (a, b) _ =

        __isGreaterThanOrEqual log a actual

        __isLessThanOrEqual log b actual

    __expect isBetween log (a, b) actual

let inline _isBetween a b actual = __isBetween true a b actual



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../nbs/Common.fs



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Common =



    let nl = System.Environment.NewLine

    let q = @""""



    let inline cons head tail = head :: tail



    module String =

        let inline contains (value : string) (input : string) =

            input.Contains value



        let inline endsWith (value : string) (input : string) =

            input.EndsWith value



        let inline padLeft totalWidth paddingChar (input : string) =

            input.PadLeft (totalWidth, paddingChar)



        let inline replace (oldValue : string) (newValue : string) (input : 

string) =

            input.Replace (oldValue, newValue)



        let inline split separator (input : string) =

            input.Split separator



        let inline spli...



── fsharp ──────────────────────────────────────────────────────────────────────

open Common



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## getUnionCaseName                                                          │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline getUnionCaseName<'T> (x: 'T) =

    match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with

    | case, _ -> case.Name



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



TraceLevel.Critical

|> getUnionCaseName

|> _equal (nameof TraceLevel.Critical)



╭─[ 61.77ms - stdout ]─────────────────────────────────────────────────────────╮

│ Critical                                                                     │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯

[NbConvertApp] Converting notebook CommonFSharp.dib.ipynb to html

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

  validate(nb)

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:72: UserWarning: IPython3 lexer unavailable, falling back on Python 3

  return _pygments_highlight(

[NbConvertApp] Writing 274474 bytes to CommonFSharp.dib.html



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ # Threading (Polyglot)                                                       │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../nbs/Testing.dib



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A

spNetCore.Html.Abstractions.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.Formatting.dll"

open System

open System.IO

open System.Text

open Microsoft.DotNet.Interactive.Formatting



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

open type Microsoft.DotNet.Interactive.Kernel



── fsharp - import ─────────────────────────────────────────────────────────────

#r @"../../../../../../../.nuget/packages/expecto/10.1.0/lib/net6.0/Expecto.dll"



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



Formatter.ListExpansionLimit <- 100



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



type AssertExceptionFormatter (ex) =

    member _.Text =

        ex.ToString()

            .Replace("32m", "<span style=\"color: green;\">")

            .Replace("36m", "</span>")

            .Replace("31m", "<span style=\"color: red;\">")

            .Replace("\n", "<br/>\n")





Formatter.Register<AssertExceptionFormatter> ((fun (x : 

AssertExceptionFormatter) -> x.Text), "text/html")



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __expect fn log expected actual =

    if log then printfn $"{actual.ToDisplayString ()}"

    try

        "Testing.__expect" |> fn actual expected

    with :? Expecto.AssertException as ex ->

        AssertExceptionFormatter(ex).Display () |> ignore

        failwith (ex.GetType().FullName)



let inline __contains log expected actual = __expect Expecto.Expect.contains log

expected actual

let inline _contains expected actual = __contains true expected actual



let inline __equal log expected actual = __expect Expecto.Expect.equal log 

expected actual

let inline _equal expected actual = __equal true expected actual



let inline __isGreaterThan log expected actual = __expect 

Expecto.Expect.isGreaterThan log expected actual

let ...



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __isBetween log a b actual =

    let inline isBetween actual (a, b) _ =

        __isGreaterThanOrEqual log a actual

        __isLessThanOrEqual log b actual

    __expect isBetween log (a, b) actual

let inline _isBetween a b actual = __isBetween true a b actual



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../nbs/Common.fs



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Common =



    let nl = System.Environment.NewLine

    let q = @""""



    let inline cons head tail = head :: tail



    module String =

        let inline contains (value : string) (input : string) =

            input.Contains value



        let inline endsWith (value : string) (input : string) =

            input.EndsWith value



        let inline padLeft totalWidth paddingChar (input : string) =

            input.PadLeft (totalWidth, paddingChar)



        let inline replace (oldValue : string) (newValue : string) (input : 

string) =

            input.Replace (oldValue, newValue)



        let inline split separator (input : string) =

            input.Split separator



        let inline spli...



── fsharp ──────────────────────────────────────────────────────────────────────

open Common



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## newDisposableToken                                                        │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline newDisposableToken (mergeToken: System.Threading.CancellationToken 

option) =

    let cts = new System.Threading.CancellationTokenSource ()

    let cts =

        match mergeToken with

        | None -> cts

        | Some mergeToken ->

            System.Threading.CancellationTokenSource.CreateLinkedTokenSource [[|

cts.Token; mergeToken |]]

    let disposable = newDisposable cts.Cancel

    cts.Token, disposable



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let mutable counter = 0



let inline run fn =

    let token, disposable = newDisposableToken None

    use _ = disposable

    fn token

    async {

        fn token

    }

    |> Async.Start



let inline fn (token : System.Threading.CancellationToken) =

    counter <- counter + (if token.IsCancellationRequested then 10 else 1)



async {

    run fn

    do! Async.Sleep 1

    return counter

}

|> Async.RunSynchronously

|> _equal 11



╭─[ 138.48ms - stdout ]────────────────────────────────────────────────────────╮

│ 11                                                                           │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯

[NbConvertApp] Converting notebook Threading.dib.ipynb to html

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

  validate(nb)

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:72: UserWarning: IPython3 lexer unavailable, falling back on Python 3

  return _pygments_highlight(

[NbConvertApp] Writing 277490 bytes to Threading.dib.html



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ # Crypto (Polyglot)                                                          │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../nbs/Testing.dib



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A

spNetCore.Html.Abstractions.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.Formatting.dll"

open System

open System.IO

open System.Text

open Microsoft.DotNet.Interactive.Formatting



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

open type Microsoft.DotNet.Interactive.Kernel



── fsharp - import ─────────────────────────────────────────────────────────────

#r @"../../../../../../../.nuget/packages/expecto/10.1.0/lib/net6.0/Expecto.dll"



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



Formatter.ListExpansionLimit <- 100



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



type AssertExceptionFormatter (ex) =

    member _.Text =

        ex.ToString()

            .Replace("32m", "<span style=\"color: green;\">")

            .Replace("36m", "</span>")

            .Replace("31m", "<span style=\"color: red;\">")

            .Replace("\n", "<br/>\n")





Formatter.Register<AssertExceptionFormatter> ((fun (x : 

AssertExceptionFormatter) -> x.Text), "text/html")



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __expect fn log expected actual =

    if log then printfn $"{actual.ToDisplayString ()}"

    try

        "Testing.__expect" |> fn actual expected

    with :? Expecto.AssertException as ex ->

        AssertExceptionFormatter(ex).Display () |> ignore

        failwith (ex.GetType().FullName)



let inline __contains log expected actual = __expect Expecto.Expect.contains log

expected actual

let inline _contains expected actual = __contains true expected actual



let inline __equal log expected actual = __expect Expecto.Expect.equal log 

expected actual

let inline _equal expected actual = __equal true expected actual



let inline __isGreaterThan log expected actual = __expect 

Expecto.Expect.isGreaterThan log expected actual

let ...



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __isBetween log a b actual =

    let inline isBetween actual (a, b) _ =

        __isGreaterThanOrEqual log a actual

        __isLessThanOrEqual log b actual

    __expect isBetween log (a, b) actual

let inline _isBetween a b actual = __isBetween true a b actual



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../nbs/Common.fs



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Common =



    let nl = System.Environment.NewLine

    let q = @""""



    let inline cons head tail = head :: tail



    module String =

        let inline contains (value : string) (input : string) =

            input.Contains value



        let inline endsWith (value : string) (input : string) =

            input.EndsWith value



        let inline padLeft totalWidth paddingChar (input : string) =

            input.PadLeft (totalWidth, paddingChar)



        let inline replace (oldValue : string) (newValue : string) (input : 

string) =

            input.Replace (oldValue, newValue)



        let inline split separator (input : string) =

            input.Split separator



        let inline spli...



── fsharp ──────────────────────────────────────────────────────────────────────

open Common



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## hashText                                                                  │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let hashText (input : string) =

    use sha256 = System.Security.Cryptography.SHA256.Create ()

    input

    |> System.Text.Encoding.UTF8.GetBytes

    |> sha256.ComputeHash

    |> Array.map (fun b -> b.ToString "x2")

    |> String.concat ""



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



""

|> hashText

|> _equal "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"



╭─[ 51.24ms - stdout ]─────────────────────────────────────────────────────────╮

│ e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855             │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



" "

|> hashText

|> _equal "36a9e7f1c95b82ffb99743e0c5c4ce95d83c9a430aac59f84ef3cbfab6145068"



╭─[ 16.92ms - stdout ]─────────────────────────────────────────────────────────╮

│ 36a9e7f1c95b82ffb99743e0c5c4ce95d83c9a430aac59f84ef3cbfab6145068             │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯

[NbConvertApp] Converting notebook Crypto.dib.ipynb to html

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

  validate(nb)

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:72: UserWarning: IPython3 lexer unavailable, falling back on Python 3

  return _pygments_highlight(

[NbConvertApp] Writing 276308 bytes to Crypto.dib.html



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ # FileSystem (Polyglot)                                                      │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../nbs/Testing.dib



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A

spNetCore.Html.Abstractions.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.Formatting.dll"

open System

open System.IO

open System.Text

open Microsoft.DotNet.Interactive.Formatting



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

open type Microsoft.DotNet.Interactive.Kernel



── fsharp - import ─────────────────────────────────────────────────────────────

#r @"../../../../../../../.nuget/packages/expecto/10.1.0/lib/net6.0/Expecto.dll"



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



Formatter.ListExpansionLimit <- 100



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



type AssertExceptionFormatter (ex) =

    member _.Text =

        ex.ToString()

            .Replace("32m", "<span style=\"color: green;\">")

            .Replace("36m", "</span>")

            .Replace("31m", "<span style=\"color: red;\">")

            .Replace("\n", "<br/>\n")





Formatter.Register<AssertExceptionFormatter> ((fun (x : 

AssertExceptionFormatter) -> x.Text), "text/html")



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __expect fn log expected actual =

    if log then printfn $"{actual.ToDisplayString ()}"

    try

        "Testing.__expect" |> fn actual expected

    with :? Expecto.AssertException as ex ->

        AssertExceptionFormatter(ex).Display () |> ignore

        failwith (ex.GetType().FullName)



let inline __contains log expected actual = __expect Expecto.Expect.contains log

expected actual

let inline _contains expected actual = __contains true expected actual



let inline __equal log expected actual = __expect Expecto.Expect.equal log 

expected actual

let inline _equal expected actual = __equal true expected actual



let inline __isGreaterThan log expected actual = __expect 

Expecto.Expect.isGreaterThan log expected actual

let ...



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __isBetween log a b actual =

    let inline isBetween actual (a, b) _ =

        __isGreaterThanOrEqual log a actual

        __isLessThanOrEqual log b actual

    __expect isBetween log (a, b) actual

let inline _isBetween a b actual = __isBetween true a b actual



── fsharp ──────────────────────────────────────────────────────────────────────

#r 

@"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan

dard2.1/FSharp.Control.AsyncSeq.dll"

#r 

@"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.

0/System.Reactive.dll"

#r 

@"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/

netstandard2.0/System.Reactive.Linq.dll"

#r 

@"../../../../../../../.nuget/packages/argu/6.1.1/lib/netstandard2.0/Argu.dll"

#r 

@"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li

b/net6.0/System.CommandLine.dll"



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../nbs/Common.fs

#!import ../nbs/CommonFSharp.fs

#!import ../nbs/Async.fs

#!import ../nbs/AsyncSeq.fs

#!import ../nbs/Runtime.fs



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Common =



    let nl = System.Environment.NewLine

    let q = @""""



    let inline cons head tail = head :: tail



    module String =

        let inline contains (value : string) (input : string) =

            input.Contains value



        let inline endsWith (value : string) (input : string) =

            input.EndsWith value



        let inline padLeft totalWidth paddingChar (input : string) =

            input.PadLeft (totalWidth, paddingChar)



        let inline replace (oldValue : string) (newValue : string) (input : 

string) =

            input.Replace (oldValue, newValue)



        let inline split separator (input : string) =

            input.Split separator



        let inline spli...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module CommonFSharp =



    open Common



    /// ## getUnionCaseName



    let inline getUnionCaseName<'T> (x: 'T) =

        match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with

        | case, _ -> case.Name





── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Async =



    open Common



    /// ## choice



    let inline choice asyncs = async {

        let e = Event<_> ()

        use cts = new System.Threading.CancellationTokenSource ()

        let fn =

            asyncs

            |> Seq.map (fun a -> async {

                let! x = a

                e.Trigger x

            })

            |> Async.Parallel

            |> Async.Ignore

        Async.Start (fn, cts.Token)

        let! result = Async.AwaitEvent e.Publish

        cts.Cancel ()

        return result

    }



    /// ## map



    let inline map fn a = async {

        let! x = a

        return fn x

    }



    /// ## catch



    let inline catch a =

        a

        |> Async.Catch

        ...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module AsyncSeq =



    open Common



    /// ## subscribeEvent



    let inline subscribeEvent (event: IEvent<'H, 'A>) map =

        let observable = System.Reactive.Linq.Observable.FromEventPattern<'H, 

'A>(event.AddHandler, event.RemoveHandler)

        System.Reactive.Linq.Observable.Select (observable, fun event -> map 

event.EventArgs)

        |> FSharp.Control.AsyncSeq.ofObservableBuffered



    let subscribeToken (token : System.Threading.CancellationToken) =

        let tcs = new System.Threading.Tasks.TaskCompletionSource ()

        System.Action tcs.SetResult |> token.Register |> ignore

        let start = System.DateTime.Now.Ticks

        FSharp.Control.AsyncSeq.unfoldAsync

            (fun (...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Runtime =



    open Common



    /// ## isWindows



    let isWindows =

        fun () ->

            System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform

                System.Runtime.InteropServices.OSPlatform.Windows

        |> memoize



    /// ## getExecutableSuffix



    let inline getExecutableSuffix () =

        if isWindows ()

        then ".exe"

        else ""



    /// ## splitCommand



    type private CommandParseStep =

        | Start

        | Path of quoted: bool

        | Arguments



    let splitCommand (command: string) =

        let rec loop (path, args) chars step =

            match chars, step with

            | ('"' | '\'') :: tail, _ when path = "" -> loop (pat...



── fsharp ──────────────────────────────────────────────────────────────────────

open Common



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## Operators                                                                 │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

module Operators =

    let inline (</>) a b =

        System.IO.Path.Combine (a, b)



── fsharp ──────────────────────────────────────────────────────────────────────

open Operators



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## createTempDirectoryName                                                   │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline createTempDirectoryName () =

    let root = System.Reflection.Assembly.GetEntryAssembly().GetName().Name



    System.IO.Path.GetTempPath ()

    </> $"!{root}"

    </> string (newGuidFromDateTime System.DateTime.Now)



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



createTempDirectoryName ()

|> _contains System.IO.Path.DirectorySeparatorChar



╭─[ 42.44ms - stdout ]─────────────────────────────────────────────────────────╮

│ C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1402-0138-3835-3e7f3 │

│ 4a14816                                                                      │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## createTempDirectory                                                       │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline createTempDirectory () =

    let tempFolder = createTempDirectoryName ()

    let result = System.IO.Directory.CreateDirectory tempFolder



    if not result.Exists then

        let getLocals () =

            $"tempFolder: {tempFolder} / result: {({|

                Exists = result.Exists

                CreationTime = result.CreationTime

            |})} {getLocals ()}"



        trace Debug (fun () -> "createTempDirectory") getLocals



    tempFolder



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let tempDirectory = createTempDirectory ()



Directory.Exists tempDirectory

|> _equal true



╭─[ 37.29ms - stdout ]─────────────────────────────────────────────────────────╮

│ True                                                                         │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## getSourceDirectory                                                        │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let getSourceDirectory =

    fun () -> __SOURCE_DIRECTORY__

    |> memoize



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



getSourceDirectory ()

|> System.IO.DirectoryInfo

|> fun dir -> dir.Name

|> _equal "nbs"



╭─[ 33.60ms - stdout ]─────────────────────────────────────────────────────────╮

│ nbs                                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## findParent                                                                │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline findParent name isFile rootDir =

    let rec loop dir =

        if dir </> name |> (if isFile then System.IO.File.Exists else 

System.IO.Directory.Exists)

        then dir

        else

            dir

            |> System.IO.Directory.GetParent

            |> function

                | null -> failwith $"""No parent for {if isFile then "file" else

"dir"} '{name}' at '{rootDir}'"""

                | parent -> parent.FullName |> loop

    loop rootDir



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



getSourceDirectory () |> findParent ".paket" false

|> System.IO.DirectoryInfo

|> fun dir -> dir.Name

|> _equal "polyglot"



╭─[ 39.61ms - stdout ]─────────────────────────────────────────────────────────╮

│ polyglot                                                                     │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



getSourceDirectory () |> findParent "paket.dependencies" true

|> System.IO.DirectoryInfo

|> fun dir -> dir.Name

|> _equal "polyglot"



╭─[ 22.21ms - stdout ]─────────────────────────────────────────────────────────╮

│ polyglot                                                                     │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## readAllTextAsync                                                          │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline readAllTextAsync path =

    path |> System.IO.File.ReadAllTextAsync |> Async.AwaitTask



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## fileExistsContent                                                         │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline fileExistsContent path content = async {

    if path |> System.IO.File.Exists |> not

    then return false

    else

        let! existingContent = path |> readAllTextAsync

        return content = existingContent

}



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## writeAllTextAsync                                                         │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline writeAllTextAsync path contents =

    System.IO.File.WriteAllTextAsync (path, contents) |> Async.AwaitTask



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## writeAllTextExists                                                        │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline writeAllTextExists path contents = async {

    let! exists = contents |> fileExistsContent path

    if not exists

    then do! contents |> writeAllTextAsync path

}



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## waitForFileAccess                                                         │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline waitForFileAccess access path =

    let fileAccess, fileShare =

        access

        |> Option.defaultValue (System.IO.FileAccess.ReadWrite, 

System.IO.FileShare.Read)



    let rec loop retry = async {

        try

            use _ = new System.IO.FileStream (

                path,

                System.IO.FileMode.Open,

                fileAccess,

                fileShare

            )

            return retry

        with ex ->

            if retry % 100 = 0 then

                let getLocals () = $"path: {path |> System.IO.Path.GetFileName} 

/ ex: {ex |> printException} / {getLocals ()}"

                trace Debug (fun () -> "waitForFileAccess") getLocals

            do! Async.Sleep 10

            return! loop (retry + 1)

    }

    loop 0



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let tempFolder = createTempDirectory ()

let path = tempFolder </> "test.txt"



let inline lockFile () = async {

    trace Debug (fun () -> "_1") getLocals

    use stream = new System.IO.FileStream (

        path,

        System.IO.FileMode.Open,

        System.IO.FileAccess.ReadWrite,

        System.IO.FileShare.None

    )

    trace Debug (fun () -> "_2") getLocals

    do! Async.Sleep 2000

    trace Debug (fun () -> "_3") getLocals

    stream.Seek (0L, SeekOrigin.Begin) |> ignore

    trace Debug (fun () -> "_4") getLocals

    stream.WriteByte 49uy

    trace Debug (fun () -> "_5") getLocals

    stream.Flush ()

    trace Debug (fun () -> "_6") getLocals

}



async {

    trace Debug (fun () -> "1") getLocals

    do! "0" |> writeAllTextAsync path

    trace Debug (fun () -> "2") getLocals

    let! child = lockFile () |> Async.StartChild

    trace Debug (fun () -> "3") getLocals

    do! Async.Sleep 1

    trace Debug (fun () -> "4") getLocals

    let! retries = path |> waitForFileAccess None

    trace Debug (fun () -> "5") getLocals

    let! text = path |> readAllTextAsync

    trace Debug (fun () -> "6") getLocals

    do! child

    trace Debug (fun () -> "7") getLocals

    return retries, text

}

|> Async.runWithTimeout 3000

|> function

    | Some (retries, text) ->

        retries

        |> _isBetween

            (if Runtime.isWindows () then 100 else 100)

            (if Runtime.isWindows () then 150 else 200)

        

        text |> _equal "1"

        

        true

    | _ -> false

|> _equal true



╭─[ 2.46s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:00 #1 [Debug] 1                                                        │

│ 00:00:00 #2 [Debug] 2                                                        │

│ 00:00:00 #3 [Debug] _1                                                       │

│ 00:00:00 #4 [Debug] 3                                                        │

│ 00:00:00 #5 [Debug] _2                                                       │

│ 00:00:00 #6 [Debug] 4                                                        │

│ 00:00:00 #7 [Debug] waitForFileAccess / path: test.txt / ex:                 │

│ System.IO.IOException: The process cannot access the file                    │

│ 'C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1402-0219-1963-1858 │

│ 84a518ff\test.txt' because it is being used by another process.              │

│ 00:00:01 #8 [Debug] waitForFileAccess / path: test.txt / ex:                 │

│ System.IO.IOException: The process cannot access the file                    │

│ 'C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1402-0219-1963-1858 │

│ 84a518ff\test.txt' because it is being used by another process.              │

│ 00:00:02 #9 [Debug] _3                                                       │

│ 00:00:02 #10 [Debug] _4                                                      │

│ 00:00:02 #11 [Debug] _5                                                      │

│ 00:00:02 #12 [Debug] _6                                                      │

│ 00:00:02 #13 [Debug] 5                                                       │

│ 00:00:02 #14 [Debug] 6                                                       │

│ 00:00:02 #15 [Debug] 7                                                       │

│ 128                                                                          │

│ 128                                                                          │

│ 128                                                                          │

│ 1                                                                            │

│ True                                                                         │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## readAllTextRetryAsync                                                     │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline readAllTextRetryAsync fullPath =

    let rec loop retry = async {

        try

            if retry > 0

            then do!

                fullPath

                |> waitForFileAccess (Some (

                    System.IO.FileAccess.Read,

                    System.IO.FileShare.Read

                ))

                |> Async.runWithTimeoutAsync 1000

                |> Async.Ignore

            return! fullPath |> readAllTextAsync |> Async.map Some

        with ex ->

            let getLocals () = $"retry: {retry} / ex: {ex |> printException} / 

{getLocals ()}"

            trace Debug (fun () -> $"watchWithFilter / readContent") getLocals

            if retry = 0

            then return! loop (retry + 1)

            else return None

    }

    loop 0



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## deleteDirectoryAsync                                                      │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline deleteDirectoryAsync path =

    let rec loop retry = async {

        try

            System.IO.Directory.Delete (path, true)

            return retry

        with ex ->

            if retry % 100 = 0 then

                let getLocals () = $"path: {path |> System.IO.Path.GetFileName} 

/ ex: {ex |> printException} / {getLocals ()}"

                trace Debug (fun () -> "deleteDirectoryAsync") getLocals

            do! Async.Sleep 10

            return! loop (retry + 1)

    }

    loop 0



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let tempFolder = createTempDirectory ()

let path = tempFolder </> "test"



let inline lockDirectory () = async {

    trace Debug (fun () -> "_1") getLocals

    System.IO.File.WriteAllText (path </> "test.txt", "0")

    use _ = new System.IO.FileStream (

        path </> "test.txt",

        System.IO.FileMode.Open,

        System.IO.FileAccess.ReadWrite,

        System.IO.FileShare.None

    )

    trace Debug (fun () -> "_2") getLocals

    do! Async.Sleep 2000

    trace Debug (fun () -> "_3") getLocals

}



async {

    trace Debug (fun () -> "1") getLocals

    Directory.CreateDirectory path |> ignore

    trace Debug (fun () -> "2") getLocals

    let! child = lockDirectory () |> Async.StartChild

    trace Debug (fun () -> "3") getLocals

    do! Async.Sleep 60

    trace Debug (fun () -> "4") getLocals

    let! retries = deleteDirectoryAsync path

    trace Debug (fun () -> "5") getLocals

    do! child

    trace Debug (fun () -> "6") getLocals

    return retries

}

|> Async.runWithTimeout 3000

|> function

    | Some retries ->

        retries

        |> _isBetween

            (if Runtime.isWindows () then 100 else 0)

            (if Runtime.isWindows () then 150 else 0)



        true

    | _ -> false

|> _equal true



╭─[ 2.33s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:02 #16 [Debug] 1                                                       │

│ 00:00:02 #17 [Debug] 2                                                       │

│ 00:00:02 #18 [Debug] 3                                                       │

│ 00:00:02 #19 [Debug] _1                                                      │

│ 00:00:02 #20 [Debug] _2                                                      │

│ 00:00:02 #21 [Debug] 4                                                       │

│ 00:00:02 #22 [Debug] deleteDirectoryAsync / path: test / ex:                 │

│ System.IO.IOException: The process cannot access the file 'test.txt' because │

│ it is being used by another process.                                         │

│ 00:00:04 #23 [Debug] deleteDirectoryAsync / path: test / ex:                 │

│ System.IO.IOException: The process cannot access the file 'test.txt' because │

│ it is being used by another process.                                         │

│ 00:00:04 #24 [Debug] _3                                                      │

│ 00:00:04 #25 [Debug] 5                                                       │

│ 00:00:04 #26 [Debug] 6                                                       │

│ 124                                                                          │

│ 124                                                                          │

│ 124                                                                          │

│ True                                                                         │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## deleteFileAsync                                                           │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline deleteFileAsync path =

    let rec loop retry = async {

        try

            System.IO.File.Delete path

            return retry

        with ex ->

            if retry % 100 = 0 then

                let getLocals () = $"path: {path |> System.IO.Path.GetFileName} 

/ ex: {ex |> printException} / {getLocals ()}"

                trace Warning (fun () -> "deleteFileAsync") getLocals

            do! Async.Sleep 10

            return! loop (retry + 1)

    }

    loop 0



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let tempFolder = createTempDirectory ()

let path = tempFolder </> "test.txt"



let inline lockFile () = async {

    trace Debug (fun () -> "_1") getLocals

    use _ = new System.IO.FileStream (

        path,

        System.IO.FileMode.Open,

        System.IO.FileAccess.ReadWrite,

        System.IO.FileShare.None

    )

    trace Debug (fun () -> "_2") getLocals

    do! Async.Sleep 2000

    trace Debug (fun () -> "_3") getLocals

}



async {

    trace Debug (fun () -> "1") getLocals

    do! "0" |> writeAllTextAsync path

    trace Debug (fun () -> "2") getLocals

    let! child = lockFile () |> Async.StartChild

    trace Debug (fun () -> "3") getLocals

    do! Async.Sleep 1

    trace Debug (fun () -> "4") getLocals

    let! retries = deleteFileAsync path

    trace Debug (fun () -> "5") getLocals

    do! child

    trace Debug (fun () -> "6") getLocals

    return retries

}

|> Async.runWithTimeout 3000

|> function

    | Some retries ->

        retries

        |> _isBetween

            (if Runtime.isWindows () then 100 else 0)

            (if Runtime.isWindows () then 150 else 0)



        true

    | _ -> false

|> _equal true



╭─[ 2.28s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:05 #27 [Debug] 1                                                       │

│ 00:00:05 #28 [Debug] 2                                                       │

│ 00:00:05 #29 [Debug] 3                                                       │

│ 00:00:05 #30 [Debug] _1                                                      │

│ 00:00:05 #31 [Debug] _2                                                      │

│ 00:00:05 #32 [Debug] 4                                                       │

│ 00:00:05 #33 [Warning] deleteFileAsync / path: test.txt / ex:                │

│ System.IO.IOException: The process cannot access the file                    │

│ 'C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1402-0722-2205-2cc4 │

│ 013c577f\test.txt' because it is being used by another process.              │

│ 00:00:06 #34 [Warning] deleteFileAsync / path: test.txt / ex:                │

│ System.IO.IOException: The process cannot access the file                    │

│ 'C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1402-0722-2205-2cc4 │

│ 013c577f\test.txt' because it is being used by another process.              │

│ 00:00:07 #35 [Debug] _3                                                      │

│ 00:00:07 #36 [Debug] 5                                                       │

│ 00:00:07 #37 [Debug] 6                                                       │

│ 128                                                                          │

│ 128                                                                          │

│ 128                                                                          │

│ True                                                                         │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## moveFileAsync                                                             │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline moveFileAsync newPath oldPath =

    let rec loop retry = async {

        try

            System.IO.File.Move (oldPath, newPath)

            return retry

        with ex ->

            if retry % 100 = 0 then

                let getLocals () =

                    $"oldPath: {oldPath |> System.IO.Path.GetFileName} / 

newPath: {newPath |> System.IO.Path.GetFileName} / ex: {ex |> printException} / 

{getLocals ()}"

                trace Warning (fun () -> "moveFileAsync") getLocals

            do! Async.Sleep 10

            return! loop (retry + 1)

    }

    loop 0



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let tempFolder = createTempDirectory ()

let path = tempFolder </> "test.txt"

let newPath = tempFolder </> "test2.txt"



let inline lockFile () = async {

    trace Debug (fun () -> "_1") getLocals

    use _ = new System.IO.FileStream (

        path,

        System.IO.FileMode.Open,

        System.IO.FileAccess.ReadWrite,

        System.IO.FileShare.None

    )

    trace Debug (fun () -> "_2") getLocals

    do! Async.Sleep 2000

    trace Debug (fun () -> "_3") getLocals

}



async {

    trace Debug (fun () -> "1") getLocals

    do! "0" |> writeAllTextAsync path

    trace Debug (fun () -> "2") getLocals

    let! child = lockFile () |> Async.StartChild

    trace Debug (fun () -> "3") getLocals

    do! Async.Sleep 1

    trace Debug (fun () -> "4") getLocals

    let! retries1 = path |> moveFileAsync newPath

    trace Debug (fun () -> "5") getLocals

    let! retries2 = newPath |> waitForFileAccess None

    trace Debug (fun () -> "6") getLocals

    let! text = newPath |> readAllTextAsync

    trace Debug (fun () -> "7") getLocals

    do! child

    trace Debug (fun () -> "8") getLocals

    return retries1, retries2, text

}

|> Async.runWithTimeout 3000

|> function

    | Some (retries1, retries2, text) ->

        retries1

        |> _isBetween

            (if Runtime.isWindows () then 100 else 0)

            (if Runtime.isWindows () then 150 else 0)



        retries2

        |> _isBetween

            (if Runtime.isWindows () then 0 else 100)

            (if Runtime.isWindows () then 0 else 200)

        

        text |> _equal "0"

        

        true

    | _ -> false

|> _equal true



╭─[ 2.43s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:07 #38 [Debug] 1                                                       │

│ 00:00:07 #39 [Debug] 2                                                       │

│ 00:00:07 #40 [Debug] 3                                                       │

│ 00:00:07 #41 [Debug] _1                                                      │

│ 00:00:07 #42 [Debug] _2                                                      │

│ 00:00:07 #43 [Debug] 4                                                       │

│ 00:00:07 #44 [Warning] moveFileAsync / oldPath: test.txt / newPath:          │

│ test2.txt / ex: System.IO.IOException: The process cannot access the file    │

│ because it is being used by another process.                                 │

│ 00:00:09 #45 [Warning] moveFileAsync / oldPath: test.txt / newPath:          │

│ test2.txt / ex: System.IO.IOException: The process cannot access the file    │

│ because it is being used by another process.                                 │

│ 00:00:09 #46 [Debug] _3                                                      │

│ 00:00:09 #47 [Debug] 5                                                       │

│ 00:00:09 #48 [Debug] 6                                                       │

│ 00:00:09 #49 [Debug] 7                                                       │

│ 00:00:09 #50 [Debug] 8                                                       │

│ 128                                                                          │

│ 128                                                                          │

│ 128                                                                          │

│ 0                                                                            │

│ 0                                                                            │

│ 0                                                                            │

│ 0                                                                            │

│ True                                                                         │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## watchDirectory                                                            │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

[[<RequireQualifiedAccess>]]

type FileSystemChangeType =

    | Failure

    | Changed

    | Created

    | Deleted

    | Renamed



[[<RequireQualifiedAccess>]]

type FileSystemChange =

    | Failure of exn: exn

    | Changed of path: string * content: string option

    | Created of path: string * content: string option

    | Deleted of path: string

    | Renamed of oldPath: string * (string * string option)





let inline watchDirectoryWithFilter filter shouldReadContent path =

    let fullPath = path |> System.IO.Path.GetFullPath

    let getLocals () = $"filter: {filter} / {getLocals ()}"



    let watcher =

        new System.IO.FileSystemWatcher (

            Path = fullPath,

            NotifyFilter = filter,

            EnableRaisingEvents = true,

            IncludeSubdirectories = true

        )



    let inline getEventPath (path : string) =

        path |> String.trim |> String.replace fullPath "" |> String.trimStart 

[[| '/'; '\\' |]]



    let inline ticks () =

        System.DateTime.UtcNow.Ticks



    let changedStream =

        AsyncSeq.subscribeEvent

            watcher.Changed

            (fun event ->

                ticks (),

                [[ FileSystemChange.Changed (getEventPath event.FullPath, None) 

]]

            )



    let deletedStream =

        AsyncSeq.subscribeEvent

            watcher.Deleted

            (fun event ->

                ticks (),

                [[ FileSystemChange.Deleted (getEventPath event.FullPath) ]]

            )



    let createdStream =

        AsyncSeq.subscribeEvent

            watcher.Created

            (fun event ->

                let path = getEventPath event.FullPath

                ticks (), [[

                    FileSystemChange.Created (path, None)

                    if Runtime.isWindows () then

                        FileSystemChange.Changed (path, None)

                ]])



    let renamedStream =

        AsyncSeq.subscribeEvent

            watcher.Renamed

            (fun event ->

                ticks (), [[

                    FileSystemChange.Renamed (

                        getEventPath event.OldFullPath,

                        (getEventPath event.FullPath, None)

                    )

                ]]

            )



    let failureStream =

        AsyncSeq.subscribeEvent

            watcher.Error

            (fun event -> ticks (), [[ FileSystemChange.Failure 

(event.GetException ()) ]])



    let stream =

        [[

            changedStream

            deletedStream

            createdStream

            renamedStream

            failureStream

        ]]

        |> FSharp.Control.AsyncSeq.mergeAll

        |> FSharp.Control.AsyncSeq.map (fun (t, events) ->

            events

            |> List.fold

                (fun (i, events) event ->

                    i + 1L,

                    (t + i, event) :: events)

                (0L, [[]])

            |> snd

            |> List.rev

        )

        |> FSharp.Control.AsyncSeq.concatSeq

        |> FSharp.Control.AsyncSeq.mapAsyncParallel (fun (t, event) -> async {

            match shouldReadContent event, event with

            | true, FileSystemChange.Changed (path, _) ->

                do! Async.Sleep 5

                let! content = fullPath </> path |> readAllTextRetryAsync

                return t, FileSystemChange.Changed (path, content)

            | true, FileSystemChange.Created (path, _) ->

                do! Async.Sleep 5

                let! content = fullPath </> path |> readAllTextRetryAsync

                return t, FileSystemChange.Created (path, content)

            | true, FileSystemChange.Renamed (oldPath, (newPath, _)) ->

                let! content = fullPath </> newPath |> readAllTextRetryAsync

                return t, FileSystemChange.Renamed (oldPath, (newPath, content))

            | _ -> return t, event

        })



    let disposable =

        newDisposable (fun () ->

            trace Debug (fun () -> "watchWithFilter / Disposing watch stream") 

getLocals

            watcher.EnableRaisingEvents <- false

            watcher.Dispose ()

        )



    stream, disposable



let inline watchDirectory path =

    watchDirectoryWithFilter

        (System.IO.NotifyFilters.FileName

        // ||| System.IO.NotifyFilters.DirectoryName

        // ||| System.IO.NotifyFilters.Attributes

        //// ||| System.IO.NotifyFilters.Size

        ||| System.IO.NotifyFilters.LastWrite

        //// ||| System.IO.NotifyFilters.LastAccess

        // ||| System.IO.NotifyFilters.CreationTime

        // ||| System.IO.NotifyFilters.Security

        )

        path



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ### testEventsRaw (test)                                                     │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let inline testEventsRaw

    (watchFn : (_ -> bool) -> string -> FSharp.Control.AsyncSeq<int64 * 

FileSystemChange> * IDisposable)

    write

    =

    let tempDirectory = createTempDirectory ()

    let stream, disposable = watchFn (fun _ -> true) tempDirectory



    let events = System.Collections.Concurrent.ConcurrentBag ()



    let inline iter () =

        stream

        |> FSharp.Control.AsyncSeq.iterAsyncParallel (fun event -> async { 

events.Add event })



    let run = async {

        let! _ = iter () |> Async.StartChild

        do! Async.Sleep 250

        return! write tempDirectory

    }



    try

        run

        |> Async.runWithTimeout 60000

        |> _equal (Some ())

    finally

        disposable.Dispose ()

        deleteDirectoryAsync tempDirectory |> Async.Ignore |> 

Async.RunSynchronously



    let eventsLog =

        events

        |> Seq.toList

        |> List.sortBy fst

        |> List.fold

            (fun (prev, acc) (ticks, event) ->

                ticks, (ticks, (if prev = 0L then 0L else ticks - prev), event) 

:: acc

            )

            (0L, [[]])

        |> snd

        |> List.rev

        |> List.map (fun (diff, n, event) ->

            let text = $"{n} / {diff} / {event}"

            if text |> String.length <= 100

            then text

            else text |> String.substring 0 100 |> String.replace "\n" ""

        )

        |> String.concat "\n"

    let getLocals () = $"eventsLog: \n{eventsLog} / {getLocals ()}"

    trace Debug (fun () -> "testEventsRaw") getLocals



    events

    |> Seq.toList

    |> List.sortBy fst

    |> List.map snd

    |> List.fold

        (fun acc event ->

            match acc, event with

            | FileSystemChange.Changed (lastPath, Some lastContent) as lastEvent

:: acc,

                FileSystemChange.Changed (path, Some content)

                when lastPath = path && content |> String.startsWith lastContent

                ->

                event :: acc

            | _ -> event :: acc

        )

        [[]]

    |> List.rev



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ #### fast (test)                                                             │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let inline write path = async {

    let n = 2



    for i = 1 to n do

        do! $"a{i}" |> writeAllTextAsync (path </> $"file{i}.txt")



    do! Async.Sleep 250



    for i = 1 to n do

        do! $"b{i}" |> writeAllTextAsync (path </> $"file{i}.txt")



    do! Async.Sleep 250



    for i = 1 to n do

        do! path </> $"file{i}.txt" |> moveFileAsync (path </> $"file_{i}.txt") 

|> Async.Ignore



    do! Async.Sleep 250



    for i = 1 to n do

        do! $"c{i}" |> writeAllTextAsync (path </> $"file_{i}.txt")



    do! Async.Sleep 250



    for i = 1 to n do

        do! deleteFileAsync (path </> $"file_{i}.txt") |> Async.Ignore



    do! Async.Sleep 250

}



let inline run () =

    let events = testEventsRaw watchDirectory write



    events

    |> _sequenceEqual [[

        FileSystemChange.Created ("file1.txt", Some "a1")

        FileSystemChange.Changed ("file1.txt", Some "a1")

        FileSystemChange.Created ("file2.txt", Some "a2")

        FileSystemChange.Changed ("file2.txt", Some "a2")



        FileSystemChange.Changed ("file1.txt", Some "b1")

        FileSystemChange.Changed ("file2.txt", Some "b2")



        FileSystemChange.Renamed ("file1.txt", ("file_1.txt", Some "b1"))

        FileSystemChange.Renamed ("file2.txt", ("file_2.txt", Some "b2"))



        FileSystemChange.Changed ("file_1.txt", Some "c1")

        FileSystemChange.Changed ("file_2.txt", Some "c2")



        FileSystemChange.Deleted "file_1.txt"

        FileSystemChange.Deleted "file_2.txt"

    ]]



run

|> retryFn 3

|> _equal (Some ())



╭─[ 5.64s - stdout ]───────────────────────────────────────────────────────────╮

│ FSharpOption<Unit>                                                           │

│       Value: <null>                                                          │

│ 00:00:17 #51 [Debug] watchWithFilter / Disposing watch stream / filter:      │

│ FileName, LastWrite                                                          │

│ 00:00:17 #52 [Debug] testEventsRaw / eventsLog:                              │

│ 0 / 638338537381188595 / Created ("file1.txt", Some "a1")                    │

│ 1 / 638338537381188596 / Changed ("file1.txt", Some "a1")                    │

│ 68666 / 638338537381257262 / Changed ("file1.txt", Some "a1")                │

│ 2204 / 638338537381259466 / Created ("file2.txt", Some "a2")                 │

│ 1 / 638338537381259467 / Changed ("file2.txt", Some "a2")                    │

│ 156 / 638338537381259623 / Changed ("file2.txt", Some "a2")                  │

│ 2477121 / 638338537383736744 / Changed ("file1.txt", Some "b1")              │

│ 1737 / 638338537383738481 / Changed ("file1.txt", Some "b1")                 │

│ 6663 / 638338537383745144 / Changed ("file2.txt", Some "b2")                 │

│ 1589 / 638338537383746733 / Changed ("file2.txt", Some "b2")                 │

│ 2556778 / 638338537386303511 / Renamed ("file1.txt", ("file_1.txt", Some     │

│ "b1"))                                                                       │

│ 8671 / 638338537386312182 / Renamed ("file2.txt", ("file_2.txt", Some "b2")) │

│ 2451452 / 638338537388763634 / Changed ("file_1.txt", Some "c1")             │

│ 2327 / 638338537388765961 / Changed ("file_1.txt", Some "c1")                │

│ 10138 / 638338537388776099 / Changed ("file_2.txt", Some "c2")               │

│ 2275 / 638338537388778374 / Changed ("file_2.txt", Some "c2")                │

│ 2536057 / 638338537391314431 / Deleted "file_1.txt"                          │

│ 4935 / 638338537391319366 / Deleted "file_2.txt"                             │

│ FSharpList<FileSystemChange>                                                 │

│       - path: file1.txt                                                      │

│         content: FSharpOption<String>                                        │

│           Value: a1                                                          │

│       - path: file1.txt                                                      │

│         content: FSharpOption<String>                                        │

│           Value: a1                                                          │

│       - path: file2.txt                                                      │

│         content: FSharpOption<String>                                        │

│           Value: a2                                                          │

│       - path: file2.txt                                                      │

│         content: FSharpOption<String>                                        │

│           Value: a2                                                          │

│       - path: file1.txt                                                      │

│         content: FSharpOption<String>                                        │

│           Value: b1                                                          │

│       - path: file2.txt                                                      │

│         content: FSharpOption<String>                                        │

│           Value: b2                                                          │

│       - oldPath: file1.txt                                                   │

│         Item2:         - file_1.txt                                          │

│         - FSharpOption<String>                                               │

│             Value: b1                                                        │

│       - oldPath: file2.txt                                                   │

│         Item2:         - file_2.txt                                          │

│         - FSharpOption<String>                                               │

│             Value: b2                                                        │

│       - path: file_1.txt                                                     │

│         content: FSharpOption<String>                                        │

│           Value: c1                                                          │

│       - path: file_2.txt                                                     │

│         content: FSharpOption<String>                                        │

│           Value: c2                                                          │

│       - path: file_1.txt                                                     │

│       - path: file_2.txt                                                     │

│ FSharpOption<Unit>                                                           │

│       Value: <null>                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ #### slow (test)                                                             │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let inline write path = async {

    let n = 2



    let contents =

        [[ 1 .. n ]]

        |> List.map (string >> String.replicate 1_000_000)



    for i = 1 to n do

        do! $"{contents.[[i - 1]]}a" |> writeAllTextAsync (path </> 

$"file{i}.txt")



    do! Async.Sleep 1500



    for i = 1 to n do

        do! $"{contents.[[i - 1]]}b" |> writeAllTextAsync (path </> 

$"file{i}.txt")



    do! Async.Sleep 1500



    for i = 1 to n do

        do! path </> $"file{i}.txt" |> moveFileAsync (path </> $"file_{i}.txt") 

|> Async.Ignore



    do! Async.Sleep 1500



    for i = 1 to n do

        do! $"{contents.[[i - 1]]}c" |> writeAllTextAsync (path </> 

$"file_{i}.txt")



    do! Async.Sleep 1500



    for i = 1 to n do

        do! deleteFileAsync (path </> $"file_{i}.txt") |> Async.Ignore



    do! Async.Sleep 1500

}



let inline run () =

    let events =

        testEventsRaw watchDirectory write

        |> List.map (function

            | FileSystemChange.Changed (path, Some content) ->

                FileSystemChange.Changed (path, content |> Seq.distinct |> 

Seq.map string |> String.concat "" |> Some)

            | FileSystemChange.Created (path, Some content) ->

                FileSystemChange.Created (path, content |> Seq.distinct |> 

Seq.map string |> String.concat "" |> Some)

            | FileSystemChange.Renamed (oldPath, (newPath, Some content)) ->

                FileSystemChange.Renamed (

                    oldPath,

                    (newPath, content |> Seq.distinct |> Seq.map string |> 

String.concat "" |> Some)

                )

            | event -> event

        )



    events

    |> _sequenceEqual [[

        FileSystemChange.Created ("file1.txt", Some "1a")

        FileSystemChange.Changed ("file1.txt", Some "1a")

        FileSystemChange.Created ("file2.txt", Some "2a")

        FileSystemChange.Changed ("file2.txt", Some "2a")



        FileSystemChange.Changed ("file1.txt", Some "1b")

        FileSystemChange.Changed ("file2.txt", Some "2b")



        FileSystemChange.Renamed ("file1.txt", ("file_1.txt", Some "1b"))

        FileSystemChange.Renamed ("file2.txt", ("file_2.txt", Some "2b"))



        FileSystemChange.Changed ("file_1.txt", Some "1c")

        FileSystemChange.Changed ("file_2.txt", Some "2c")



        FileSystemChange.Deleted "file_1.txt"

        FileSystemChange.Deleted "file_2.txt"

    ]]



run

|> retryFn 5

|> _equal (Some ())



╭─[ 13.08s - stdout ]──────────────────────────────────────────────────────────╮

│ 00:00:23 #53 [Debug] watchWithFilter / readContent / retry: 0 / ex:          │

│ System.AggregateException: One or more errors occurred. (The process cannot  │

│ access the file                                                              │

│ 'C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1402-2420-2055-294b │

│ 9419f0fd\file1.txt' because it is being used by another process.)            │

│ 00:00:23 #54 [Debug] watchWithFilter / readContent / retry: 0 / ex:          │

│ System.AggregateException: One or more errors occurred. (The process cannot  │

│ access the file                                                              │

│ 'C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1402-2420-2055-294b │

│ 9419f0fd\file2.txt' because it is being used by another process.)            │

│ 00:00:23 #55 [Debug] waitForFileAccess / path: file2.txt / ex:               │

│ System.IO.IOException: The process cannot access the file                    │

│ 'C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1402-2420-2055-294b │

│ 9419f0fd\file2.txt' because it is being used by another process.             │

│ 00:00:26 #56 [Debug] watchWithFilter / readContent / retry: 0 / ex:          │

│ System.AggregateException: One or more errors occurred. (The process cannot  │

│ access the file                                                              │

│ 'C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1402-2420-2055-294b │

│ 9419f0fd\file_2.txt' because it is being used by another process.)           │

│ 00:00:26 #57 [Debug] waitForFileAccess / path: file_2.txt / ex:              │

│ System.IO.IOException: The process cannot access the file                    │

│ 'C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1402-2420-2055-294b │

│ 9419f0fd\file_2.txt' because it is being used by another process.            │

│ FSharpOption<Unit>                                                           │

│       Value: <null>                                                          │

│ 00:00:29 #58 [Debug] watchWithFilter / Disposing watch stream / filter:      │

│ FileName, LastWrite                                                          │

│ 00:00:30 #59 [Debug] testEventsRaw / eventsLog:                              │

│ 0 / 638338537444706278 / Created  ("file1.txt",   Some                       │

│ "1111111111111111111111111111111111111                                       │

│ 1 / 638338537444706279 / Changed  ("file1.txt",   Some                       │

│ "1111111111111111111111111111111111111                                       │

│ 132791 / 638338537444839070 / Changed  ("file1.txt",   Some                  │

│ "11111111111111111111111111111111                                            │

│ 27496 / 638338537444866566 / Created  ("file2.txt",   Some                   │

│ "222222222222222222222222222222222                                           │

│ 1 / 638338537444866567 / Changed  ("file2.txt",   Some                       │

│ "2222222222222222222222222222222222222                                       │

│ 93027 / 638338537444959594 / Changed  ("file2.txt",   Some                   │

│ "222222222222222222222222222222222                                           │

│ 15167984 / 638338537460127578 / Changed  ("file1.txt",   Some                │

│ "111111111111111111111111111111                                              │

│ 241797 / 638338537460369375 / Changed  ("file1.txt",   Some                  │

│ "11111111111111111111111111111111                                            │

│ 267613 / 638338537460636988 / Changed  ("file2.txt",   Some                  │

│ "22222222222222222222222222222222                                            │

│ 86910 / 638338537460723898 / Changed  ("file2.txt",   Some                   │

│ "222222222222222222222222222222222                                           │

│ 15042436 / 638338537475766334 / Renamed  ("file1.txt",   ("file_1.txt",      │

│ Some      "1111111111                                                        │

│ 4398 / 638338537475770732 / Renamed  ("file2.txt",   ("file_2.txt",    Some  │

│ "22222222222222                                                              │

│ 15161595 / 638338537490932327 / Changed  ("file_1.txt",   Some               │

│ "11111111111111111111111111111                                               │

│ 118096 / 638338537491050423 / Changed  ("file_1.txt",   Some                 │

│ "1111111111111111111111111111111                                             │

│ 84461 / 638338537491134884 / Changed  ("file_2.txt",   Some                  │

│ "22222222222222222222222222222222                                            │

│ 120017 / 638338537491254901 / Changed  ("file_2.txt",   Some                 │

│ "2222222222222222222222222222222                                             │

│ 15137925 / 638338537506392826 / Deleted "file_1.txt"                         │

│ 17718 / 638338537506410544 / Deleted "file_2.txt"                            │

│ FSharpList<FileSystemChange>                                                 │

│       - path: file1.txt                                                      │

│         content: FSharpOption<String>                                        │

│           Value: 1a                                                          │

│       - path: file1.txt                                                      │

│         content: FSharpOption<String>                                        │

│           Value: 1a                                                          │

│       - path: file2.txt                                                      │

│         content: FSharpOption<String>                                        │

│           Value: 2a                                                          │

│       - path: file2.txt                                                      │

│         content: FSharpOption<String>                                        │

│           Value: 2a                                                          │

│       - path: file1.txt                                                      │

│         content: FSharpOption<String>                                        │

│           Value: 1b                                                          │

│       - path: file2.txt                                                      │

│         content: FSharpOption<String>                                        │

│           Value: 2b                                                          │

│       - oldPath: file1.txt                                                   │

│         Item2:         - file_1.txt                                          │

│         - FSharpOption<String>                                               │

│             Value: 1b                                                        │

│       - oldPath: file2.txt                                                   │

│         Item2:         - file_2.txt                                          │

│         - FSharpOption<String>                                               │

│             Value: 2b                                                        │

│       - path: file_1.txt                                                     │

│         content: FSharpOption<String>                                        │

│           Value: 1c                                                          │

│       - path: file_2.txt                                                     │

│         content: FSharpOption<String>                                        │

│           Value: 2c                                                          │

│       - path: file_1.txt                                                     │

│       - path: file_2.txt                                                     │

│ FSharpOption<Unit>                                                           │

│       Value: <null>                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ### testEventsSorted (test)                                                  │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let inline sortEvent event =

    match event with

    | FileSystemChange.Failure _ -> 0

    | FileSystemChange.Created _ -> 1

    | FileSystemChange.Changed _ -> 2

    | FileSystemChange.Renamed (_oldPath, _) -> 3

    | FileSystemChange.Deleted _ -> 4



let inline formatEvents events =

    events

    |> Seq.toList

    |> List.sortBy (snd >> sortEvent)

    |> List.choose (fun (ticks, event) ->

        match event with

        | FileSystemChange.Failure _ ->

            None

        | FileSystemChange.Changed (path, _) ->

            Some (ticks, System.IO.Path.GetFileName path, nameof 

FileSystemChangeType.Changed)

        | FileSystemChange.Created (path, _) ->

            Some (ticks, System.IO.Path.GetFileName path, nameof 

FileSystemChangeType.Created)

        | FileSystemChange.Deleted path ->

            Some (ticks, System.IO.Path.GetFileName path, nameof 

FileSystemChangeType.Deleted)

        | FileSystemChange.Renamed (_oldPath, (path, _)) ->

            Some (ticks, System.IO.Path.GetFileName path, nameof 

FileSystemChangeType.Renamed)

    )

    |> List.sortBy (fun (_, path, _) -> path)

    |> List.distinctBy (fun (_, path, event) -> path, event)



let inline testEventsSorted

    (watchFn : string -> FSharp.Control.AsyncSeq<int64 * FileSystemChange> * 

IDisposable)

    write

    =

    let path = createTempDirectory ()

    let stream, disposable = watchFn path



    let events = System.Collections.Concurrent.ConcurrentBag ()



    let inline iter () =

        stream

        |> FSharp.Control.AsyncSeq.iterAsyncParallel (fun event -> async { 

events.Add event })



    let run = async {

        let! _ = iter () |> Async.StartChild

        do! Async.Sleep 250

        return! write path

    }



    try

        run

        |> Async.runWithTimeout 5000

        |> _equal (Some ())

    finally

        disposable.Dispose ()

        deleteDirectoryAsync path |> Async.Ignore |> Async.RunSynchronously



    let events = formatEvents events



    let eventMap =

        events

        |> List.map (fun (ticks, path, event) -> path, (event, ticks))

        |> List.groupBy fst

        |> List.map (fun (path, events) ->

            let event, _ticks =

                events

                |> List.map snd

                |> List.sortByDescending snd

                |> List.head



            path, event

        )

        |> Map.ofList



    let eventList =

        events

        |> List.map (fun (_ticks, path, event) -> path, event)



    eventMap, eventList



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ #### create and delete (test)                                                │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let inline write path = async {

    let n = 3



    for i = 1 to n do

        do! $"{i}" |> writeAllTextAsync (path </> $"file{i}.txt")



    for i = 1 to n do

        do! deleteFileAsync (path </> $"file{i}.txt") |> Async.Ignore

    

    do! Async.Sleep 150

}



let inline run () =

    let eventMap, eventList = testEventsSorted (watchDirectory (fun _ -> false))

write



    [[

        "file1.txt", nameof FileSystemChangeType.Created

        "file1.txt", nameof FileSystemChangeType.Changed

        "file1.txt", nameof FileSystemChangeType.Deleted



        "file2.txt", nameof FileSystemChangeType.Created

        "file2.txt", nameof FileSystemChangeType.Changed

        "file2.txt", nameof FileSystemChangeType.Deleted



        "file3.txt", nameof FileSystemChangeType.Created

        "file3.txt", nameof FileSystemChangeType.Changed

        "file3.txt", nameof FileSystemChangeType.Deleted

    ]]

    |> _sequenceEqual eventList



    [[

        "file1.txt", nameof FileSystemChangeType.Deleted

        "file2.txt", nameof FileSystemChangeType.Deleted

        "file3.txt", nameof FileSystemChangeType.Deleted

    ]]

    |> Map.ofList

    |> _sequenceEqual eventMap



run

|> retryFn 3

|> _equal (Some ())



╭─[ 3.76s - stdout ]───────────────────────────────────────────────────────────╮

│ FSharpOption<Unit>                                                           │

│       Value: <null>                                                          │

│ 00:00:34 #60 [Debug] watchWithFilter / Disposing watch stream / filter:      │

│ FileName, LastWrite                                                          │

│ FSharpList<Tuple<String,String>>                                             │

│ ( file1.txt, Created )                                                       │

│ ( file1.txt, Changed )                                                       │

│ ( file1.txt, Deleted )                                                       │

│ ( file2.txt, Created )                                                       │

│ ( file2.txt, Changed )                                                       │

│ ( file2.txt, Deleted )                                                       │

│ ( file3.txt, Created )                                                       │

│ ( file3.txt, Changed )                                                       │

│ ( file3.txt, Deleted )                                                       │

│ FSharpMap<String,String>                                                     │

│       - Key: file1.txt                                                       │

│         Value: Deleted                                                       │

│       - Key: file2.txt                                                       │

│         Value: Deleted                                                       │

│       - Key: file3.txt                                                       │

│         Value: Deleted                                                       │

│ FSharpOption<Unit>                                                           │

│       Value: <null>                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ #### change (test)                                                           │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let inline write path = async {

    let n = 2



    for i = 1 to n do

        do! $"{i}" |> writeAllTextAsync (path </> $"file{i}.txt")



    for i = 1 to n do

        do! "" |> writeAllTextAsync (path </> $"file{i}.txt")



    for i = 1 to n do

        do! deleteFileAsync (path </> $"file{i}.txt") |> Async.Ignore

    

    do! Async.Sleep 150

}



let inline run () =

    let eventMap, eventList = testEventsSorted (watchDirectory (fun _ -> false))

write



    [[

        "file1.txt", nameof FileSystemChangeType.Created

        "file1.txt", nameof FileSystemChangeType.Changed

        "file1.txt", nameof FileSystemChangeType.Deleted



        "file2.txt", nameof FileSystemChangeType.Created

        "file2.txt", nameof FileSystemChangeType.Changed

        "file2.txt", nameof FileSystemChangeType.Deleted

    ]]

    |> _sequenceEqual eventList



    [[

        "file1.txt", nameof FileSystemChangeType.Deleted

        "file2.txt", nameof FileSystemChangeType.Deleted

    ]]

    |> Map.ofList

    |> _sequenceEqual eventMap



run

|> retryFn 3

|> _equal (Some ())



╭─[ 4.46s - stdout ]───────────────────────────────────────────────────────────╮

│ FSharpOption<Unit>                                                           │

│       Value: <null>                                                          │

│ 00:00:39 #61 [Debug] watchWithFilter / Disposing watch stream / filter:      │

│ FileName, LastWrite                                                          │

│ FSharpList<Tuple<String,String>>                                             │

│ ( file1.txt, Created )                                                       │

│ ( file1.txt, Changed )                                                       │

│ ( file1.txt, Deleted )                                                       │

│ ( file2.txt, Created )                                                       │

│ ( file2.txt, Changed )                                                       │

│ ( file2.txt, Deleted )                                                       │

│ FSharpMap<String,String>                                                     │

│       - Key: file1.txt                                                       │

│         Value: Deleted                                                       │

│       - Key: file2.txt                                                       │

│         Value: Deleted                                                       │

│ FSharpOption<Unit>                                                           │

│       Value: <null>                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ #### rename (test)                                                           │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let inline write path = async {

    let n = 2



    for i = 1 to n do

        do! $"{i}" |> writeAllTextAsync (path </> $"file{i}.txt")



    for i = 1 to n do

        do! path </> $"file{i}.txt" |> moveFileAsync (path </> $"file_{i}.txt") 

|> Async.Ignore



    for i = 1 to n do

        do! deleteFileAsync (path </> $"file_{i}.txt") |> Async.Ignore

    

    do! Async.Sleep 150

}



let inline run () =

    let eventMap, eventList = testEventsSorted (watchDirectory (fun _ -> false))

write



    [[

        "file1.txt", nameof FileSystemChangeType.Created

        "file1.txt", nameof FileSystemChangeType.Changed

        "file2.txt", nameof FileSystemChangeType.Created

        "file2.txt", nameof FileSystemChangeType.Changed



        "file_1.txt", nameof FileSystemChangeType.Renamed

        "file_1.txt", nameof FileSystemChangeType.Deleted



        "file_2.txt", nameof FileSystemChangeType.Renamed

        "file_2.txt", nameof FileSystemChangeType.Deleted

    ]]

    |> _sequenceEqual eventList



    [[

        "file1.txt", nameof FileSystemChangeType.Changed

        "file2.txt", nameof FileSystemChangeType.Changed

        "file_1.txt", nameof FileSystemChangeType.Deleted

        "file_2.txt", nameof FileSystemChangeType.Deleted

    ]]

    |> Map.ofList

    |> _sequenceEqual eventMap



run

|> retryFn 3

|> _equal (Some ())



╭─[ 5.02s - stdout ]───────────────────────────────────────────────────────────╮

│ FSharpOption<Unit>                                                           │

│       Value: <null>                                                          │

│ 00:00:44 #62 [Debug] watchWithFilter / Disposing watch stream / filter:      │

│ FileName, LastWrite                                                          │

│ FSharpList<Tuple<String,String>>                                             │

│ ( file1.txt, Created )                                                       │

│ ( file1.txt, Changed )                                                       │

│ ( file2.txt, Created )                                                       │

│ ( file2.txt, Changed )                                                       │

│ ( file_1.txt, Renamed )                                                      │

│ ( file_1.txt, Deleted )                                                      │

│ ( file_2.txt, Renamed )                                                      │

│ ( file_2.txt, Deleted )                                                      │

│ FSharpMap<String,String>                                                     │

│       - Key: file1.txt                                                       │

│         Value: Changed                                                       │

│       - Key: file2.txt                                                       │

│         Value: Changed                                                       │

│       - Key: file_1.txt                                                      │

│         Value: Deleted                                                       │

│       - Key: file_2.txt                                                      │

│         Value: Deleted                                                       │

│ FSharpOption<Unit>                                                           │

│       Value: <null>                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ #### full (test)                                                             │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let inline write path = async {

    let n = 2



    for i = 1 to n do

        do! $"{i}" |> writeAllTextAsync (path </> $"file{i}.txt")



    for i = 1 to n do

        do! "" |> writeAllTextAsync (path </> $"file{i}.txt")



    for i = 1 to n do

        do! path </> $"file{i}.txt" |> moveFileAsync (path </> $"file_{i}.txt") 

|> Async.Ignore



    for i = 1 to n do

        do! $"{i}" |> writeAllTextAsync (path </> $"file_{i}.txt")



    for i = 1 to n do

        do! deleteFileAsync (path </> $"file_{i}.txt") |> Async.Ignore

    

    do! Async.Sleep 150

}



let inline run () =

    let eventMap, eventList = testEventsSorted (watchDirectory (fun _ -> false))

write



    [[

        "file1.txt", nameof FileSystemChangeType.Created

        "file1.txt", nameof FileSystemChangeType.Changed

        "file2.txt", nameof FileSystemChangeType.Created

        "file2.txt", nameof FileSystemChangeType.Changed



        "file_1.txt", nameof FileSystemChangeType.Changed

        "file_1.txt", nameof FileSystemChangeType.Renamed

        "file_1.txt", nameof FileSystemChangeType.Deleted



        "file_2.txt", nameof FileSystemChangeType.Changed

        "file_2.txt", nameof FileSystemChangeType.Renamed

        "file_2.txt", nameof FileSystemChangeType.Deleted

    ]]

    |> _sequenceEqual eventList



    [[

        "file1.txt", nameof FileSystemChangeType.Changed

        "file2.txt", nameof FileSystemChangeType.Changed

        "file_1.txt", nameof FileSystemChangeType.Deleted

        "file_2.txt", nameof FileSystemChangeType.Deleted

    ]]

    |> Map.ofList

    |> _sequenceEqual eventMap



run

|> retryFn 3

|> _equal (Some ())



╭─[ 6.09s - stdout ]───────────────────────────────────────────────────────────╮

│ FSharpOption<Unit>                                                           │

│       Value: <null>                                                          │

│ 00:00:50 #63 [Debug] watchWithFilter / Disposing watch stream / filter:      │

│ FileName, LastWrite                                                          │

│ FSharpList<Tuple<String,String>>                                             │

│ ( file1.txt, Created )                                                       │

│ ( file1.txt, Changed )                                                       │

│ ( file2.txt, Created )                                                       │

│ ( file2.txt, Changed )                                                       │

│ ( file_1.txt, Changed )                                                      │

│ ( file_1.txt, Renamed )                                                      │

│ ( file_1.txt, Deleted )                                                      │

│ ( file_2.txt, Changed )                                                      │

│ ( file_2.txt, Renamed )                                                      │

│ ( file_2.txt, Deleted )                                                      │

│ FSharpMap<String,String>                                                     │

│       - Key: file1.txt                                                       │

│         Value: Changed                                                       │

│       - Key: file2.txt                                                       │

│         Value: Changed                                                       │

│       - Key: file_1.txt                                                      │

│         Value: Deleted                                                       │

│       - Key: file_2.txt                                                      │

│         Value: Deleted                                                       │

│ FSharpOption<Unit>                                                           │

│       Value: <null>                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯

[NbConvertApp] Converting notebook FileSystem.dib.ipynb to html

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

  validate(nb)

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:72: UserWarning: IPython3 lexer unavailable, falling back on Python 3

  return _pygments_highlight(

[NbConvertApp] Writing 465449 bytes to FileSystem.dib.html



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ # Networking (Polyglot)                                                      │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../nbs/Testing.dib



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A

spNetCore.Html.Abstractions.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.Formatting.dll"

open System

open System.IO

open System.Text

open Microsoft.DotNet.Interactive.Formatting



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

open type Microsoft.DotNet.Interactive.Kernel



── fsharp - import ─────────────────────────────────────────────────────────────

#r @"../../../../../../../.nuget/packages/expecto/10.1.0/lib/net6.0/Expecto.dll"



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



Formatter.ListExpansionLimit <- 100



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



type AssertExceptionFormatter (ex) =

    member _.Text =

        ex.ToString()

            .Replace("32m", "<span style=\"color: green;\">")

            .Replace("36m", "</span>")

            .Replace("31m", "<span style=\"color: red;\">")

            .Replace("\n", "<br/>\n")





Formatter.Register<AssertExceptionFormatter> ((fun (x : 

AssertExceptionFormatter) -> x.Text), "text/html")



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __expect fn log expected actual =

    if log then printfn $"{actual.ToDisplayString ()}"

    try

        "Testing.__expect" |> fn actual expected

    with :? Expecto.AssertException as ex ->

        AssertExceptionFormatter(ex).Display () |> ignore

        failwith (ex.GetType().FullName)



let inline __contains log expected actual = __expect Expecto.Expect.contains log

expected actual

let inline _contains expected actual = __contains true expected actual



let inline __equal log expected actual = __expect Expecto.Expect.equal log 

expected actual

let inline _equal expected actual = __equal true expected actual



let inline __isGreaterThan log expected actual = __expect 

Expecto.Expect.isGreaterThan log expected actual

let ...



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __isBetween log a b actual =

    let inline isBetween actual (a, b) _ =

        __isGreaterThanOrEqual log a actual

        __isLessThanOrEqual log b actual

    __expect isBetween log (a, b) actual

let inline _isBetween a b actual = __isBetween true a b actual



── fsharp ──────────────────────────────────────────────────────────────────────

#r 

@"../../../../../../../.nuget/packages/argu/6.1.1/lib/netstandard2.0/Argu.dll"

#r 

@"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li

b/net6.0/System.CommandLine.dll"



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../nbs/Common.fs

#!import ../nbs/CommonFSharp.fs

#!import ../nbs/Async.fs

#!import ../nbs/Runtime.fs



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Common =



    let nl = System.Environment.NewLine

    let q = @""""



    let inline cons head tail = head :: tail



    module String =

        let inline contains (value : string) (input : string) =

            input.Contains value



        let inline endsWith (value : string) (input : string) =

            input.EndsWith value



        let inline padLeft totalWidth paddingChar (input : string) =

            input.PadLeft (totalWidth, paddingChar)



        let inline replace (oldValue : string) (newValue : string) (input : 

string) =

            input.Replace (oldValue, newValue)



        let inline split separator (input : string) =

            input.Split separator



        let inline spli...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module CommonFSharp =



    open Common



    /// ## getUnionCaseName



    let inline getUnionCaseName<'T> (x: 'T) =

        match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with

        | case, _ -> case.Name





── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Async =



    open Common



    /// ## choice



    let inline choice asyncs = async {

        let e = Event<_> ()

        use cts = new System.Threading.CancellationTokenSource ()

        let fn =

            asyncs

            |> Seq.map (fun a -> async {

                let! x = a

                e.Trigger x

            })

            |> Async.Parallel

            |> Async.Ignore

        Async.Start (fn, cts.Token)

        let! result = Async.AwaitEvent e.Publish

        cts.Cancel ()

        return result

    }



    /// ## map



    let inline map fn a = async {

        let! x = a

        return fn x

    }



    /// ## catch



    let inline catch a =

        a

        |> Async.Catch

        ...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Runtime =



    open Common



    /// ## isWindows



    let isWindows =

        fun () ->

            System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform

                System.Runtime.InteropServices.OSPlatform.Windows

        |> memoize



    /// ## getExecutableSuffix



    let inline getExecutableSuffix () =

        if isWindows ()

        then ".exe"

        else ""



    /// ## splitCommand



    type private CommandParseStep =

        | Start

        | Path of quoted: bool

        | Arguments



    let splitCommand (command: string) =

        let rec loop (path, args) chars step =

            match chars, step with

            | ('"' | '\'') :: tail, _ when path = "" -> loop (pat...



── fsharp ──────────────────────────────────────────────────────────────────────

open Common



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## testPortOpen                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline testPortOpen port = async {

    let! ct = Async.CancellationToken

    use client = new System.Net.Sockets.TcpClient ()

    try

        do! client.ConnectAsync ("127.0.0.1", port, ct) |> 

Async.awaitValueTaskUnit

        return true

    with ex ->

        trace Verbose (fun () -> $"testPortOpen / ex: {ex |> printException}") 

getLocals

        return false

}



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



testPortOpen 65536

|> Async.runWithTimeout 120

|> _equal (Some false)



╭─[ 189.31ms - stdout ]────────────────────────────────────────────────────────╮

│ 00:00:00 #1 [Verbose] testPortOpen / ex: System.ArgumentOutOfRangeException: │

│ Specified argument was out of the range of valid values. (Parameter 'port')  │

│ FSharpOption<Boolean>                                                        │

│       Value: False                                                           │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline testPortOpenTimeout timeout port = async {

    let! result =

        testPortOpen port

        |> Async.runWithTimeoutAsync timeout

    return

        match result with

        | None -> false

        | Some result -> result

}



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



testPortOpenTimeout 120 65535

|> Async.RunSynchronously

|> _equal false



╭─[ 305.88ms - stdout ]────────────────────────────────────────────────────────╮

│ 00:00:00 #2 [Debug] runWithTimeoutAsync / timeout: 120                       │

│ False                                                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## waitForPortAccess                                                         │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline waitForPortAccess timeout status port =

    let rec loop retry = async {

        let! isPortOpen =

            match timeout with

            | None -> testPortOpen port

            | Some timeout -> testPortOpenTimeout timeout port

        if isPortOpen = status

        then return retry

        else

            if retry % 100 = 0 then

                let getLocals () = $"port: {port} / retry: {retry} / {getLocals 

()}"

                trace Verbose (fun () -> "waitForPortAccess") getLocals

            do! Async.Sleep 10

            return! loop (retry + 1)

    }

    loop 0



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let port = 5000



let inline lockPort () = async {

    trace Debug (fun () -> "_1") getLocals

    do! Async.Sleep 5000

    use listener = new System.Net.Sockets.TcpListener 

(System.Net.IPAddress.Parse "127.0.0.1", port)

    trace Debug (fun () -> "_2") getLocals

    listener.Start ()

    trace Debug (fun () -> "_3") getLocals

    do! Async.Sleep 2000

    trace Debug (fun () -> "_4") getLocals

    listener.Stop ()

    trace Debug (fun () -> "_5") getLocals

}



async {

    trace Debug (fun () -> "1") getLocals

    let! child = lockPort () |> Async.StartChild

    trace Debug (fun () -> "2") getLocals

    do! Async.Sleep 1

    trace Debug (fun () -> "3") getLocals

    let! retries1 = waitForPortAccess None true port

    trace Debug (fun () -> "4") getLocals

    let! retries2 = waitForPortAccess None false port

    trace Debug (fun () -> "5") getLocals

    do! child

    trace Debug (fun () -> "6") getLocals

    return retries1, retries2

}

|> Async.runWithTimeout 20000

|> function

    | Some (retries1, retries2) ->

        retries1

        |> _isBetween

            (if Runtime.isWindows () then 2 else 2)

            (if Runtime.isWindows () then 5 else 1500)



        retries2

        |> _isBetween

            (if Runtime.isWindows () then 80 else 80)

            (if Runtime.isWindows () then 150 else 600)



        true

    | _ -> false

|> _equal true



╭─[ 9.52s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:01 #3 [Debug] 1                                                        │

│ 00:00:01 #4 [Debug] _1                                                       │

│ 00:00:01 #5 [Debug] 2                                                        │

│ 00:00:01 #6 [Debug] 3                                                        │

│ 00:00:03 #7 [Verbose] testPortOpen / ex: System.AggregateException: One or   │

│ more errors occurred. (No connection could be made because the target        │

│ machine actively refused it.)                                                │

│ 00:00:03 #8 [Verbose] waitForPortAccess / port: 5000 / retry: 0              │

│ 00:00:05 #9 [Verbose] testPortOpen / ex: System.AggregateException: One or   │

│ more errors occurred. (No connection could be made because the target        │

│ machine actively refused it.)                                                │

│ 00:00:06 #10 [Debug] _2                                                      │

│ 00:00:06 #11 [Debug] _3                                                      │

│ 00:00:06 #12 [Debug] 4                                                       │

│ 00:00:06 #13 [Verbose] waitForPortAccess / port: 5000 / retry: 0             │

│ 00:00:07 #14 [Verbose] waitForPortAccess / port: 5000 / retry: 100           │

│ 00:00:08 #15 [Debug] _4                                                      │

│ 00:00:08 #16 [Debug] _5                                                      │

│ 00:00:10 #17 [Verbose] testPortOpen / ex: System.AggregateException: One or  │

│ more errors occurred. (No connection could be made because the target        │

│ machine actively refused it.)                                                │

│ 00:00:10 #18 [Debug] 5                                                       │

│ 00:00:10 #19 [Debug] 6                                                       │

│ 2                                                                            │

│ 2                                                                            │

│ 2                                                                            │

│ 122                                                                          │

│ 122                                                                          │

│ 122                                                                          │

│ True                                                                         │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let port = 5000



let inline lockPort () = async {

    trace Debug (fun () -> "_1") getLocals

    do! Async.Sleep 500

    use listener = new System.Net.Sockets.TcpListener 

(System.Net.IPAddress.Parse "127.0.0.1", port)

    trace Debug (fun () -> "_2") getLocals

    listener.Start ()

    trace Debug (fun () -> "_3") getLocals

    do! Async.Sleep 200

    trace Debug (fun () -> "_4") getLocals

    listener.Stop ()

    trace Debug (fun () -> "_5") getLocals

}



async {

    trace Debug (fun () -> "1") getLocals

    let! child = lockPort () |> Async.StartChild

    trace Debug (fun () -> "2") getLocals

    do! Async.Sleep 1

    trace Debug (fun () -> "3") getLocals

    let! retries1 = waitForPortAccess (Some 60) true port

    trace Debug (fun () -> "4") getLocals

    let! retries2 = waitForPortAccess (Some 60) false port

    trace Debug (fun () -> "5") getLocals

    do! child

    trace Debug (fun () -> "6") getLocals

    return retries1, retries2

}

|> Async.runWithTimeout 2000

|> function

    | Some (retries1, retries2) ->

        retries1

        |> _isBetween

            (if Runtime.isWindows () then 4 else 2)

            (if Runtime.isWindows () then 15 else 150)



        retries2

        |> _isBetween

            (if Runtime.isWindows () then 5 else 0)

            (if Runtime.isWindows () then 20 else 60)



        true

    | _ -> false

|> _equal true



╭─[ 1.51s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:10 #20 [Debug] 1                                                       │

│ 00:00:10 #22 [Debug] _1                                                      │

│ 00:00:10 #21 [Debug] 2                                                       │

│ 00:00:10 #23 [Debug] 3                                                       │

│ 00:00:11 #24 [Debug] runWithTimeoutAsync / timeout: 60                       │

│ 00:00:11 #25 [Verbose] waitForPortAccess / port: 5000 / retry: 0             │

│ 00:00:11 #26 [Debug] runWithTimeoutAsync / timeout: 60                       │

│ 00:00:11 #27 [Debug] runWithTimeoutAsync / timeout: 60                       │

│ 00:00:11 #28 [Debug] runWithTimeoutAsync / timeout: 60                       │

│ 00:00:11 #29 [Debug] runWithTimeoutAsync / timeout: 60                       │

│ 00:00:11 #30 [Debug] runWithTimeoutAsync / timeout: 60                       │

│ 00:00:11 #31 [Debug] _2                                                      │

│ 00:00:11 #32 [Debug] _3                                                      │

│ 00:00:11 #33 [Debug] runWithTimeoutAsync / timeout: 60                       │

│ 00:00:11 #34 [Debug] 4                                                       │

│ 00:00:11 #35 [Verbose] waitForPortAccess / port: 5000 / retry: 0             │

│ 00:00:11 #36 [Debug] _4                                                      │

│ 00:00:11 #37 [Debug] _5                                                      │

│ 00:00:11 #38 [Debug] runWithTimeoutAsync / timeout: 60                       │

│ 00:00:11 #39 [Debug] 5                                                       │

│ 00:00:11 #40 [Debug] 6                                                       │

│ 7                                                                            │

│ 7                                                                            │

│ 7                                                                            │

│ 10                                                                           │

│ 10                                                                           │

│ 10                                                                           │

│ True                                                                         │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## getAvailablePort                                                          │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline getAvailablePort timeout initialPort =

    let rec loop port = async {

        let! isPortOpen =

            match timeout with

            | None -> testPortOpen port

            | Some timeout -> testPortOpenTimeout timeout port

        if not isPortOpen

        then return port

        else return! loop (port + 1)

    }

    loop initialPort



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let port = 5000



let inline lockPorts () = async {

    trace Debug (fun () -> "_1") getLocals

    use listener1 = new System.Net.Sockets.TcpListener 

(System.Net.IPAddress.Parse "127.0.0.1", port)

    use listener2 = new System.Net.Sockets.TcpListener 

(System.Net.IPAddress.Parse "127.0.0.1", port + 1)

    trace Debug (fun () -> "_2") getLocals

    listener1.Start ()

    listener2.Start ()

    trace Debug (fun () -> "_3") getLocals

    do! Async.Sleep 4000

    trace Debug (fun () -> "_4") getLocals

    listener1.Stop ()

    listener2.Stop ()

    trace Debug (fun () -> "_5") getLocals

}



async {

    trace Debug (fun () -> "1") getLocals

    let! child = lockPorts () |> Async.StartChild

    trace Debug (fun () -> "2") getLocals

    do! Async.Sleep 240

    trace Debug (fun () -> "3") getLocals

    let! availablePort = getAvailablePort None port

    trace Debug (fun () -> "4") getLocals

    let! retries = waitForPortAccess None false port

    trace Debug (fun () -> "5") getLocals

    do! child

    trace Debug (fun () -> "6") getLocals

    return availablePort, retries

}

|> Async.runWithTimeout 15000

|> function

    | Some (availablePort, retries) ->

        availablePort |> _equal (port + 2)



        retries

        |> _isBetween

            (if Runtime.isWindows () then 100 else 100)

            (if Runtime.isWindows () then 150 else 1200)



        true

    | _ -> false

|> _equal true



╭─[ 6.46s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:12 #41 [Debug] 1                                                       │

│ 00:00:12 #42 [Debug] 2                                                       │

│ 00:00:12 #43 [Debug] _1                                                      │

│ 00:00:12 #44 [Debug] _2                                                      │

│ 00:00:12 #45 [Debug] _3                                                      │

│ 00:00:12 #46 [Debug] 3                                                       │

│ 00:00:14 #47 [Verbose] testPortOpen / ex: System.AggregateException: One or  │

│ more errors occurred. (No connection could be made because the target        │

│ machine actively refused it.)                                                │

│ 00:00:14 #48 [Debug] 4                                                       │

│ 00:00:14 #49 [Verbose] waitForPortAccess / port: 5000 / retry: 0             │

│ 00:00:16 #50 [Verbose] waitForPortAccess / port: 5000 / retry: 100           │

│ 00:00:16 #51 [Debug] _4                                                      │

│ 00:00:16 #52 [Debug] _5                                                      │

│ 00:00:18 #53 [Verbose] testPortOpen / ex: System.AggregateException: One or  │

│ more errors occurred. (No connection could be made because the target        │

│ machine actively refused it.)                                                │

│ 00:00:18 #54 [Debug] 5                                                       │

│ 00:00:18 #55 [Debug] 6                                                       │

│ 5002                                                                         │

│ 110                                                                          │

│ 110                                                                          │

│ 110                                                                          │

│ True                                                                         │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let port = 5000



let inline lockPorts () = async {

    trace Debug (fun () -> "_1") getLocals

    use listener1 = new System.Net.Sockets.TcpListener 

(System.Net.IPAddress.Parse "127.0.0.1", port)

    use listener2 = new System.Net.Sockets.TcpListener 

(System.Net.IPAddress.Parse "127.0.0.1", port + 1)

    trace Debug (fun () -> "_2") getLocals

    listener1.Start ()

    listener2.Start ()

    trace Debug (fun () -> "_3") getLocals

    do! Async.Sleep 400

    trace Debug (fun () -> "_4") getLocals

    listener1.Stop ()

    listener2.Stop ()

    trace Debug (fun () -> "_5") getLocals

}



async {

    trace Debug (fun () -> "1") getLocals

    let! child = lockPorts () |> Async.StartChild

    trace Debug (fun () -> "2") getLocals

    do! Async.Sleep 240

    trace Debug (fun () -> "3") getLocals

    let! availablePort = getAvailablePort (Some 60) port

    trace Debug (fun () -> "4") getLocals

    let! retries = waitForPortAccess (Some 60) false port

    trace Debug (fun () -> "5") getLocals

    do! child

    trace Debug (fun () -> "6") getLocals

    return availablePort, retries

}

|> Async.runWithTimeout 1500

|> function

    | Some (availablePort, retries) ->

        availablePort |> _equal (port + 2)



        retries

        |> _isBetween

            (if Runtime.isWindows () then 2 else 1)

            (if Runtime.isWindows () then 10 else 120)



        true

    | _ -> false

|> _equal true



╭─[ 1.07s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:18 #56 [Debug] 1                                                       │

│ 00:00:18 #57 [Debug] 2                                                       │

│ 00:00:18 #58 [Debug] _1                                                      │

│ 00:00:18 #59 [Debug] _2                                                      │

│ 00:00:18 #60 [Debug] _3                                                      │

│ 00:00:19 #61 [Debug] 3                                                       │

│ 00:00:19 #62 [Debug] runWithTimeoutAsync / timeout: 60                       │

│ 00:00:19 #63 [Debug] 4                                                       │

│ 00:00:19 #64 [Verbose] waitForPortAccess / port: 5000 / retry: 0             │

│ 00:00:19 #65 [Debug] _4                                                      │

│ 00:00:19 #66 [Debug] _5                                                      │

│ 00:00:19 #67 [Debug] runWithTimeoutAsync / timeout: 60                       │

│ 00:00:19 #68 [Debug] 5                                                       │

│ 00:00:19 #69 [Debug] 6                                                       │

│ 5002                                                                         │

│ 5                                                                            │

│ 5                                                                            │

│ 5                                                                            │

│ True                                                                         │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯

[NbConvertApp] Converting notebook Networking.dib.ipynb to html

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

  validate(nb)

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:72: UserWarning: IPython3 lexer unavailable, falling back on Python 3

  return _pygments_highlight(

[NbConvertApp] Writing 324049 bytes to Networking.dib.html



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ # Runtime (Polyglot)                                                         │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../nbs/Testing.dib



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A

spNetCore.Html.Abstractions.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.Formatting.dll"

open System

open System.IO

open System.Text

open Microsoft.DotNet.Interactive.Formatting



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

open type Microsoft.DotNet.Interactive.Kernel



── fsharp - import ─────────────────────────────────────────────────────────────

#r @"../../../../../../../.nuget/packages/expecto/10.1.0/lib/net6.0/Expecto.dll"



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



Formatter.ListExpansionLimit <- 100



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



type AssertExceptionFormatter (ex) =

    member _.Text =

        ex.ToString()

            .Replace("32m", "<span style=\"color: green;\">")

            .Replace("36m", "</span>")

            .Replace("31m", "<span style=\"color: red;\">")

            .Replace("\n", "<br/>\n")





Formatter.Register<AssertExceptionFormatter> ((fun (x : 

AssertExceptionFormatter) -> x.Text), "text/html")



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __expect fn log expected actual =

    if log then printfn $"{actual.ToDisplayString ()}"

    try

        "Testing.__expect" |> fn actual expected

    with :? Expecto.AssertException as ex ->

        AssertExceptionFormatter(ex).Display () |> ignore

        failwith (ex.GetType().FullName)



let inline __contains log expected actual = __expect Expecto.Expect.contains log

expected actual

let inline _contains expected actual = __contains true expected actual



let inline __equal log expected actual = __expect Expecto.Expect.equal log 

expected actual

let inline _equal expected actual = __equal true expected actual



let inline __isGreaterThan log expected actual = __expect 

Expecto.Expect.isGreaterThan log expected actual

let ...



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __isBetween log a b actual =

    let inline isBetween actual (a, b) _ =

        __isGreaterThanOrEqual log a actual

        __isLessThanOrEqual log b actual

    __expect isBetween log (a, b) actual

let inline _isBetween a b actual = __isBetween true a b actual



── fsharp ──────────────────────────────────────────────────────────────────────

#r 

@"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan

dard2.1/FSharp.Control.AsyncSeq.dll"

#r 

@"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.

0/System.Reactive.dll"

#r 

@"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/

netstandard2.0/System.Reactive.Linq.dll"

#r 

@"../../../../../../../.nuget/packages/argu/6.1.1/lib/netstandard2.0/Argu.dll"

#r 

@"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li

b/net6.0/System.CommandLine.dll"



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../nbs/Common.fs

#!import ../nbs/CommonFSharp.fs

#!import ../nbs/Async.fs

#!import ../nbs/AsyncSeq.fs

#!import ../nbs/Runtime.fs

#!import ../nbs/FileSystem.fs



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Common =



    let nl = System.Environment.NewLine

    let q = @""""



    let inline cons head tail = head :: tail



    module String =

        let inline contains (value : string) (input : string) =

            input.Contains value



        let inline endsWith (value : string) (input : string) =

            input.EndsWith value



        let inline padLeft totalWidth paddingChar (input : string) =

            input.PadLeft (totalWidth, paddingChar)



        let inline replace (oldValue : string) (newValue : string) (input : 

string) =

            input.Replace (oldValue, newValue)



        let inline split separator (input : string) =

            input.Split separator



        let inline spli...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module CommonFSharp =



    open Common



    /// ## getUnionCaseName



    let inline getUnionCaseName<'T> (x: 'T) =

        match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with

        | case, _ -> case.Name





── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Async =



    open Common



    /// ## choice



    let inline choice asyncs = async {

        let e = Event<_> ()

        use cts = new System.Threading.CancellationTokenSource ()

        let fn =

            asyncs

            |> Seq.map (fun a -> async {

                let! x = a

                e.Trigger x

            })

            |> Async.Parallel

            |> Async.Ignore

        Async.Start (fn, cts.Token)

        let! result = Async.AwaitEvent e.Publish

        cts.Cancel ()

        return result

    }



    /// ## map



    let inline map fn a = async {

        let! x = a

        return fn x

    }



    /// ## catch



    let inline catch a =

        a

        |> Async.Catch

        ...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module AsyncSeq =



    open Common



    /// ## subscribeEvent



    let inline subscribeEvent (event: IEvent<'H, 'A>) map =

        let observable = System.Reactive.Linq.Observable.FromEventPattern<'H, 

'A>(event.AddHandler, event.RemoveHandler)

        System.Reactive.Linq.Observable.Select (observable, fun event -> map 

event.EventArgs)

        |> FSharp.Control.AsyncSeq.ofObservableBuffered



    let subscribeToken (token : System.Threading.CancellationToken) =

        let tcs = new System.Threading.Tasks.TaskCompletionSource ()

        System.Action tcs.SetResult |> token.Register |> ignore

        let start = System.DateTime.Now.Ticks

        FSharp.Control.AsyncSeq.unfoldAsync

            (fun (...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Runtime =



    open Common



    /// ## isWindows



    let isWindows =

        fun () ->

            System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform

                System.Runtime.InteropServices.OSPlatform.Windows

        |> memoize



    /// ## getExecutableSuffix



    let inline getExecutableSuffix () =

        if isWindows ()

        then ".exe"

        else ""



    /// ## splitCommand



    type private CommandParseStep =

        | Start

        | Path of quoted: bool

        | Arguments



    let splitCommand (command: string) =

        let rec loop (path, args) chars step =

            match chars, step with

            | ('"' | '\'') :: tail, _ when path = "" -> loop (pat...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module FileSystem =



    open Common



    /// ## Operators



    module Operators =

        let inline (</>) a b =

            System.IO.Path.Combine (a, b)



    open Operators



    /// ## createTempDirectoryName



    let inline createTempDirectoryName () =

        let root = System.Reflection.Assembly.GetEntryAssembly().GetName().Name



        System.IO.Path.GetTempPath ()

        </> $"!{root}"

        </> string (newGuidFromDateTime System.DateTime.Now)



    /// ## createTempDirectory



    let inline createTempDirectory () =

        let tempFolder = createTempDirectoryName ()

        let result = System.IO.Directory.CreateDirectory tempFolder



        if not result.Exists then

            let ge...



── fsharp ──────────────────────────────────────────────────────────────────────

open Common



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



open FileSystem.Operators



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## isWindows                                                                 │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let isWindows =

    fun () ->

        System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform

            System.Runtime.InteropServices.OSPlatform.Windows

    |> memoize



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



isWindows ()



╭─[ 73.07ms - return value ]───────────────────────────────────────────────────╮

│ <div class="dni-plaintext"><pre>True</pre></div><style>                      │

│ .dni-code-hint {                                                             │

│     font-style: italic;                                                      │

│     overflow: hidden;                                                        │

│     white-space: nowrap;                                                     │

│ }                                                                            │

│ .dni-treeview {                                                              │

│     white-space: nowrap;                                                     │

│ }                                                                            │

│ .dni-treeview td {                                                           │

│     vertical-align: top;                                                     │

│     text-align: start;                                                       │

│ }                                                                            │

│ details.dni-treeview {                                                       │

│     padding-left: 1em;                                                       │

│ }                                                                            │

│ table td {                                                                   │

│     text-align: start;                                                       │

│ }                                                                            │

│ table tr {                                                                   │

│     vertical-align: top;                                                     │

│     margin: 0em 0px;                                                         │

│ }                                                                            │

│ table tr td pre                                                              │

│ {                                                                            │

│     vertical-align: top !important;                                          │

│     margin: 0em 0px !important;                                              │

│ }                                                                            │

│ table th {                                                                   │

│     text-align: start;                                                       │

│ }                                                                            │

│ </style>                                                                     │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## getExecutableSuffix                                                       │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline getExecutableSuffix () =

    if isWindows ()

    then ".exe"

    else ""



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



getExecutableSuffix ()



╭─[ 11.44ms - return value ]───────────────────────────────────────────────────╮

│ .exe                                                                         │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## splitCommand                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

type private CommandParseStep =

    | Start

    | Path of quoted: bool

    | Arguments



let splitCommand (command: string) =

    let rec loop (path, args) chars step =

        match chars, step with

        | ('"' | '\'') :: tail, _ when path = "" -> loop (path, args) tail (Path

true)

        | ('"' | '\'') :: tail, Path true -> loop (path, args) tail (Path false)

        | ' ' :: tail, Path true -> loop ($"{path} ", args) tail (Path true)

        | ' ' :: tail, (Start | Path _) -> loop (path, args) tail Arguments

        | char :: tail, Arguments -> loop (path, $"{args}{char}") tail Arguments

        | char :: tail, _ -> loop ($"{path}{char}", args) tail step

        | _, _ -> path |> String.replace @"\" "/", args

    loop ("", "") (command |> Seq.toList) Start



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



splitCommand ""

|> _equal ("", "")



splitCommand "/a/b/c"

|> _equal ("/a/b/c", "")



splitCommand "cat file.txt"

|> _equal ("cat", "file.txt")



splitCommand """..\..\file.exe file1.txt file2.txt"""

|> _equal ("../../file.exe", "file1.txt file2.txt")



splitCommand @"c:\dir\file.exe ""file1.txt file2.txt"""

|> _equal ("c:/dir/file.exe", @"""file1.txt file2.txt""")



splitCommand @"""..\..\dir name\file.exe"" ""file 1.txt"" file2.txt"

|> _equal ("../../dir name/file.exe", @"""file 1.txt"" file2.txt")



splitCommand @"""..\..\file 1.exe"" -c \\""echo 1\\"""

|> _equal ("../../file 1.exe", @"-c \\""echo 1\\""")



splitCommand @"..\..\file 1.exe -c \\""echo 1\\"""

|> _equal ("../../file", @"1.exe -c \\""echo 1\\""")



╭─[ 87.30ms - stdout ]─────────────────────────────────────────────────────────╮

│ ( ,  )                                                                       │

│ ( /a/b/c,  )                                                                 │

│ ( cat, file.txt )                                                            │

│ ( ../../file.exe, file1.txt file2.txt )                                      │

│ ( c:/dir/file.exe, "file1.txt file2.txt" )                                   │

│ ( ../../dir name/file.exe, "file 1.txt" file2.txt )                          │

│ ( ../../file 1.exe, -c \\"echo 1\\" )                                        │

│ ( ../../file, 1.exe -c \\"echo 1\\" )                                        │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## executeAsync                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

type ExecutionLine =

    {

        ProcessId : int

        Line : string

        Error : bool

    }



type ExecutionOptions =

    {

        Command : string

        WorkingDirectory : string option

        CancellationToken : System.Threading.CancellationToken option

        OnLine : (ExecutionLine -> Async<unit>) option

    }



let inline executeWithOptionsAsync (options : ExecutionOptions) = async {

    let fileName, arguments = options.Command |> splitCommand

    let workingDirectory = options.WorkingDirectory |> Option.defaultValue ""



    trace Debug (fun () -> $"executeAsync / options: {options}") getLocals



    let startInfo = System.Diagnostics.ProcessStartInfo (

        Arguments = arguments,

        CreateNoWindow = true,

        FileName = fileName,

        RedirectStandardError = true,

        RedirectStandardOutput = true,

        StandardOutputEncoding = System.Text.Encoding.UTF8,

        UseShellExecute = false,

        WorkingDirectory = workingDirectory

    )



    use proc = new System.Diagnostics.Process (StartInfo = startInfo)

    let output = System.Collections.Concurrent.ConcurrentStack<string> ()



    let inline event error (e: System.Diagnostics.DataReceivedEventArgs) = async

{

        if e.Data <> null then

            match options.OnLine with

            | Some onLine ->

                do!

                    onLine

                        {

                            ProcessId = proc.Id

                            Line = e.Data

                            Error = error

                        }

            | None -> ()



            trace

                Debug

                (fun () -> $"> {e.Data}")

                Common.getLocals



            output.Push

                $"{

                    if error then '[['.ToString() else System.String.Empty

                }{

                    e.Data

                }{

                    if error then ']]'.ToString() else System.String.Empty

                }"

    }



    proc.OutputDataReceived.Add (event false >> Async.StartImmediate)

    proc.ErrorDataReceived.Add (event true >> Async.StartImmediate)



    if proc.Start () |> not

    then failwith $"executeAsync / proc.Start () error"



    proc.BeginErrorReadLine ()

    proc.BeginOutputReadLine ()



    let! ct =

        options.CancellationToken

        |> Option.defaultValue System.Threading.CancellationToken.None

        |> Async.mergeCancellationTokenWithDefaultAsync



    use reg = ct.Register (fun _ ->

        if not proc.HasExited then proc.Kill ()

    )



    let! exitCode = async {

        try

            do! proc.WaitForExitAsync ct |> Async.AwaitTask

            return proc.ExitCode

        with :? System.Threading.Tasks.TaskCanceledException as ex ->

            trace Warning (fun () -> $"executeAsync / WaitForExitAsync / ex: {ex

|> printException}") getLocals

            ex |> printException |> output.Push

            return System.Int32.MinValue

    }



    let output = output |> Seq.rev |> String.concat "\n"



    trace Debug (fun () ->

        $"executeAsync / exitCode: {exitCode} / output.Length: {output.Length}"

    ) getLocals



    return exitCode, output

}



let inline executeAsync command =

    executeWithOptionsAsync

        {

            Command = command

            CancellationToken = None

            OnLine = None

            WorkingDirectory = None

        }



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let tempFolder = FileSystem.createTempDirectory ()

let fileName = "test.txt"

let path = tempFolder </> fileName



async {

    let! exitCode, result = executeAsync @$"pwsh -c ""Get-Content {path}"""

    exitCode |> _equal 1

    result |> _stringContains "not exist"



    do! "0" |> FileSystem.writeAllTextAsync path



    return!

        executeWithOptionsAsync

            {

                Command = @$"pwsh -c ""Get-Content {fileName}"""

                CancellationToken = None

                OnLine = None

                WorkingDirectory = Some tempFolder

            }



}

|> Async.runWithTimeout 10000

|> function

    | Some (exitCode, output) ->

        exitCode |> _equal 0

        output |> _equal "0"



        true

    | _ -> false

|> _equal true



╭─[ 1.89s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:00 #1 [Debug] executeAsync / options: { Command =                      │

│    "pwsh -c "Get-Content                                                     │

│ C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1403-3990-9021-99632 │

│ 91644bd\test.txt""                                                           │

│   WorkingDirectory = None                                                    │

│   CancellationToken = None                                                   │

│   OnLine = None }                                                            │

│ 00:00:00 #2 [Debug] > Get-Content: Cannot find path                │

│ 'C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1403-3990-9021-9963 │

│ 291644bd\test.txt' because it does not exist.                              │

│ 00:00:00 #3 [Debug] executeAsync / exitCode: 1 / output.Length: 171          │

│ 1                                                                            │

│ [Get-Content: Cannot find path                                     │

│ 'C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1403-3990-9021-9963 │

│ 291644bd\test.txt' because it does not exist.]                             │

│ 00:00:00 #4 [Debug] executeAsync / options: { Command = "pwsh -c             │

│ "Get-Content test.txt""                                                      │

│   WorkingDirectory =                                                         │

│    Some                                                                      │

│                                                                              │

│ "C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1403-3990-9021-9963 │

│ 291644bd"                                                                    │

│   CancellationToken = None                                                   │

│   OnLine = None }                                                            │

│ 00:00:01 #5 [Debug] > 0                                                      │

│ 00:00:01 #6 [Debug] executeAsync / exitCode: 0 / output.Length: 1            │

│ 0                                                                            │

│ 0                                                                            │

│ True                                                                         │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let tempFolder = FileSystem.createTempDirectory ()

let path = tempFolder </> "test.txt"



let command = @$"pwsh -c ""Get-Content {path}"""



async {

    do! "0" |> FileSystem.writeAllTextAsync path

    let cts = new System.Threading.CancellationTokenSource ()

    trace Debug (fun () -> "1") getLocals

    let! result =

        executeWithOptionsAsync

            {

                Command = command

                CancellationToken = Some cts.Token

                OnLine = None

                WorkingDirectory = None

            }

        |> Async.StartChild

    trace Debug (fun () -> "2") getLocals

    do! Async.Sleep 100

    trace Debug (fun () -> "3") getLocals

    cts.Cancel ()

    trace Debug (fun () -> "4") getLocals

    let! exitCode, output = result

    trace Debug (fun () -> "5") getLocals

    return exitCode, output

}

|> Async.runWithTimeout 10000

|> function

    | Some (exitCode, output) ->

        exitCode |> _equal -2147483648

        output |> _equal "System.Threading.Tasks.TaskCanceledException: A task 

was canceled."



        true

    | _ -> false

|> _equal true



╭─[ 586.37ms - stdout ]────────────────────────────────────────────────────────╮

│ 00:00:01 #7 [Debug] 1                                                        │

│ 00:00:01 #9 [Debug] 2                                                        │

│ 00:00:01 #8 [Debug] executeAsync / options: { Command =                      │

│    "pwsh -c "Get-Content                                                     │

│ C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1403-4169-6949-65f89 │

│ 7885437\test.txt""                                                           │

│   WorkingDirectory = None                                                    │

│   CancellationToken = Some System.Threading.CancellationToken                │

│   OnLine = None }                                                            │

│ 00:00:01 #10 [Debug] 3                                                       │

│ 00:00:01 #11 [Debug] 4                                                       │

│ 00:00:01 #12 [Warning] executeAsync / WaitForExitAsync / ex:                 │

│ System.Threading.Tasks.TaskCanceledException: A task was canceled.           │

│ 00:00:01 #13 [Debug] executeAsync / exitCode: -2147483648 / output.Length:   │

│ 66                                                                           │

│ 00:00:01 #14 [Debug] 5                                                       │

│ -2147483648                                                                  │

│ System.Threading.Tasks.TaskCanceledException: A task was canceled.           │

│ True                                                                         │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## splitArgs                                                                 │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline splitArgs commandLine =

    commandLine

    |> System.CommandLine.Parsing.CommandLineStringSplitter.Instance.Split



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"""a b "c d" e"""

|> splitArgs

|> Seq.toArray

|> _equal [[| "a"; "b"; "c d"; "e" |]]



╭─[ 24.31ms - stdout ]─────────────────────────────────────────────────────────╮

│ [ a, b, c d, e ]                                                             │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## parseArgs                                                                 │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline parseArgs<'T when 'T :> Argu.IArgParserTemplate> args =

    let assemblyName = 

System.Reflection.Assembly.GetEntryAssembly().GetName().Name

    let errorHandler : Argu.IExiter =

        if [[ "Microsoft.DotNet.Interactive.App"; "dotnet-repl" ]] |> 

List.contains assemblyName

        then Argu.ExceptionExiter ()

        else Argu.ProcessExiter (function Argu.ErrorCode.HelpText -> None | _ ->

Some System.ConsoleColor.Red)



    let parser =

        Argu.ArgumentParser.Create<'T> (

            programName = $"{assemblyName}{getExecutableSuffix ()}",

            errorHandler = errorHandler

        )



    parser.ParseCommandLine args



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



[[<RequireQualifiedAccess>]]

type Arguments =

    | [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.ExactlyOnce; 

Argu.ArguAttributes.Last>]]

        Paths of paths : string list



    interface Argu.IArgParserTemplate with

        member s.Usage =

            match s with

            | Paths _ -> nameof Paths



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



fun () -> parseArgs<Arguments> [[||]] |> ignore

|> _throwsC (fun ex _ ->

    printException ex

    |> _stringContains "Argu.ArguParseException: ERROR: missing parameter 

'<paths>...'."

)



╭─[ 130.76ms - stdout ]────────────────────────────────────────────────────────╮

│ FSI_0029+it@3-246                                                            │

│ Argu.ArguParseException: ERROR: missing parameter '<paths>...'.              │

│ USAGE: dotnet-repl.exe [--help] <paths>...                                   │

│                                                                              │

│ PATHS:                                                                       │

│                                                                              │

│     <paths>...            Paths                                              │

│                                                                              │

│ OPTIONS:                                                                     │

│                                                                              │

│     --help                display this list of options.                      │

│                                                                              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline parseAllArgs<'T when 'T :> Argu.IArgParserTemplate> args =

    args

    |> parseArgs<'T>

    |> fun results -> results.GetAllResults ()



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



[[<RequireQualifiedAccess>]]

type Arguments =

    | [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.ExactlyOnce; 

Argu.ArguAttributes.Last>]]

        Paths of paths : string list



    interface Argu.IArgParserTemplate with

        member s.Usage =

            match s with

            | Paths _ -> nameof Paths



parseAllArgs<Arguments> [[| "a b"; "c" |]]

|> _equal [[ Arguments.Paths [[ "a b"; "c" ]] ]]



╭─[ 86.81ms - stdout ]─────────────────────────────────────────────────────────╮

│ FSharpList<Arguments>                                                        │

│       - paths: [ a b, c ]                                                    │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline parseArgsMap<'T when 'T :> Argu.IArgParserTemplate> args =

    args

    |> parseAllArgs<'T>

    |> List.groupBy CommonFSharp.getUnionCaseName<'T>

    |> Map.ofList



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



parseArgsMap<Arguments> [[| "a b"; "c" |]]

|> _equal (

    [[ nameof Arguments.Paths, [[ Arguments.Paths [[ "a b"; "c" ]] ]] ]]

    |> Map.ofList

)



╭─[ 60.74ms - stdout ]─────────────────────────────────────────────────────────╮

│ FSharpMap<String,FSharpList<Arguments>>                                      │

│       - Key: Paths                                                           │

│         Value: FSharpList<Arguments>                                         │

│           - paths: [ a b, c ]                                                │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯

[NbConvertApp] Converting notebook Runtime.dib.ipynb to html

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

  validate(nb)

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:72: UserWarning: IPython3 lexer unavailable, falling back on Python 3

  return _pygments_highlight(

[NbConvertApp] Writing 337189 bytes to Runtime.dib.html



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ # Toml (Polyglot)                                                            │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../nbs/Testing.dib



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A

spNetCore.Html.Abstractions.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.Formatting.dll"

open System

open System.IO

open System.Text

open Microsoft.DotNet.Interactive.Formatting



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

open type Microsoft.DotNet.Interactive.Kernel



── fsharp - import ─────────────────────────────────────────────────────────────

#r @"../../../../../../../.nuget/packages/expecto/10.1.0/lib/net6.0/Expecto.dll"



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



Formatter.ListExpansionLimit <- 100



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



type AssertExceptionFormatter (ex) =

    member _.Text =

        ex.ToString()

            .Replace("32m", "<span style=\"color: green;\">")

            .Replace("36m", "</span>")

            .Replace("31m", "<span style=\"color: red;\">")

            .Replace("\n", "<br/>\n")





Formatter.Register<AssertExceptionFormatter> ((fun (x : 

AssertExceptionFormatter) -> x.Text), "text/html")



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __expect fn log expected actual =

    if log then printfn $"{actual.ToDisplayString ()}"

    try

        "Testing.__expect" |> fn actual expected

    with :? Expecto.AssertException as ex ->

        AssertExceptionFormatter(ex).Display () |> ignore

        failwith (ex.GetType().FullName)



let inline __contains log expected actual = __expect Expecto.Expect.contains log

expected actual

let inline _contains expected actual = __contains true expected actual



let inline __equal log expected actual = __expect Expecto.Expect.equal log 

expected actual

let inline _equal expected actual = __equal true expected actual



let inline __isGreaterThan log expected actual = __expect 

Expecto.Expect.isGreaterThan log expected actual

let ...



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __isBetween log a b actual =

    let inline isBetween actual (a, b) _ =

        __isGreaterThanOrEqual log a actual

        __isLessThanOrEqual log b actual

    __expect isBetween log (a, b) actual

let inline _isBetween a b actual = __isBetween true a b actual



── fsharp ──────────────────────────────────────────────────────────────────────

#r @"../../../../../../../.nuget/packages/tomlyn/0.16.2/lib/net6.0/Tomlyn.dll"



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../nbs/Common.fs



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Common =



    let nl = System.Environment.NewLine

    let q = @""""



    let inline cons head tail = head :: tail



    module String =

        let inline contains (value : string) (input : string) =

            input.Contains value



        let inline endsWith (value : string) (input : string) =

            input.EndsWith value



        let inline padLeft totalWidth paddingChar (input : string) =

            input.PadLeft (totalWidth, paddingChar)



        let inline replace (oldValue : string) (newValue : string) (input : 

string) =

            input.Replace (oldValue, newValue)



        let inline split separator (input : string) =

            input.Split separator



        let inline spli...



── fsharp ──────────────────────────────────────────────────────────────────────

open Common



── fsharp ──────────────────────────────────────────────────────────────────────

let inline (/./) (table: Tomlyn.Model.TomlTable) (key: string) : 

Tomlyn.Model.TomlTable =

    table.[[key]] :?> Tomlyn.Model.TomlTable



let inline (/../) (table: Tomlyn.Model.TomlTable) (key: string) : 'T seq =

    table.[[key]] :?> Tomlyn.Model.TomlArray |> Seq.cast<'T>



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let tomlContent =

    """

[[extension]]

paths = [["/a", "/b"]]

"""



let toml = Tomlyn.Toml.Parse tomlContent

let tomlModel = Tomlyn.Toml.ToModel toml



let paths : string seq = tomlModel /./ "extension" /../ "paths"



paths

|> Seq.toList

|> _equal [[ "/a"; "/b" ]]



╭─[ 107.59ms - stdout ]────────────────────────────────────────────────────────╮

│ [ /a, /b ]                                                                   │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯

[NbConvertApp] Converting notebook Toml.dib.ipynb to html

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

  validate(nb)

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:72: UserWarning: IPython3 lexer unavailable, falling back on Python 3

  return _pygments_highlight(

[NbConvertApp] Writing 276876 bytes to Toml.dib.html

00:00:00 #1 [Debug] writeDibCode / output: Fs / path: FileSystem.dib

00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Common.dib

00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Crypto.dib

00:00:00 #1 [Debug] writeDibCode / output: Fs / path: CommonFSharp.dib

00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Networking.dib

00:00:00 #1 [Debug] writeDibCode / output: Fs / path: AsyncSeq.dib

00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Threading.dib

00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Async.dib

00:00:00 #9 [Debug] parseDibCode / output: Fs / file: Async.dib

00:00:00 #4 [Debug] parseDibCode / output: Fs / file: CommonFSharp.dib

00:00:00 #8 [Debug] parseDibCode / output: Fs / file: Crypto.dib

00:00:00 #3 [Debug] parseDibCode / output: Fs / file: Networking.dib

00:00:00 #5 [Debug] parseDibCode / output: Fs / file: Common.dib

00:00:00 #7 [Debug] parseDibCode / output: Fs / file: FileSystem.dib

00:00:00 #3 [Debug] parseDibCode / output: Fs / file: Threading.dib

00:00:00 #6 [Debug] parseDibCode / output: Fs / file: AsyncSeq.dib

00:00:00 #10 [Debug] writeDibCode / output: Fs / path: Toml.dib

00:00:00 #10 [Debug] writeDibCode / output: Fs / path: Runtime.dib

00:00:00 #11 [Debug] parseDibCode / output: Fs / file: Toml.dib

00:00:00 #12 [Debug] parseDibCode / output: Fs / file: Runtime.dib

In [ ]:
{ . "$ScriptDir/../apps/plot/build.ps1" } | Invoke-Block
    Finished release [optimized] target(s) in 0.06s

In [ ]:
{ . "$ScriptDir/../apps/dir-tree-html/build.ps1" } | Invoke-Block

── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ # DirTreeHtml (Polyglot)                                                     │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../nbs/Testing.dib



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A

spNetCore.Html.Abstractions.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.Formatting.dll"

open System

open System.IO

open System.Text

open Microsoft.DotNet.Interactive.Formatting



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

open type Microsoft.DotNet.Interactive.Kernel



── fsharp - import ─────────────────────────────────────────────────────────────

#r @"../../../../../../../.nuget/packages/expecto/10.1.0/lib/net6.0/Expecto.dll"



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



Formatter.ListExpansionLimit <- 100



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



type AssertExceptionFormatter (ex) =

    member _.Text =

        ex.ToString()

            .Replace("32m", "<span style=\"color: green;\">")

            .Replace("36m", "</span>")

            .Replace("31m", "<span style=\"color: red;\">")

            .Replace("\n", "<br/>\n")





Formatter.Register<AssertExceptionFormatter> ((fun (x : 

AssertExceptionFormatter) -> x.Text), "text/html")



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __expect fn log expected actual =

    if log then printfn $"{actual.ToDisplayString ()}"

    try

        "Testing.__expect" |> fn actual expected

    with :? Expecto.AssertException as ex ->

        AssertExceptionFormatter(ex).Display () |> ignore

        failwith (ex.GetType().FullName)



let inline __contains log expected actual = __expect Expecto.Expect.contains log

expected actual

let inline _contains expected actual = __contains true expected actual



let inline __equal log expected actual = __expect Expecto.Expect.equal log 

expected actual

let inline _equal expected actual = __equal true expected actual



let inline __isGreaterThan log expected actual = __expect 

Expecto.Expect.isGreaterThan log expected actual

let ...



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __isBetween log a b actual =

    let inline isBetween actual (a, b) _ =

        __isGreaterThanOrEqual log a actual

        __isLessThanOrEqual log b actual

    __expect isBetween log (a, b) actual

let inline _isBetween a b actual = __isBetween true a b actual



── fsharp ──────────────────────────────────────────────────────────────────────

#r 

@"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan

dard2.1/FSharp.Control.AsyncSeq.dll"

#r 

@"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.

0/System.Reactive.dll"

#r 

@"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/

netstandard2.0/System.Reactive.Linq.dll"

#r 

@"../../../../../../../.nuget/packages/argu/6.1.1/lib/netstandard2.0/Argu.dll"

#r 

@"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li

b/net6.0/System.CommandLine.dll"

#r 

@"../../../../../../../.nuget/packages/falco.markup/1.0.2/lib/netstandard2.0/Fal

co.Markup.dll"



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../nbs/Common.fs

#!import ../nbs/CommonFSharp.fs

#!import ../nbs/Async.fs

#!import ../nbs/AsyncSeq.fs

#!import ../nbs/Networking.fs

#!import ../nbs/Runtime.fs

#!import ../nbs/FileSystem.fs



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Common =



    let nl = System.Environment.NewLine

    let q = @""""



    let inline cons head tail = head :: tail



    module String =

        let inline contains (value : string) (input : string) =

            input.Contains value



        let inline endsWith (value : string) (input : string) =

            input.EndsWith value



        let inline padLeft totalWidth paddingChar (input : string) =

            input.PadLeft (totalWidth, paddingChar)



        let inline replace (oldValue : string) (newValue : string) (input : 

string) =

            input.Replace (oldValue, newValue)



        let inline split separator (input : string) =

            input.Split separator



        let inline spli...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module CommonFSharp =



    open Common



    /// ## getUnionCaseName



    let inline getUnionCaseName<'T> (x: 'T) =

        match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with

        | case, _ -> case.Name





── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Async =



    open Common



    /// ## choice



    let inline choice asyncs = async {

        let e = Event<_> ()

        use cts = new System.Threading.CancellationTokenSource ()

        let fn =

            asyncs

            |> Seq.map (fun a -> async {

                let! x = a

                e.Trigger x

            })

            |> Async.Parallel

            |> Async.Ignore

        Async.Start (fn, cts.Token)

        let! result = Async.AwaitEvent e.Publish

        cts.Cancel ()

        return result

    }



    /// ## map



    let inline map fn a = async {

        let! x = a

        return fn x

    }



    /// ## catch



    let inline catch a =

        a

        |> Async.Catch

        ...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module AsyncSeq =



    open Common



    /// ## subscribeEvent



    let inline subscribeEvent (event: IEvent<'H, 'A>) map =

        let observable = System.Reactive.Linq.Observable.FromEventPattern<'H, 

'A>(event.AddHandler, event.RemoveHandler)

        System.Reactive.Linq.Observable.Select (observable, fun event -> map 

event.EventArgs)

        |> FSharp.Control.AsyncSeq.ofObservableBuffered



    let subscribeToken (token : System.Threading.CancellationToken) =

        let tcs = new System.Threading.Tasks.TaskCompletionSource ()

        System.Action tcs.SetResult |> token.Register |> ignore

        let start = System.DateTime.Now.Ticks

        FSharp.Control.AsyncSeq.unfoldAsync

            (fun (...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Networking =



    open Common



    /// ## testPortOpen



    let inline testPortOpen port = async {

        let! ct = Async.CancellationToken

        use client = new System.Net.Sockets.TcpClient ()

        try

            do! client.ConnectAsync ("127.0.0.1", port, ct) |> 

Async.awaitValueTaskUnit

            return true

        with ex ->

            trace Verbose (fun () -> $"testPortOpen / ex: {ex |> 

printException}") getLocals

            return false

    }



    let inline testPortOpenTimeout timeout port = async {

        let! result =

            testPortOpen port

            |> Async.runWithTimeoutAsync timeout

        return

            match result with

            | None -> false

 ...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Runtime =



    open Common



    /// ## isWindows



    let isWindows =

        fun () ->

            System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform

                System.Runtime.InteropServices.OSPlatform.Windows

        |> memoize



    /// ## getExecutableSuffix



    let inline getExecutableSuffix () =

        if isWindows ()

        then ".exe"

        else ""



    /// ## splitCommand



    type private CommandParseStep =

        | Start

        | Path of quoted: bool

        | Arguments



    let splitCommand (command: string) =

        let rec loop (path, args) chars step =

            match chars, step with

            | ('"' | '\'') :: tail, _ when path = "" -> loop (pat...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module FileSystem =



    open Common



    /// ## Operators



    module Operators =

        let inline (</>) a b =

            System.IO.Path.Combine (a, b)



    open Operators



    /// ## createTempDirectoryName



    let inline createTempDirectoryName () =

        let root = System.Reflection.Assembly.GetEntryAssembly().GetName().Name



        System.IO.Path.GetTempPath ()

        </> $"!{root}"

        </> string (newGuidFromDateTime System.DateTime.Now)



    /// ## createTempDirectory



    let inline createTempDirectory () =

        let tempFolder = createTempDirectoryName ()

        let result = System.IO.Directory.CreateDirectory tempFolder



        if not result.Exists then

            let ge...



── fsharp ──────────────────────────────────────────────────────────────────────

open FileSystem.Operators

open Falco.Markup



── fsharp ──────────────────────────────────────────────────────────────────────

type FileSystemNode =

    | File of string * string * int64

    | Folder of string * string * FileSystemNode list

    | Root of FileSystemNode list



let rec scanDirectory isRoot (basePath : string) (path : string) =

    let relativePath = path.Replace(basePath, "").Replace("\\", 

"/").Replace("//", "/").TrimStart '/'



    let directories =

        path

        |> System.IO.Directory.GetDirectories

        |> Array.toList

        |> List.sort

        |> List.map (scanDirectory false basePath)

    let files =

        path

        |> System.IO.Directory.GetFiles

        |> Array.toList

        |> List.sort

        |> List.map (fun f -> File (System.IO.Path.GetFileName f, relativePath, 

System.IO.FileInfo(f).Length))



    let children = directories @ files

    if isRoot

    then Root children

    else Folder (path |> System.IO.Path.GetFileName, relativePath, children)



let rec generateHtml fsNode =

    let sizeLabel size =

        match float size with

        | size when size > 1024.0 * 1024.0 -> $"%.2f{size / 1024.0 / 1024.0} MB"

        | size when size > 1024.0 -> $"%.2f{size / 1024.0} KB"

        | size -> $"%.2f{size} B"

    match fsNode with

    | File (fileName, relativePath, size) ->

        Elem.div [[]] [[

            Text.raw "&#128196; "

            Elem.a [[

                Attr.href $"""{relativePath}{if relativePath = "" then "" else 

"/"}{fileName}"""

            ]] [[

                Text.raw fileName

            ]]

            Elem.span [[]] [[

                Text.raw $" ({size |> sizeLabel})"

            ]]

        ]]

    | Folder (folderName, relativePath, children) ->

        let size =

            let rec loop children =

                children

                |> List.sumBy (function

                    | File (_, _, size) -> size

                    | Folder (_, _, children)

                    | Root children -> loop children

                )

            loop children

        Elem.details [[

            Attr.open' "true"

        ]] [[

            Elem.summary [[]] [[

                Text.raw "&#128194; "

                Elem.a [[

                    Attr.href relativePath

                ]] [[

                    Text.raw folderName

                ]]

                Elem.span [[]] [[

                    Text.raw $" ({size |> sizeLabel})"

                ]]

            ]]

            Elem.div [[]] [[

                yield! children |> List.map generateHtml

            ]]

        ]]

    | Root children ->

        Elem.div [[]] [[

            yield! children |> List.map generateHtml

        ]]



let generateHtmlForFileSystem root =

    $"""<!DOCTYPE html>

<html lang="en">

<head>

  <meta charset="UTF-8">

  <style>

a {{

  font-size: 15px;

}}

span {{

  font-size: 11px;

}}

div > div {{

  padding-left: 10px;

}}

details > div {{

  padding-left: 19px;

}}

  </style>

</head>

<body>

  {root |> generateHtml |> renderNode}

</body>

</html>

"""



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let tempFolder = FileSystem.createTempDirectory ()

let rec loop d n = async {

    if n >= 0 then

        tempFolder </> d |> System.IO.Directory.CreateDirectory |> ignore

        do!

            n

            |> string

            |> String.replicate (n + 1)

            |> FileSystem.writeAllTextAsync (tempFolder </> d </> $"file.txt")

        do! loop $"{d}/{n}" (n - 1)

}

loop "_.root" 3

|> Async.RunSynchronously



let html =

    scanDirectory true tempFolder tempFolder

    |> generateHtmlForFileSystem



html

|> _equal """<!DOCTYPE html>

<html lang="en">

<head>

  <meta charset="UTF-8">

  <style>

a {

  font-size: 15px;

}

span {

  font-size: 11px;

}

div > div {

  padding-left: 10px;

}

details > div {

  padding-left: 19px;

}

  </style>

</head>

<body>

  <div><details open="true"><summary>&#128194; <a href="_.root">_.root</a><span>

(10.00 B)</span></summary><div><details open="true"><summary>&#128194; <a 

href="_.root/3">3</a><span> (6.00 B)</span></summary><div><details 

open="true"><summary>&#128194; <a href="_.root/3/2">2</a><span> (3.00 

B)</span></summary><div><details open="true"><summary>&#128194; <a 

href="_.root/3/2/1">1</a><span> (1.00 B)</span></summary><div><div>&#128196; <a 

href="_.root/3/2/1/file.txt">file.txt</a><span> (1.00 

B)</span></div></div></details><div>&#128196; <a 

href="_.root/3/2/file.txt">file.txt</a><span> (2.00 

B)</span></div></div></details><div>&#128196; <a 

href="_.root/3/file.txt">file.txt</a><span> (3.00 

B)</span></div></div></details><div>&#128196; <a 

href="_.root/file.txt">file.txt</a><span> (4.00 

B)</span></div></div></details></div>

</body>

</html>

"""



html |> Microsoft.DotNet.Interactive.Formatting.Html.ToHtmlContent



╭─[ 210.58ms - return value ]──────────────────────────────────────────────────╮

│ <!DOCTYPE html>                                                              │

│ <html lang="en">                                                             │

│ <head>                                                                       │

│   <meta charset="UTF-8">                                                     │

│   <style>                                                                    │

│ a {                                                                          │

│   font-size: 15px;                                                           │

│ }                                                                            │

│ span {                                                                       │

│   font-size: 11px;                                                           │

│ }                                                                            │

│ div > div {                                                                  │

│   padding-left: 10px;                                                        │

│ }                                                                            │

│ details > div {                                                              │

│   padding-left: 19px;                                                        │

│ }                                                                            │

│   </style>                                                                   │

│ </head>                                                                      │

│ <body>                                                                       │

│   <div><details open="true"><summary>&#128194; <a                            │

│ href="_.root">_.root</a><span> (10.00 B)</span></summary><div><details       │

│ open="true"><summary>&#128194; <a href="_.root/3">3</a><span> (6.00          │

│ B)</span></summary><div><details open="true"><summary>&#128194; <a           │

│ href="_.root/3/2">2</a><span> (3.00 B)</span></summary><div><details         │

│ open="true"><summary>&#128194; <a href="_.root/3/2/1">1</a><span> (1.00      │

│ B)</span></summary><div><div>&#128196; <a                                    │

│ href="_.root/3/2/1/file.txt">file.txt</a><span> (1.00                        │

│ B)</span></div></div></deta...                                               │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 223.92ms - stdout ]────────────────────────────────────────────────────────╮

│ <!DOCTYPE html>                                                              │

│ <html lang="en">                                                             │

│ <head>                                                                       │

│   <meta charset="UTF-8">                                                     │

│   <style>                                                                    │

│ a {                                                                          │

│   font-size: 15px;                                                           │

│ }                                                                            │

│ span {                                                                       │

│   font-size: 11px;                                                           │

│ }                                                                            │

│ div > div {                                                                  │

│   padding-left: 10px;                                                        │

│ }                                                                            │

│ details > div {                                                              │

│   padding-left: 19px;                                                        │

│ }                                                                            │

│   </style>                                                                   │

│ </head>                                                                      │

│ <body>                                                                       │

│   <div><details open="true"><summary>&#128194; <a                            │

│ href="_.root">_.root</a><span> (10.00 B)</span></summary><div><details       │

│ open="true"><summary>&#128194; <a href="_.root/3">3</a><span> (6.00          │

│ B)</span></summary><div><details open="true"><summary>&#128194; <a           │

│ href="_.root/3/2">2</a><span> (3.00 B)</span></summary><div><details         │

│ open="true"><summary>&#128194; <a href="_.root/3/2/1">1</a><span> (1.00      │

│ B)</span></summary><div><div>&#128196; <a                                    │

│ href="_.root/3/2/1/file.txt">file.txt</a><span> (1.00                        │

│ B)</span></div></div></details><div>&#128196; <a                             │

│ href="_.root/3/2/file.txt">file.txt</a><span> (2.00                          │

│ B)</span></div></div></details><div>&#128196; <a                             │

│ href="_.root/3/file.txt">file.txt</a><span> (3.00                            │

│ B)</span></div></div></details><div>&#128196; <a                             │

│ href="_.root/file.txt">file.txt</a><span> (4.00                              │

│ B)</span></div></div></details></div>                                        │

│ </body>                                                                      │

│ </html>                                                                      │

│                                                                              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## Arguments                                                                 │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

[[<RequireQualifiedAccess>]]

type Arguments =

    | [[<Argu.ArguAttributes.ExactlyOnce>]] Dir of string

    | [[<Argu.ArguAttributes.ExactlyOnce>]] Html of string



    interface Argu.IArgParserTemplate with

        member s.Usage =

            match s with

            | Dir _ -> nameof Dir

            | Html _ -> nameof Html



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## main                                                                      │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let main args =

    let argsMap = args |> Runtime.parseArgsMap<Arguments>



    let dir =

        match argsMap.[[nameof Arguments.Dir]] with

        | [[ Arguments.Dir dir ]] -> Some dir

        | _ -> None

        |> Option.get



    let htmlPath =

        match argsMap.[[nameof Arguments.Html]] with

        | [[ Arguments.Html html ]] -> Some html

        | _ -> None

        |> Option.get



    let fileSystem = scanDirectory true dir dir

    let html = generateHtmlForFileSystem fileSystem



    html |> FileSystem.writeAllTextAsync htmlPath

    |> Async.runWithTimeout 30000

    |> function

        | Some () -> 0

        | None -> 1



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let args =

    System.Environment.GetEnvironmentVariable "ARGS"

    |> Runtime.splitArgs

    |> Seq.toArray



match args with

| [[||]] -> 0

| args -> if main args = 0 then 0 else failwith "main failed"



╭─[ 62.19ms - return value ]───────────────────────────────────────────────────╮

│ <div class="dni-plaintext"><pre>0</pre></div><style>                         │

│ .dni-code-hint {                                                             │

│     font-style: italic;                                                      │

│     overflow: hidden;                                                        │

│     white-space: nowrap;                                                     │

│ }                                                                            │

│ .dni-treeview {                                                              │

│     white-space: nowrap;                                                     │

│ }                                                                            │

│ .dni-treeview td {                                                           │

│     vertical-align: top;                                                     │

│     text-align: start;                                                       │

│ }                                                                            │

│ details.dni-treeview {                                                       │

│     padding-left: 1em;                                                       │

│ }                                                                            │

│ table td {                                                                   │

│     text-align: start;                                                       │

│ }                                                                            │

│ table tr {                                                                   │

│     vertical-align: top;                                                     │

│     margin: 0em 0px;                                                         │

│ }                                                                            │

│ table tr td pre                                                              │

│ {                                                                            │

│     vertical-align: top !important;                                          │

│     margin: 0em 0px !important;                                              │

│ }                                                                            │

│ table th {                                                                   │

│     text-align: start;                                                       │

│ }                                                                            │

│ </style>                                                                     │

╰──────────────────────────────────────────────────────────────────────────────╯

[NbConvertApp] Converting notebook DirTreeHtml.dib.ipynb to html

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

  validate(nb)

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:72: UserWarning: IPython3 lexer unavailable, falling back on Python 3

  return _pygments_highlight(

[NbConvertApp] Writing 305478 bytes to DirTreeHtml.dib.html

00:00:00 #1 [Debug] writeDibCode / output: Fs / path: DirTreeHtml.dib

00:00:00 #2 [Debug] parseDibCode / output: Fs / file: DirTreeHtml.dib

00:00:00 #1 [Debug] persistCodeProject / packages: [Argu; Falco.Markup; FSharp.Control.AsyncSeq; ... ] / modules: [nbs/Common.fs; nbs/CommonFSharp.fs; nbs/Async.fs; ... ] / path: C:\home\git\polyglot\apps\dir-tree-html / name: DirTreeHtml / code.Length: 4407

00:00:00 #2 [Debug] buildProject / fullPath: C:\home\git\polyglot\apps\dir-tree-html\target\DirTreeHtml.fsproj

00:00:00 #3 [Debug] executeAsync / options: { Command = "dotnet publish -c release -o ../dist -r linux-x64"

  WorkingDirectory = Some "C:\home\git\polyglot\apps\dir-tree-html\target"

  CancellationToken = None

  OnLine = None }

00:00:00 #4 [Debug] > MSBuild version 17.8.0-preview-23418-03+0125fc9fb for .NET

00:00:01 #5 [Debug] >   Determining projects to restore...

00:00:01 #6 [Debug] >   Restored C:\home\git\polyglot\apps\dir-tree-html\target\DirTreeHtml.fsproj (in 354 ms).

00:00:01 #7 [Debug] > C:\Program Files\dotnet\sdk\8.0.100-rc.1.23463.5\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(311,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\apps\dir-tree-html\target\DirTreeHtml.fsproj]

00:00:07 #8 [Debug] >   DirTreeHtml -> C:\home\git\polyglot\apps\dir-tree-html\target\bin\release\net8.0\linux-x64\DirTreeHtml.dll

00:00:08 #9 [Debug] >   DirTreeHtml -> C:\home\git\polyglot\apps\dir-tree-html\dist\

00:00:08 #10 [Debug] executeAsync / exitCode: 0 / output.Length: 665

00:00:08 #11 [Debug] executeAsync / options: { Command = "dotnet publish -c release -o ../dist -r win-x64"

  WorkingDirectory = Some "C:\home\git\polyglot\apps\dir-tree-html\target"

  CancellationToken = None

  OnLine = None }

00:00:08 #12 [Debug] > MSBuild version 17.8.0-preview-23418-03+0125fc9fb for .NET

00:00:09 #13 [Debug] >   Determining projects to restore...

00:00:10 #14 [Debug] >   Restored C:\home\git\polyglot\apps\dir-tree-html\target\DirTreeHtml.fsproj (in 406 ms).

00:00:10 #15 [Debug] > C:\Program Files\dotnet\sdk\8.0.100-rc.1.23463.5\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(311,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\apps\dir-tree-html\target\DirTreeHtml.fsproj]

00:00:15 #16 [Debug] >   DirTreeHtml -> C:\home\git\polyglot\apps\dir-tree-html\target\bin\release\net8.0\win-x64\DirTreeHtml.dll

00:00:19 #17 [Debug] >   DirTreeHtml -> C:\home\git\polyglot\apps\dir-tree-html\dist\

00:00:19 #18 [Debug] executeAsync / exitCode: 0 / output.Length: 663

In [ ]:
{ . "$ScriptDir/../apps/spiral/build.ps1" } | Invoke-Block

── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ # Supervisor (Polyglot)                                                      │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../nbs/Testing.dib



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A

spNetCore.Html.Abstractions.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.Formatting.dll"

open System

open System.IO

open System.Text

open Microsoft.DotNet.Interactive.Formatting



── fsharp - import ─────────────────────────────────────────────────────────────

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.FSharp.dll"

open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers

#r 

"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

otNet.Interactive.dll"

open type Microsoft.DotNet.Interactive.Kernel



── fsharp - import ─────────────────────────────────────────────────────────────

#r @"../../../../../../../.nuget/packages/expecto/10.1.0/lib/net6.0/Expecto.dll"



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



Formatter.ListExpansionLimit <- 100



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



type AssertExceptionFormatter (ex) =

    member _.Text =

        ex.ToString()

            .Replace("32m", "<span style=\"color: green;\">")

            .Replace("36m", "</span>")

            .Replace("31m", "<span style=\"color: red;\">")

            .Replace("\n", "<br/>\n")





Formatter.Register<AssertExceptionFormatter> ((fun (x : 

AssertExceptionFormatter) -> x.Text), "text/html")



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __expect fn log expected actual =

    if log then printfn $"{actual.ToDisplayString ()}"

    try

        "Testing.__expect" |> fn actual expected

    with :? Expecto.AssertException as ex ->

        AssertExceptionFormatter(ex).Display () |> ignore

        failwith (ex.GetType().FullName)



let inline __contains log expected actual = __expect Expecto.Expect.contains log

expected actual

let inline _contains expected actual = __contains true expected actual



let inline __equal log expected actual = __expect Expecto.Expect.equal log 

expected actual

let inline _equal expected actual = __equal true expected actual



let inline __isGreaterThan log expected actual = __expect 

Expecto.Expect.isGreaterThan log expected actual

let ...



── fsharp - import ─────────────────────────────────────────────────────────────

//// test



let inline __isBetween log a b actual =

    let inline isBetween actual (a, b) _ =

        __isGreaterThanOrEqual log a actual

        __isLessThanOrEqual log b actual

    __expect isBetween log (a, b) actual

let inline _isBetween a b actual = __isBetween true a b actual



── fsharp ──────────────────────────────────────────────────────────────────────

#r 

@"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan

dard2.1/FSharp.Control.AsyncSeq.dll"

#r 

@"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.

0/System.Reactive.dll"

#r 

@"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/

netstandard2.0/System.Reactive.Linq.dll"

#r 

@"../../../../../../../.nuget/packages/argu/6.1.1/lib/netstandard2.0/Argu.dll"

#r 

@"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li

b/net6.0/System.CommandLine.dll"

#r 

@"../../../../../../../.nuget/packages/microsoft.aspnetcore.http.connections.com

mon/7.0.0/lib/net7.0/Microsoft.AspNetCore.Http.Connections.Common.dll"

#r 

@"../../../../../../../.nuget/packages/microsoft.aspnetcore.http.connections.cli

ent/7.0.0/lib/net7.0/Microsoft.AspNetCore.Http.Connections.Client.dll"

#r 

@"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.common/7.0.0

/lib/net7.0/Microsoft.AspNetCore.SignalR.Common.dll"

#r 

@"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.client/7.0.0

/lib/net7.0/Microsoft.AspNetCore.SignalR.Client.dll"

#r 

@"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.client.core/

7.0.0/lib/net7.0/Microsoft.AspNetCore.SignalR.Client.Core.dll"

#r 

@"../../../../../../../.nuget/packages/fsharp.json/0.4.1/lib/netstandard2.0/FSha

rp.Json.dll"



── fsharp ──────────────────────────────────────────────────────────────────────

#!import ../nbs/Common.fs

#!import ../nbs/CommonFSharp.fs

#!import ../nbs/Threading.fs

#!import ../nbs/Async.fs

#!import ../nbs/AsyncSeq.fs

#!import ../nbs/Networking.fs

#!import ../nbs/Runtime.fs

#!import ../nbs/FileSystem.fs



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Common =



    let nl = System.Environment.NewLine

    let q = @""""



    let inline cons head tail = head :: tail



    module String =

        let inline contains (value : string) (input : string) =

            input.Contains value



        let inline endsWith (value : string) (input : string) =

            input.EndsWith value



        let inline padLeft totalWidth paddingChar (input : string) =

            input.PadLeft (totalWidth, paddingChar)



        let inline replace (oldValue : string) (newValue : string) (input : 

string) =

            input.Replace (oldValue, newValue)



        let inline split separator (input : string) =

            input.Split separator



        let inline spli...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module CommonFSharp =



    open Common



    /// ## getUnionCaseName



    let inline getUnionCaseName<'T> (x: 'T) =

        match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with

        | case, _ -> case.Name





── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Threading =



    open Common



    /// ## newDisposableToken



    let inline newDisposableToken (mergeToken: 

System.Threading.CancellationToken option) =

        let cts = new System.Threading.CancellationTokenSource ()

        let cts =

            match mergeToken with

            | None -> cts

            | Some mergeToken ->

                System.Threading.CancellationTokenSource.CreateLinkedTokenSource

[[| cts.Token; mergeToken |]]

        let disposable = newDisposable cts.Cancel

        cts.Token, disposable





── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Async =



    open Common



    /// ## choice



    let inline choice asyncs = async {

        let e = Event<_> ()

        use cts = new System.Threading.CancellationTokenSource ()

        let fn =

            asyncs

            |> Seq.map (fun a -> async {

                let! x = a

                e.Trigger x

            })

            |> Async.Parallel

            |> Async.Ignore

        Async.Start (fn, cts.Token)

        let! result = Async.AwaitEvent e.Publish

        cts.Cancel ()

        return result

    }



    /// ## map



    let inline map fn a = async {

        let! x = a

        return fn x

    }



    /// ## catch



    let inline catch a =

        a

        |> Async.Catch

        ...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module AsyncSeq =



    open Common



    /// ## subscribeEvent



    let inline subscribeEvent (event: IEvent<'H, 'A>) map =

        let observable = System.Reactive.Linq.Observable.FromEventPattern<'H, 

'A>(event.AddHandler, event.RemoveHandler)

        System.Reactive.Linq.Observable.Select (observable, fun event -> map 

event.EventArgs)

        |> FSharp.Control.AsyncSeq.ofObservableBuffered



    let subscribeToken (token : System.Threading.CancellationToken) =

        let tcs = new System.Threading.Tasks.TaskCompletionSource ()

        System.Action tcs.SetResult |> token.Register |> ignore

        let start = System.DateTime.Now.Ticks

        FSharp.Control.AsyncSeq.unfoldAsync

            (fun (...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Networking =



    open Common



    /// ## testPortOpen



    let inline testPortOpen port = async {

        let! ct = Async.CancellationToken

        use client = new System.Net.Sockets.TcpClient ()

        try

            do! client.ConnectAsync ("127.0.0.1", port, ct) |> 

Async.awaitValueTaskUnit

            return true

        with ex ->

            trace Verbose (fun () -> $"testPortOpen / ex: {ex |> 

printException}") getLocals

            return false

    }



    let inline testPortOpenTimeout timeout port = async {

        let! result =

            testPortOpen port

            |> Async.runWithTimeoutAsync timeout

        return

            match result with

            | None -> false

 ...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module Runtime =



    open Common



    /// ## isWindows



    let isWindows =

        fun () ->

            System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform

                System.Runtime.InteropServices.OSPlatform.Windows

        |> memoize



    /// ## getExecutableSuffix



    let inline getExecutableSuffix () =

        if isWindows ()

        then ".exe"

        else ""



    /// ## splitCommand



    type private CommandParseStep =

        | Start

        | Path of quoted: bool

        | Arguments



    let splitCommand (command: string) =

        let rec loop (path, args) chars step =

            match chars, step with

            | ('"' | '\'') :: tail, _ when path = "" -> loop (pat...



── fsharp - import ─────────────────────────────────────────────────────────────

#if !INTERACTIVE

namespace Polyglot

#endif



module FileSystem =



    open Common



    /// ## Operators



    module Operators =

        let inline (</>) a b =

            System.IO.Path.Combine (a, b)



    open Operators



    /// ## createTempDirectoryName



    let inline createTempDirectoryName () =

        let root = System.Reflection.Assembly.GetEntryAssembly().GetName().Name



        System.IO.Path.GetTempPath ()

        </> $"!{root}"

        </> string (newGuidFromDateTime System.DateTime.Now)



    /// ## createTempDirectory



    let inline createTempDirectory () =

        let tempFolder = createTempDirectoryName ()

        let result = System.IO.Directory.CreateDirectory tempFolder



        if not result.Exists then

            let ge...



── fsharp ──────────────────────────────────────────────────────────────────────

open Common

open FileSystem.Operators

open Microsoft.AspNetCore.SignalR.Client



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## sendJson                                                                  │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline sendJson (port : int) (json : string) = async {

    let! portOpen = Networking.testPortOpen port

    if portOpen then

        try

            let connection = 

HubConnectionBuilder().WithUrl($"http://127.0.0.1:{port}").Build()

            do! connection.StartAsync () |> Async.AwaitTask

            let! result = connection.InvokeAsync<string>("ClientToServerMsg", 

json) |> Async.AwaitTask

            do! connection.StopAsync () |> Async.AwaitTask

            trace Debug (fun () -> $"sendJson / port: {port} / json: {json} / 

result.Length: {result |> Option.ofObj |> Option.map String.length}") getLocals

            return Some result

        with ex ->

            trace Critical (fun () -> $"sendJson / port: {port} / json: {json} /

ex: {ex |> printException}") getLocals

            return None

    else

        trace Debug (fun () -> "sendJson / error: port not open") getLocals

        return None

}



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## sendObj                                                                   │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline sendObj port obj =

    obj

    |> System.Text.Json.JsonSerializer.Serialize

    |> sendJson port



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## awaitCompiler                                                             │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

type VSCPos = {| line : int; character : int |}

type VSCRange = VSCPos * VSCPos

type RString = VSCRange * string

type TracedError = {| trace : string list; message : string |}

type ClientErrorsRes =

    | FatalError of string

    | TracedError of TracedError

    | PackageErrors of {| uri : string; errors : RString list |}

    | TokenizerErrors of {| uri : string; errors : RString list |}

    | ParserErrors of {| uri : string; errors : RString list |}

    | TypeErrors of {| uri : string; errors : RString list |}



── fsharp ──────────────────────────────────────────────────────────────────────

let inline awaitCompiler port cancellationToken = async {

    let! ct =

        cancellationToken

        |> Option.defaultValue System.Threading.CancellationToken.None

        |> Async.mergeCancellationTokenWithDefaultAsync

    

    let cts = new System.Threading.CancellationTokenSource ()



    let compiler = MailboxProcessor.Start (fun inbox -> async {

        let! availablePort = Networking.getAvailablePort (Some 60) port

        if availablePort <> port then

            inbox.Post port

        else

            let repositoryRoot = FileSystem.getSourceDirectory () |> 

FileSystem.findParent ".paket" false



            let compilerPath =

                repositoryRoot </> "deps/The-Spiral-Language/The Spiral Language

2/artifacts/bin/The Spiral Language 2/release"

                |> System.IO.Path.GetFullPath



            let dllPath = compilerPath </> "Spiral.dll"



            let! exitCode, result =

                Runtime.executeWithOptionsAsync

                    {

                        Command = $@"dotnet ""{dllPath}"" port={availablePort}"

                        CancellationToken = Some ct

                        WorkingDirectory = None

                        OnLine = Some <| fun { Line = line } -> async {

                            if line |> String.contains $"Server bound to: 

http://localhost:{availablePort}" then

                                do! Networking.waitForPortAccess (Some 500) true

availablePort |> Async.Ignore



                                let rec loop retry = async {

                                    let getLocals () = $"port: {availablePort} /

retry: {retry} / {getLocals ()}"

                                    try

                                        let pingObj = {| Ping = true |}

                                        let! pingResult = pingObj |> sendObj 

availablePort

                                        trace Verbose (fun () -> $"awaitCompiler

/ Ping / result: {pingResult}") getLocals

                                    with ex ->

                                        trace Verbose (fun () -> $"awaitCompiler

/ Ping / ex: {ex |> printException}") getLocals

                                        do! Async.Sleep 10

                                        do! loop (retry + 1)

                                }

                                do! loop 0

                                inbox.Post availablePort

                        }

                    }

            trace Debug (fun () -> $"awaitCompiler / exitCode: {exitCode} / 

result: {result}") getLocals

            cts.Cancel ()

    }, ct)



    let! serverPort = compiler.Receive ()



    let connection = 

HubConnectionBuilder().WithUrl($"http://127.0.0.1:{serverPort}").Build ()

    do! connection.StartAsync () |> Async.AwaitTask



    let event = Event<_> ()

    let disposable = connection.On<string> ("ServerToClientMsg", event.Trigger)

    let stream =

        FSharp.Control.AsyncSeq.unfoldAsync

            (fun () -> async {

                let! msg = event.Publish |> Async.AwaitEvent

                return Some (msg |> 

FSharp.Json.Json.deserialize<ClientErrorsRes>, ())

            })

            ()



    let disposable =

        newDisposable (fun () ->

            disposable.Dispose ()

            connection.StopAsync () |> Async.AwaitTask |> Async.StartImmediate

        )



    return

        serverPort,

        stream,

        cts.Token,

        disposable

}



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## getFileUri                                                                │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline getFileUri path =

    $"file:///{path |> String.trimStart [[| '/' |]]}"



── fsharp ──────────────────────────────────────────────────────────────────────

let inline getFilePathFromUri uri =

    match System.Uri.TryCreate (uri, System.UriKind.Absolute) with

    | true, uri -> uri.AbsolutePath |> System.IO.Path.GetFullPath

    | _ -> failwith "invalid uri"



── fsharp ──────────────────────────────────────────────────────────────────────

let inline getCompilerPort () =

    13805



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## buildFile                                                                 │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline buildFile timeout port cancellationToken path = async {

    let fullPath = path |> System.IO.Path.GetFullPath

    let fileDir = fullPath |> System.IO.Path.GetDirectoryName

    let fileName = fullPath |> System.IO.Path.GetFileNameWithoutExtension

    let! code = fullPath |> FileSystem.readAllTextAsync



    let eventFilter = function

        | FileSystem.FileSystemChange.Changed (path, _) when path = 

$"{fileName}.fsx" -> true

        | _ -> false



    let stream, disposable = fileDir |> FileSystem.watchDirectory eventFilter

    use _ = disposable



    let token, disposable = Threading.newDisposableToken cancellationToken

    use _ = disposable



    let! serverPort, errors, ct, disposable = awaitCompiler port (Some token)

    use _ = disposable



    let fsxContentSeq =

        stream

        |> FSharp.Control.AsyncSeq.choose (function

            | _, (FileSystem.FileSystemChange.Changed (path, Some content) as 

event)

                when event |> eventFilter

                ->

                Some content

            | _ -> None

        )

        |> FSharp.Control.AsyncSeq.map (fun content ->

            Some (content |> String.replace "\r\n" "\n"), None

        )



    let inline printErrorData (data : {| uri : string; errors : RString list |})

=

        let fileName = data.uri |> System.IO.Path.GetFileName

        let errors =

            data.errors

            |> List.map snd

            |> String.concat "\n"

        $"{fileName}:\n{errors}"



    let errorsSeq =

        errors

        |> FSharp.Control.AsyncSeq.choose (fun error ->

            match error with

            | FatalError message ->

                Some (message, error)

            | TracedError data ->

                Some (data.message, error)

            | PackageErrors data when data.errors |> List.isEmpty |> not ->

                Some (data |> printErrorData, error)

            | TokenizerErrors data when data.errors |> List.isEmpty |> not ->

                Some (data |> printErrorData, error)

            | ParserErrors data when data.errors |> List.isEmpty |> not ->

                Some (data |> printErrorData, error)

            | TypeErrors data when data.errors |> List.isEmpty |> not ->

                Some (data |> printErrorData, error)

            | _ -> None

        )

        |> FSharp.Control.AsyncSeq.map (fun (message, error) ->

            None, Some (message, error)

        )

    

    let timerSeq =

        1000

        |> FSharp.Control.AsyncSeq.intervalMs

        |> FSharp.Control.AsyncSeq.map (fun _ -> None, None)



    let outputSeq =

        [[ fsxContentSeq; errorsSeq; timerSeq ]]

        |> FSharp.Control.AsyncSeq.mergeAll



    let! outputChild =

        ((None, [[]], 0), outputSeq)

        ||> FSharp.Control.AsyncSeq.scan (

            fun (fsxContentResult, errors, typeErrorCount) (fsxContent, error) 

->

                match fsxContent, error with

                | Some fsxContent, None -> Some fsxContent, errors, 

typeErrorCount

                | None, Some (_, FatalError "File main has a type error 

somewhere in its path.") ->

                    fsxContentResult, errors, typeErrorCount + 1

                | None, Some error -> fsxContentResult, error :: errors, 

typeErrorCount

                | None, None when typeErrorCount >= 1 ->

                    fsxContentResult, errors, typeErrorCount + 1

                | _ -> fsxContentResult, errors, typeErrorCount

        )

        |> FSharp.Control.AsyncSeq.takeWhileInclusive (fun (fsxContent, errors, 

typeErrorCount) ->

            trace Debug (fun () -> $"buildFile / takeWhileInclusive / 

fsxContent: {fsxContent} / errors: {errors} / typeErrorCount: {typeErrorCount}")

getLocals

            match fsxContent, errors with

            | None, [[]] when typeErrorCount > 2 -> false

            | None, [[]] -> true

            | _ -> false

        )

        |> FSharp.Control.AsyncSeq.tryLast

        |> Async.withCancellationToken ct

        |> Async.catch

        |> Async.runWithTimeoutAsync timeout

        |> Async.StartChild



    let fileOpenObj = {| FileOpen = {| uri = fullPath |> getFileUri; spiText = 

code |} |}

    let! _fileOpenResult = fileOpenObj |> sendObj serverPort



    do! Async.Sleep 30



    let buildFileObj = {| BuildFile = {| uri = fullPath |> getFileUri; backend =

"Fsharp" |} |}

    let! _buildFileResult = buildFileObj |> sendObj serverPort



    return!

        outputChild

        |> Async.map (function

            | Some (Ok (Some (message, errors, _))) -> message, errors |> 

List.distinct |> List.rev

            | Some (Error ex) ->

                trace Critical (fun () -> $"buildFile / error: {ex |> 

printException}") getLocals

                None, [[]]

            | _ -> None, [[]]

        )

}



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## persistCode                                                               │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline persistCode code = async {

    let tempDir = FileSystem.createTempDirectory ()



    let mainPath = tempDir </> "main.spi"

    do! code |> FileSystem.writeAllTextAsync mainPath



    let repositoryRoot = FileSystem.getSourceDirectory () |> 

FileSystem.findParent ".paket" false



    let spiprojPath = tempDir </> "package.spiproj"

    let spiprojCode =

        $"""packageDir: {repositoryRoot </> "lib"}

packages:

    |core-

    spiral-

modules:

    main

"""

    do! spiprojCode |> FileSystem.writeAllTextAsync spiprojPath



    let disposable = newDisposable (fun () ->

        ()

        // tempDir |> FileSystem.deleteDirectoryAsync |> Async.Ignore |> 

Async.RunSynchronously

    )



    return mainPath, disposable

}



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## buildCode                                                                 │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline buildCode timeout cancellationToken code = async {

    let! mainPath, disposable = persistCode code

    use _ = disposable

    let port = getCompilerPort ()

    return! mainPath |> buildFile timeout port cancellationToken

}



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let buildCode timeout cancellationToken code = buildCode timeout 

cancellationToken code



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"""inl app () =

    console.write_line "text"

    1i32



inl main () =

    app

    |> dyn

    |> ignore

"""

|> buildCode 15000 None

|> Async.runWithTimeout 15000

|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)

|> _equal (

    Some (

        Some """let rec closure0 () () : int32 =

    let v0 : string = "text"

    System.Console.WriteLine v0

    1

let v0 : (unit -> int32) = closure0()

()

""",

        [[]]

    )

)



╭─[ 3.05s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60                        │

│ 00:00:00 #2 [Debug] executeAsync / options: { Command =                      │

│    "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral         │

│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll"           │

│ port=13805"                                                                  │

│   WorkingDirectory = None                                                    │

│   CancellationToken = Some System.Threading.CancellationToken                │

│   OnLine = Some <fun:buildCode@3-983> }                                      │

│ 00:00:00 #3 [Debug] > pwd: C:\home\git\polyglot\apps\spiral                  │

│ 00:00:00 #4 [Debug] > dll_path:                                              │

│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │

│ 2\artifacts\bin\The Spiral Language 2\release                                │

│ 00:00:00 #5 [Debug] runWithTimeoutAsync / timeout: 500                       │

│ 00:00:00 #6 [Verbose] waitForPortAccess / port: 13805 / retry: 0             │

│ 00:00:01 #7 [Debug] sendJson / port: 13805 / json: {"Ping":true} /           │

│ result.Length:                                                               │

│ 00:00:01 #8 [Verbose] awaitCompiler / Ping / result: Some(null) / port:      │

│ 13805 / retry: 0                                                             │

│ 00:00:01 #9 [Debug] > Server bound to: http://localhost:13805                │

│ 00:00:01 #10 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:01 #11 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:01 #12 [Debug] sendJson / port: 13805 / json:                          │

│ {"FileOpen":{"spiText":"inl app () =\n    console.write_line                 │

│ \u0022text\u0022\n    1i32\n\ninl main () =\n    app\n    |\u003E dyn\n      │

│ |\u003E                                                                      │

│ ignore\n","uri":"file:///C:\\Users\\i574n\\AppData\\Local\\Temp\\!dotnet-rep │

│ l\\20231025-1405-0234-3447-34cb3b3d91a1\\main.spi"}} / result.Length:        │

│ 00:00:01 #13 [Debug] sendJson / port: 13805 / json:                          │

│ {"BuildFile":{"backend":"Fsharp","uri":"file:///C:\\Users\\i574n\\AppData\\L │

│ ocal\\Temp\\!dotnet-repl\\20231025-1405-0234-3447-34cb3b3d91a1\\main.spi"}}  │

│ / result.Length:                                                             │

│ 00:00:01 #14 [Debug] > Building                                              │

│ C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1405-0234-3447-34cb3 │

│ b3d91a1\main.spi                                                             │

│ 00:00:02 #15 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:02 #16 [Debug] buildFile / takeWhileInclusive / fsxContent: Some(let   │

│ rec closure0 () () : int32 =                                                 │

│     let v0 : string = "text"                                                 │

│     System.Console.WriteLine v0                                              │

│     1                                                                        │

│ let v0 : (unit -> int32) = closure0()                                        │

│ ()                                                                           │

│ ) / errors: [] / typeErrorCount: 0                                           │

│ 00:00:02 #17 [Debug] watchWithFilter / Disposing watch stream / filter:      │

│ FileName, LastWrite                                                          │

│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>>                 │

│       Value:       - FSharpOption<String>                                    │

│           Value: let rec closure0 () () : int32 =                            │

│     let v0 : string = "text"                                                 │

│     System.Console.WriteLine v0                                              │

│     1                                                                        │

│ let v0 : (unit -> int32) = closure0()                                        │

│ ()                                                                           │

│                                                                              │

│       - [  ]                                                                 │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



""

|> buildCode 10000 None

|> Async.runWithTimeout 10000

|> _equal None



╭─[ 10.27s - stdout ]──────────────────────────────────────────────────────────╮

│ 00:00:03 #18 [Debug] runWithTimeoutAsync / timeout: 60                       │

│ 00:00:03 #19 [Debug] executeAsync / options: { Command =                     │

│    "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral         │

│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll"           │

│ port=13805"                                                                  │

│   WorkingDirectory = None                                                    │

│   CancellationToken = Some System.Threading.CancellationToken                │

│   OnLine = Some <fun:buildCode@3-983> }                                      │

│ 00:00:03 #20 [Debug] > pwd: C:\home\git\polyglot\apps\spiral                 │

│ 00:00:03 #21 [Debug] > dll_path:                                             │

│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │

│ 2\artifacts\bin\The Spiral Language 2\release                                │

│ 00:00:03 #22 [Debug] runWithTimeoutAsync / timeout: 500                      │

│ 00:00:03 #23 [Verbose] waitForPortAccess / port: 13805 / retry: 0            │

│ 00:00:04 #24 [Debug] sendJson / port: 13805 / json: {"Ping":true} /          │

│ result.Length:                                                               │

│ 00:00:04 #25 [Verbose] awaitCompiler / Ping / result: Some(null) / port:     │

│ 13805 / retry: 0                                                             │

│ 00:00:04 #26 [Debug] > Server bound to: http://localhost:13805               │

│ 00:00:04 #27 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:04 #28 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:04 #29 [Debug] sendJson / port: 13805 / json:                          │

│ {"FileOpen":{"spiText":"","uri":"file:///C:\\Users\\i574n\\AppData\\Local\\T │

│ emp\\!dotnet-repl\\20231025-1405-0545-4528-4936acc5caee\\main.spi"}} /       │

│ result.Length:                                                               │

│ 00:00:04 #30 [Debug] sendJson / port: 13805 / json:                          │

│ {"BuildFile":{"backend":"Fsharp","uri":"file:///C:\\Users\\i574n\\AppData\\L │

│ ocal\\Temp\\!dotnet-repl\\20231025-1405-0545-4528-4936acc5caee\\main.spi"}}  │

│ / result.Length:                                                             │

│ 00:00:04 #31 [Debug] > Building                                              │

│ C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1405-0545-4528-4936a │

│ cc5caee\main.spi                                                             │

│ 00:00:05 #32 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:05 #33 [Debug] > Cannot find `main` in file main.                      │

│ 00:00:05 #34 [Debug] > Build skipped for                                     │

│ C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1405-0545-4528-4936a │

│ cc5caee\main.spi                                                             │

│ 00:00:06 #35 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:07 #36 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:08 #37 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:09 #38 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:10 #39 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:11 #40 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:12 #41 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:13 #42 [Debug] runWithTimeoutAsync / timeout: 10000                    │

│ 00:00:13 #43 [Debug] watchWithFilter / Disposing watch stream / filter:      │

│ FileName, LastWrite                                                          │

│ <null>                                                                       │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"inl app () =

    0i32



inl a = 1



inl main () =

    app

    |> dyn

    |> ignore

"

|> buildCode 10000 None

|> Async.runWithTimeout 10000

|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)

|> _equal (

    Some (

        None,

        [[ "main.spi:

Global inl/let statements should all return functions known at parse time." ]]

    )

)



╭─[ 1.66s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:13 #44 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:13 #45 [Debug] runWithTimeoutAsync / timeout: 60                       │

│ 00:00:13 #46 [Debug] executeAsync / options: { Command =                     │

│    "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral         │

│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll"           │

│ port=13805"                                                                  │

│   WorkingDirectory = None                                                    │

│   CancellationToken = Some System.Threading.CancellationToken                │

│   OnLine = Some <fun:buildCode@3-983> }                                      │

│ 00:00:13 #47 [Debug] > pwd: C:\home\git\polyglot\apps\spiral                 │

│ 00:00:13 #48 [Debug] > dll_path:                                             │

│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │

│ 2\artifacts\bin\The Spiral Language 2\release                                │

│ 00:00:14 #50 [Debug] runWithTimeoutAsync / timeout: 500                      │

│ 00:00:14 #52 [Verbose] waitForPortAccess / port: 13805 / retry: 0            │

│ 00:00:14 #53 [Debug] sendJson / port: 13805 / json: {"Ping":true} /          │

│ result.Length:                                                               │

│ 00:00:14 #54 [Verbose] awaitCompiler / Ping / result: Some(null) / port:     │

│ 13805 / retry: 0                                                             │

│ 00:00:14 #55 [Debug] > Server bound to: http://localhost:13805               │

│ 00:00:14 #56 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:14 #57 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:14 #58 [Debug] sendJson / port: 13805 / json:                          │

│ {"FileOpen":{"spiText":"inl app () =\n    0i32\n\ninl a = 1\n\ninl main ()   │

│ =\n    app\n    |\u003E dyn\n    |\u003E                                     │

│ ignore\n","uri":"file:///C:\\Users\\i574n\\AppData\\Local\\Temp\\!dotnet-rep │

│ l\\20231025-1405-1577-7742-7cc5d035f410\\main.spi"}} / result.Length:        │

│ 00:00:14 #59 [Debug] sendJson / port: 13805 / json:                          │

│ {"BuildFile":{"backend":"Fsharp","uri":"file:///C:\\Users\\i574n\\AppData\\L │

│ ocal\\Temp\\!dotnet-repl\\20231025-1405-1577-7742-7cc5d035f410\\main.spi"}}  │

│ / result.Length:                                                             │

│ 00:00:14 #60 [Debug] > Building                                              │

│ C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1405-1577-7742-7cc5d │

│ 035f410\main.spi                                                             │

│ 00:00:14 #61 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [(main.spi:                                                                  │

│ Global inl/let statements should all return functions known at parse time.,  │

│ ParserErrors                                                                 │

│   { errors =                                                                 │

│      [(({ character = 0                                                      │

│           line = 3 }, { character = 9                                        │

│                         line = 3 }),                                         │

│        "Global inl/let statements should all return functions known at parse │

│ time.")]                                                                     │

│     uri =                                                                    │

│                                                                              │

│ "file:///C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1405-1577-7 │

│ 742-7cc5d035f410\main.spi" })] / typeErrorCount: 0                           │

│ 00:00:14 #62 [Debug] watchWithFilter / Disposing watch stream / filter:      │

│ FileName, LastWrite                                                          │

│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>>                 │

│       Value:       - <null>                                                  │

│       - [ main.spi:                                                          │

│ Global inl/let statements should all return functions known at parse time. ] │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"""inl main () =

    1i32 / 0i32

"""

|> buildCode 10000 None

|> Async.runWithTimeout 10000

|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)

|> _equal (

    Some (

        None,

        [[ "An attempt to divide by zero has been detected at compile time." ]]

    )

)



╭─[ 2.54s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:15 #63 [Debug] runWithTimeoutAsync / timeout: 60                       │

│ 00:00:15 #65 [Debug] executeAsync / options: { Command =                     │

│    "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral         │

│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll"           │

│ port=13805"                                                                  │

│   WorkingDirectory = None                                                    │

│   CancellationToken = Some System.Threading.CancellationToken                │

│   OnLine = Some <fun:buildCode@3-983> }                                      │

│ 00:00:15 #66 [Debug] > pwd: C:\home\git\polyglot\apps\spiral                 │

│ 00:00:15 #67 [Debug] > dll_path:                                             │

│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │

│ 2\artifacts\bin\The Spiral Language 2\release                                │

│ 00:00:15 #68 [Debug] runWithTimeoutAsync / timeout: 500                      │

│ 00:00:15 #69 [Verbose] waitForPortAccess / port: 13805 / retry: 0            │

│ 00:00:16 #70 [Debug] sendJson / port: 13805 / json: {"Ping":true} /          │

│ result.Length:                                                               │

│ 00:00:16 #71 [Verbose] awaitCompiler / Ping / result: Some(null) / port:     │

│ 13805 / retry: 0                                                             │

│ 00:00:16 #72 [Debug] > Server bound to: http://localhost:13805               │

│ 00:00:16 #73 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:16 #74 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:16 #75 [Debug] sendJson / port: 13805 / json:                          │

│ {"FileOpen":{"spiText":"inl main () =\n    1i32 /                            │

│ 0i32\n","uri":"file:///C:\\Users\\i574n\\AppData\\Local\\Temp\\!dotnet-repl\ │

│ \20231025-1405-1743-4325-4fd239004a4b\\main.spi"}} / result.Length:          │

│ 00:00:16 #76 [Debug] sendJson / port: 13805 / json:                          │

│ {"BuildFile":{"backend":"Fsharp","uri":"file:///C:\\Users\\i574n\\AppData\\L │

│ ocal\\Temp\\!dotnet-repl\\20231025-1405-1743-4325-4fd239004a4b\\main.spi"}}  │

│ / result.Length:                                                             │

│ 00:00:16 #78 [Debug] > Building                                              │

│ C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1405-1743-4325-4fd23 │

│ 9004a4b\main.spi                                                             │

│ 00:00:17 #79 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:17 #81 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [(An attempt to divide by zero has been detected at compile time.,           │

│ TracedError                                                                  │

│   { message = "An attempt to divide by zero has been detected at compile     │

│ time."                                                                       │

│     trace =                                                                  │

│      ["Error trace on line: 1, column: 10 in module:                         │

│ C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1405-1743-4325-4fd23 │

│ 9004a4b\main.spi.                                                            │

│ inl main () =                                                                │

│          ^                                                                   │

│ ";                                                                           │

│       "Error trace on line: 2, column: 5 in module:                          │

│ C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1405-1743-4325-4fd23 │

│ 9004a4b\main.spi.                                                            │

│     1i32 / 0i32                                                              │

│     ^                                                                        │

│ "] })] / typeErrorCount: 0                                                   │

│ 00:00:17 #82 [Debug] watchWithFilter / Disposing watch stream / filter:      │

│ FileName, LastWrite                                                          │

│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>>                 │

│       Value:       - <null>                                                  │

│       - [ An attempt to divide by zero has been detected at compile time. ]  │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"""inl main () =

    1 + ""

"""

|> buildCode 10000 None

|> Async.runWithTimeout 10000

|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)

|> _equal (

    Some (

        None,

        [[

            "main.spi:

Constraint satisfaction error.

Got: string

Fails to satisfy: number"

        ]]

    )

)



╭─[ 2.17s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:17 #83 [Debug] runWithTimeoutAsync / timeout: 60                       │

│ 00:00:17 #84 [Debug] executeAsync / options: { Command =                     │

│    "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral         │

│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll"           │

│ port=13805"                                                                  │

│   WorkingDirectory = None                                                    │

│   CancellationToken = Some System.Threading.CancellationToken                │

│   OnLine = Some <fun:buildCode@3-983> }                                      │

│ 00:00:17 #85 [Debug] > pwd: C:\home\git\polyglot\apps\spiral                 │

│ 00:00:17 #86 [Debug] > dll_path:                                             │

│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │

│ 2\artifacts\bin\The Spiral Language 2\release                                │

│ 00:00:18 #88 [Debug] runWithTimeoutAsync / timeout: 500                      │

│ 00:00:18 #89 [Verbose] waitForPortAccess / port: 13805 / retry: 0            │

│ 00:00:18 #90 [Debug] sendJson / port: 13805 / json: {"Ping":true} /          │

│ result.Length:                                                               │

│ 00:00:18 #91 [Verbose] awaitCompiler / Ping / result: Some(null) / port:     │

│ 13805 / retry: 0                                                             │

│ 00:00:18 #92 [Debug] > Server bound to: http://localhost:13805               │

│ 00:00:18 #93 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:18 #94 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:18 #95 [Debug] sendJson / port: 13805 / json:                          │

│ {"FileOpen":{"spiText":"inl main () =\n    1 \u002B                          │

│ \u0022\u0022\n","uri":"file:///C:\\Users\\i574n\\AppData\\Local\\Temp\\!dotn │

│ et-repl\\20231025-1405-1996-9695-9d85b0373703\\main.spi"}} / result.Length:  │

│ 00:00:18 #96 [Debug] sendJson / port: 13805 / json:                          │

│ {"BuildFile":{"backend":"Fsharp","uri":"file:///C:\\Users\\i574n\\AppData\\L │

│ ocal\\Temp\\!dotnet-repl\\20231025-1405-1996-9695-9d85b0373703\\main.spi"}}  │

│ / result.Length:                                                             │

│ 00:00:18 #97 [Debug] > Building                                              │

│ C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1405-1996-9695-9d85b │

│ 0373703\main.spi                                                             │

│ 00:00:19 #99 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 1                                                       │

│ 00:00:19 #100 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [(main.spi:                                                          │

│ Constraint satisfaction error.                                               │

│ Got: string                                                                  │

│ Fails to satisfy: number, TypeErrors                                         │

│   { errors =                                                                 │

│      [(({ character = 8                                                      │

│           line = 1 }, { character = 10                                       │

│                         line = 1 }),                                         │

│        "Constraint satisfaction error.                                       │

│ Got: string                                                                  │

│ Fails to satisfy: number")]                                                  │

│     uri =                                                                    │

│                                                                              │

│ "file:///C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1405-1996-9 │

│ 695-9d85b0373703\main.spi" })] / typeErrorCount: 1                           │

│ 00:00:19 #101 [Debug] watchWithFilter / Disposing watch stream / filter:     │

│ FileName, LastWrite                                                          │

│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>>                 │

│       Value:       - <null>                                                  │

│       - [ main.spi:                                                          │

│ Constraint satisfaction error.                                               │

│ Got: string                                                                  │

│ Fails to satisfy: number ]                                                   │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"""inl main () =

    x + y

"""

|> buildCode 10000 None

|> Async.runWithTimeout 10000

|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)

|> _equal (

    Some (

        None,

        [[

            "main.spi:

Unbound variable.

Unbound variable."

        ]]

    )

)



╭─[ 2.28s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:19 #102 [Debug] runWithTimeoutAsync / timeout: 60                      │

│ 00:00:19 #103 [Debug] executeAsync / options: { Command =                    │

│    "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral         │

│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll"           │

│ port=13805"                                                                  │

│   WorkingDirectory = None                                                    │

│   CancellationToken = Some System.Threading.CancellationToken                │

│   OnLine = Some <fun:buildCode@3-983> }                                      │

│ 00:00:19 #104 [Debug] > pwd: C:\home\git\polyglot\apps\spiral                │

│ 00:00:19 #105 [Debug] > dll_path:                                            │

│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │

│ 2\artifacts\bin\The Spiral Language 2\release                                │

│ 00:00:20 #107 [Debug] runWithTimeoutAsync / timeout: 500                     │

│ 00:00:20 #108 [Verbose] waitForPortAccess / port: 13805 / retry: 0           │

│ 00:00:20 #109 [Debug] sendJson / port: 13805 / json: {"Ping":true} /         │

│ result.Length:                                                               │

│ 00:00:20 #110 [Verbose] awaitCompiler / Ping / result: Some(null) / port:    │

│ 13805 / retry: 0                                                             │

│ 00:00:20 #111 [Debug] > Server bound to: http://localhost:13805              │

│ 00:00:20 #112 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:20 #113 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:20 #114 [Debug] sendJson / port: 13805 / json:                         │

│ {"FileOpen":{"spiText":"inl main () =\n    x \u002B                          │

│ y\n","uri":"file:///C:\\Users\\i574n\\AppData\\Local\\Temp\\!dotnet-repl\\20 │

│ 231025-1405-2213-1392-1676447bbd87\\main.spi"}} / result.Length:             │

│ 00:00:20 #115 [Debug] sendJson / port: 13805 / json:                         │

│ {"BuildFile":{"backend":"Fsharp","uri":"file:///C:\\Users\\i574n\\AppData\\L │

│ ocal\\Temp\\!dotnet-repl\\20231025-1405-2213-1392-1676447bbd87\\main.spi"}}  │

│ / result.Length:                                                             │

│ 00:00:21 #117 [Debug] > Building                                             │

│ C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1405-2213-1392-16764 │

│ 47bbd87\main.spi                                                             │

│ 00:00:21 #118 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:21 #119 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 1                                               │

│ 00:00:21 #120 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [(main.spi:                                                          │

│ Unbound variable.                                                            │

│ Unbound variable., TypeErrors                                                │

│   { errors =                                                                 │

│      [(({ character = 4                                                      │

│           line = 1 }, { character = 5                                        │

│                         line = 1 }), "Unbound variable.");                   │

│       (({ character = 8                                                      │

│           line = 1 }, { character = 9                                        │

│                         line = 1 }), "Unbound variable.")]                   │

│     uri =                                                                    │

│                                                                              │

│ "file:///C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1405-2213-1 │

│ 392-1676447bbd87\main.spi" })] / typeErrorCount: 1                           │

│ 00:00:21 #121 [Debug] watchWithFilter / Disposing watch stream / filter:     │

│ FileName, LastWrite                                                          │

│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>>                 │

│       Value:       - <null>                                                  │

│       - [ main.spi:                                                          │

│ Unbound variable.                                                            │

│ Unbound variable. ]                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"""union a =

    | B

    | c



inl main () =

    ()

"""

|> buildCode 10000 None

|> Async.runWithTimeout 10000

|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)

|> _equal (

    Some (

        None,

        [[ "main.spi:

Expected: uppercase variable" ]]

    )

)



╭─[ 1.80s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:22 #122 [Debug] runWithTimeoutAsync / timeout: 60                      │

│ 00:00:22 #124 [Debug] executeAsync / options: { Command =                    │

│    "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral         │

│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll"           │

│ port=13805"                                                                  │

│   WorkingDirectory = None                                                    │

│   CancellationToken = Some System.Threading.CancellationToken                │

│   OnLine = Some <fun:buildCode@3-983> }                                      │

│ 00:00:22 #125 [Debug] > pwd: C:\home\git\polyglot\apps\spiral                │

│ 00:00:22 #126 [Debug] > dll_path:                                            │

│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │

│ 2\artifacts\bin\The Spiral Language 2\release                                │

│ 00:00:22 #127 [Debug] runWithTimeoutAsync / timeout: 500                     │

│ 00:00:22 #128 [Verbose] waitForPortAccess / port: 13805 / retry: 0           │

│ 00:00:23 #129 [Debug] sendJson / port: 13805 / json: {"Ping":true} /         │

│ result.Length:                                                               │

│ 00:00:23 #130 [Verbose] awaitCompiler / Ping / result: Some(null) / port:    │

│ 13805 / retry: 0                                                             │

│ 00:00:23 #131 [Debug] > Server bound to: http://localhost:13805              │

│ 00:00:23 #132 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:23 #133 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:23 #134 [Debug] sendJson / port: 13805 / json:                         │

│ {"FileOpen":{"spiText":"union a =\n    | B\n    | c\n\ninl main () =\n       │

│ ()\n","uri":"file:///C:\\Users\\i574n\\AppData\\Local\\Temp\\!dotnet-repl\\2 │

│ 0231025-1405-2451-5111-5916da5dda61\\main.spi"}} / result.Length:            │

│ 00:00:23 #135 [Debug] sendJson / port: 13805 / json:                         │

│ {"BuildFile":{"backend":"Fsharp","uri":"file:///C:\\Users\\i574n\\AppData\\L │

│ ocal\\Temp\\!dotnet-repl\\20231025-1405-2451-5111-5916da5dda61\\main.spi"}}  │

│ / result.Length:                                                             │

│ 00:00:23 #137 [Debug] > Building                                             │

│ C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1405-2451-5111-5916d │

│ a5dda61\main.spi                                                             │

│ 00:00:23 #138 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [(main.spi:                                                          │

│ Expected: uppercase variable, ParserErrors                                   │

│   { errors = [(({ character = 6                                              │

│                   line = 2 }, { character = 7                                │

│                                 line = 2 }), "Expected: uppercase            │

│ variable")]                                                                  │

│     uri =                                                                    │

│                                                                              │

│ "file:///C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1405-2451-5 │

│ 111-5916da5dda61\main.spi" })] / typeErrorCount: 0                           │

│ 00:00:23 #139 [Debug] watchWithFilter / Disposing watch stream / filter:     │

│ FileName, LastWrite                                                          │

│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>>                 │

│       Value:       - <null>                                                  │

│       - [ main.spi:                                                          │

│ Expected: uppercase variable ]                                               │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"""

/// abc

inl main () =

    ()

"""

|> buildCode 10000 None

|> Async.runWithTimeout 10000

|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)

|> _equal (

    Some (

        None,

        [[ "main.spi:

Expected: whitespace" ]]

    )

)



╭─[ 1.48s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:23 #140 [Debug] runWithTimeoutAsync / timeout: 60                      │

│ 00:00:23 #141 [Debug] executeAsync / options: { Command =                    │

│    "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral         │

│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll"           │

│ port=13805"                                                                  │

│   WorkingDirectory = None                                                    │

│   CancellationToken = Some System.Threading.CancellationToken                │

│   OnLine = Some <fun:buildCode@3-983> }                                      │

│ 00:00:24 #142 [Debug] > pwd: C:\home\git\polyglot\apps\spiral                │

│ 00:00:24 #143 [Debug] > dll_path:                                            │

│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │

│ 2\artifacts\bin\The Spiral Language 2\release                                │

│ 00:00:24 #145 [Debug] runWithTimeoutAsync / timeout: 500                     │

│ 00:00:24 #146 [Debug] sendJson / port: 13805 / json: {"Ping":true} /         │

│ result.Length:                                                               │

│ 00:00:24 #147 [Verbose] awaitCompiler / Ping / result: Some(null) / port:    │

│ 13805 / retry: 0                                                             │

│ 00:00:24 #148 [Debug] > Server bound to: http://localhost:13805              │

│ 00:00:24 #149 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:24 #150 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:24 #151 [Debug] sendJson / port: 13805 / json:                         │

│ {"FileOpen":{"spiText":"\n/// abc\ninl main () =\n                           │

│ ()\n","uri":"file:///C:\\Users\\i574n\\AppData\\Local\\Temp\\!dotnet-repl\\2 │

│ 0231025-1405-2625-2597-23e847b762df\\main.spi"}} / result.Length:            │

│ 00:00:24 #152 [Debug] sendJson / port: 13805 / json:                         │

│ {"BuildFile":{"backend":"Fsharp","uri":"file:///C:\\Users\\i574n\\AppData\\L │

│ ocal\\Temp\\!dotnet-repl\\20231025-1405-2625-2597-23e847b762df\\main.spi"}}  │

│ / result.Length:                                                             │

│ 00:00:25 #153 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [(main.spi:                                                          │

│ Expected: whitespace, TokenizerErrors                                        │

│   { errors = [(({ character = 2                                              │

│                   line = 1 }, { character = 3                                │

│                                 line = 1 }), "Expected: whitespace")]        │

│     uri =                                                                    │

│                                                                              │

│ "file:///C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1405-2625-2 │

│ 597-23e847b762df\main.spi" })] / typeErrorCount: 0                           │

│ 00:00:25 #154 [Debug] watchWithFilter / Disposing watch stream / filter:     │

│ FileName, LastWrite                                                          │

│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>>                 │

│       Value:       - <null>                                                  │

│       - [ main.spi:                                                          │

│ Expected: whitespace ]                                                       │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"""

inl main () =

    real

        inl real_unbox forall a. (obj : a) : a =

            typecase obj with

            | _ => obj

        real_unbox ()

    ()

"""

|> buildCode 10000 None

|> Async.runWithTimeout 10000

|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)

|> _equal (

    Some (

        None,

        [[ "Cannot apply a forall with a term." ]]

    )

)



╭─[ 2.63s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:25 #156 [Debug] runWithTimeoutAsync / timeout: 60                      │

│ 00:00:25 #157 [Debug] executeAsync / options: { Command =                    │

│    "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral         │

│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll"           │

│ port=13805"                                                                  │

│   WorkingDirectory = None                                                    │

│   CancellationToken = Some System.Threading.CancellationToken                │

│   OnLine = Some <fun:buildCode@3-983> }                                      │

│ 00:00:25 #158 [Debug] > pwd: C:\home\git\polyglot\apps\spiral                │

│ 00:00:25 #159 [Debug] > dll_path:                                            │

│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │

│ 2\artifacts\bin\The Spiral Language 2\release                                │

│ 00:00:26 #160 [Debug] runWithTimeoutAsync / timeout: 500                     │

│ 00:00:26 #161 [Verbose] waitForPortAccess / port: 13805 / retry: 0           │

│ 00:00:26 #163 [Debug] sendJson / port: 13805 / json: {"Ping":true} /         │

│ result.Length:                                                               │

│ 00:00:26 #164 [Verbose] awaitCompiler / Ping / result: Some(null) / port:    │

│ 13805 / retry: 0                                                             │

│ 00:00:26 #165 [Debug] > Server bound to: http://localhost:13805              │

│ 00:00:26 #166 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:26 #167 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:26 #168 [Debug] sendJson / port: 13805 / json:                         │

│ {"FileOpen":{"spiText":"\ninl main () =\n    real\n        inl real_unbox    │

│ forall a. (obj : a) : a =\n            typecase obj with\n            | _    │

│ =\u003E obj\n        real_unbox ()\n                                         │

│ ()\n","uri":"file:///C:\\Users\\i574n\\AppData\\Local\\Temp\\!dotnet-repl\\2 │

│ 0231025-1405-2780-8088-85e5e1b0da1d\\main.spi"}} / result.Length:            │

│ 00:00:26 #169 [Debug] sendJson / port: 13805 / json:                         │

│ {"BuildFile":{"backend":"Fsharp","uri":"file:///C:\\Users\\i574n\\AppData\\L │

│ ocal\\Temp\\!dotnet-repl\\20231025-1405-2780-8088-85e5e1b0da1d\\main.spi"}}  │

│ / result.Length:                                                             │

│ 00:00:26 #170 [Debug] > Building                                             │

│ C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1405-2780-8088-85e5e │

│ 1b0da1d\main.spi                                                             │

│ 00:00:27 #172 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:27 #173 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [(Cannot apply a forall with a term., TracedError                    │

│   { message = "Cannot apply a forall with a term."                           │

│     trace =                                                                  │

│      ["Error trace on line: 2, column: 10 in module:                         │

│ C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1405-2780-8088-85e5e │

│ 1b0da1d\main.spi.                                                            │

│ inl main () =                                                                │

│          ^                                                                   │

│ ";                                                                           │

│       "Error trace on line: 4, column: 9 in module:                          │

│ C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1405-2780-8088-85e5e │

│ 1b0da1d\main.spi.                                                            │

│         inl real_unbox forall a. (obj : a) : a =                             │

│         ^                                                                    │

│ ";                                                                           │

│       "Error trace on line: 7, column: 9 in module:                          │

│ C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1405-2780-8088-85e5e │

│ 1b0da1d\main.spi.                                                            │

│         real_unbox ()                                                        │

│         ^                                                                    │

│ "] })] / typeErrorCount: 0                                                   │

│ 00:00:27 #174 [Debug] watchWithFilter / Disposing watch stream / filter:     │

│ FileName, LastWrite                                                          │

│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>>                 │

│       Value:       - <null>                                                  │

│       - [ Cannot apply a forall with a term. ]                               │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"""

inl main () =

    real

        inl real_unbox forall a. (obj : a) : a =

            typecase obj with

            | _ => obj

        real_unbox `i32 1

"""

|> buildCode 10000 None

|> Async.runWithTimeout 10000

|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)

|> _equal (

    Some (

        None,

        [[ "The main function should not have a forall." ]]

    )

)



╭─[ 2.41s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:28 #175 [Debug] runWithTimeoutAsync / timeout: 60                      │

│ 00:00:28 #176 [Debug] executeAsync / options: { Command =                    │

│    "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral         │

│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll"           │

│ port=13805"                                                                  │

│   WorkingDirectory = None                                                    │

│   CancellationToken = Some System.Threading.CancellationToken                │

│   OnLine = Some <fun:buildCode@3-983> }                                      │

│ 00:00:28 #178 [Debug] > pwd: C:\home\git\polyglot\apps\spiral                │

│ 00:00:28 #179 [Debug] > dll_path:                                            │

│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │

│ 2\artifacts\bin\The Spiral Language 2\release                                │

│ 00:00:28 #180 [Debug] runWithTimeoutAsync / timeout: 500                     │

│ 00:00:28 #181 [Verbose] waitForPortAccess / port: 13805 / retry: 0           │

│ 00:00:28 #182 [Debug] sendJson / port: 13805 / json: {"Ping":true} /         │

│ result.Length:                                                               │

│ 00:00:28 #183 [Verbose] awaitCompiler / Ping / result: Some(null) / port:    │

│ 13805 / retry: 0                                                             │

│ 00:00:28 #184 [Debug] > Server bound to: http://localhost:13805              │

│ 00:00:28 #185 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:28 #186 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:29 #187 [Debug] sendJson / port: 13805 / json:                         │

│ {"FileOpen":{"spiText":"\ninl main () =\n    real\n        inl real_unbox    │

│ forall a. (obj : a) : a =\n            typecase obj with\n            | _    │

│ =\u003E obj\n        real_unbox \u0060i32                                    │

│ 1\n","uri":"file:///C:\\Users\\i574n\\AppData\\Local\\Temp\\!dotnet-repl\\20 │

│ 231025-1405-3042-4202-41f2ff1a68d9\\main.spi"}} / result.Length:             │

│ 00:00:29 #188 [Debug] sendJson / port: 13805 / json:                         │

│ {"BuildFile":{"backend":"Fsharp","uri":"file:///C:\\Users\\i574n\\AppData\\L │

│ ocal\\Temp\\!dotnet-repl\\20231025-1405-3042-4202-41f2ff1a68d9\\main.spi"}}  │

│ / result.Length:                                                             │

│ 00:00:29 #190 [Debug] > Building                                             │

│ C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1405-3042-4202-41f2f │

│ f1a68d9\main.spi                                                             │

│ 00:00:29 #191 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:30 #192 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [(The main function should not have a forall., TracedError { message │

│ = "The main function should not have a forall."                              │

│               trace = [] })] / typeErrorCount: 0                             │

│ 00:00:30 #193 [Debug] watchWithFilter / Disposing watch stream / filter:     │

│ FileName, LastWrite                                                          │

│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>>                 │

│       Value:       - <null>                                                  │

│       - [ The main function should not have a forall. ]                      │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"""

inl init_series start end inc =

    inl total : f64 = conv ((end - start) / inc) + 1

    listm.init total (conv >> (*) inc >> (+) start) : list f64



type integration = (f64 -> f64) -> f64 -> f64 -> f64



inl integral dt : integration =

    fun f a b =>

        init_series (a + dt / 2) (b - dt / 2) dt

        |> listm.map (f >> (*) dt)

        |> listm.fold (+) 0



inl main () =

    integral 0.1 (fun x => x ** 2) 0 1

"""

|> buildCode 10000 None

|> Async.runWithTimeout 10000

|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)

|> _equal (

    Some (

        Some "0.3325000000000001\n",

        [[]]

    )

)



╭─[ 2.55s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:30 #195 [Debug] runWithTimeoutAsync / timeout: 60                      │

│ 00:00:30 #196 [Debug] executeAsync / options: { Command =                    │

│    "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral         │

│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll"           │

│ port=13805"                                                                  │

│   WorkingDirectory = None                                                    │

│   CancellationToken = Some System.Threading.CancellationToken                │

│   OnLine = Some <fun:buildCode@3-983> }                                      │

│ 00:00:30 #197 [Debug] > pwd: C:\home\git\polyglot\apps\spiral                │

│ 00:00:30 #198 [Debug] > dll_path:                                            │

│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │

│ 2\artifacts\bin\The Spiral Language 2\release                                │

│ 00:00:31 #199 [Debug] runWithTimeoutAsync / timeout: 500                     │

│ 00:00:31 #201 [Verbose] waitForPortAccess / port: 13805 / retry: 0           │

│ 00:00:31 #202 [Debug] sendJson / port: 13805 / json: {"Ping":true} /         │

│ result.Length:                                                               │

│ 00:00:31 #203 [Verbose] awaitCompiler / Ping / result: Some(null) / port:    │

│ 13805 / retry: 0                                                             │

│ 00:00:31 #204 [Debug] > Server bound to: http://localhost:13805              │

│ 00:00:31 #205 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:31 #206 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:31 #207 [Debug] sendJson / port: 13805 / json:                         │

│ {"FileOpen":{"spiText":"\ninl init_series start end inc =\n    inl total :   │

│ f64 = conv ((end - start) / inc) \u002B 1\n    listm.init total (conv        │

│ \u003E\u003E (*) inc \u003E\u003E (\u002B) start) : list f64\n\ntype         │

│ integration = (f64 -\u003E f64) -\u003E f64 -\u003E f64 -\u003E f64\n\ninl   │

│ integral dt : integration =\n    fun f a b =\u003E\n        init_series (a   │

│ \u002B dt / 2) (b - dt / 2) dt\n        |\u003E listm.map (f \u003E\u003E    │

│ (*) dt)\n        |\u003E listm.fold (\u002B) 0\n\ninl main () =\n            │

│ integral 0.1 (fun x =\u003E x ** 2) 0                                        │

│ 1\n","uri":"file:///C:\\Users\\i574n\\AppData\\Local\\Temp\\!dotnet-repl\\20 │

│ 231025-1405-3289-8966-8f000690097b\\main.spi"}} / result.Length:             │

│ 00:00:31 #208 [Debug] sendJson / port: 13805 / json:                         │

│ {"BuildFile":{"backend":"Fsharp","uri":"file:///C:\\Users\\i574n\\AppData\\L │

│ ocal\\Temp\\!dotnet-repl\\20231025-1405-3289-8966-8f000690097b\\main.spi"}}  │

│ / result.Length:                                                             │

│ 00:00:31 #209 [Debug] > Building                                             │

│ C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1405-3289-8966-8f000 │

│ 690097b\main.spi                                                             │

│ 00:00:32 #211 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:32 #212 [Debug] buildFile / takeWhileInclusive / fsxContent:           │

│ Some(0.3325000000000001                                                      │

│ ) / errors: [] / typeErrorCount: 0                                           │

│ 00:00:32 #213 [Debug] watchWithFilter / Disposing watch stream / filter:     │

│ FileName, LastWrite                                                          │

│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>>                 │

│       Value:       - FSharpOption<String>                                    │

│           Value: 0.3325000000000001                                          │

│                                                                              │

│       - [  ]                                                                 │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"""

inl init_series start end inc =

    inl total : f64 = conv ((end - start) / inc) + 1

    listm.init total (conv >> (*) inc >> (+) start) : list f64



type integration = (f64 -> f64) -> f64 -> f64 -> f64



inl integral dt : integration =

    fun f a b =>

        init_series (a + dt / 2) (b - dt / 2) dt

        |> listm.map (f >> (*) dt)

        |> listm.fold (+) 0



inl main () =

    integral 0.01 (fun x => x ** 2) 0 1

"""

|> buildCode 10000 None

|> Async.runWithTimeout 10000

|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)

// |> _equal None

// |> fun x -> printfn $"{x.ToDisplayString ()}"



╭─[ 7.07s - return value ]─────────────────────────────────────────────────────╮

│ <details open="open" class="dni-treeview"><summary><span                     │

│ class="dni-code-hint"><code>Some((, [                                        │

│ ]))</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><t │

│ d>Value</td><td><details class="dni-treeview"><summary><span                 │

│ class="dni-code-hint"><code>(, [                                             │

│ ])</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

│ >Item1</td><td><div                                                          │

│ class="dni-plaintext"><pre>&lt;null&gt;</pre></div></td></tr><tr><td>Item2</ │

│ td><td><div class="dni-plaintext"><pre>[                                     │

│ ]</pre></div></td></tr></tbody></table></div></details></td></tr></tbody></t │

│ able></div></details><style>                                                 │

│ .dni-code-hint {                                                             │

│     font-style: italic;                                                      │

│     overflow: hidden;                                                        │

│     white-space: nowrap;                                                     │

│ }                                                                            │

│ .dni-treeview {                                                              │

│     white-space: nowrap;                                                     │

│ }                                                                            │

│ .dni-treeview td {                                                           │

│     ve...                                                                    │

╰──────────────────────────────────────────────────────────────────────────────╯



╭─[ 7.09s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:33 #214 [Debug] runWithTimeoutAsync / timeout: 60                      │

│ 00:00:33 #215 [Debug] executeAsync / options: { Command =                    │

│    "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral         │

│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll"           │

│ port=13805"                                                                  │

│   WorkingDirectory = None                                                    │

│   CancellationToken = Some System.Threading.CancellationToken                │

│   OnLine = Some <fun:buildCode@3-983> }                                      │

│ 00:00:33 #217 [Debug] > pwd: C:\home\git\polyglot\apps\spiral                │

│ 00:00:33 #218 [Debug] > dll_path:                                            │

│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │

│ 2\artifacts\bin\The Spiral Language 2\release                                │

│ 00:00:33 #219 [Debug] runWithTimeoutAsync / timeout: 500                     │

│ 00:00:33 #220 [Verbose] waitForPortAccess / port: 13805 / retry: 0           │

│ 00:00:33 #221 [Debug] sendJson / port: 13805 / json: {"Ping":true} /         │

│ result.Length:                                                               │

│ 00:00:33 #222 [Verbose] awaitCompiler / Ping / result: Some(null) / port:    │

│ 13805 / retry: 0                                                             │

│ 00:00:33 #223 [Debug] > Server bound to: http://localhost:13805              │

│ 00:00:33 #224 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:33 #225 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:34 #226 [Debug] sendJson / port: 13805 / json:                         │

│ {"FileOpen":{"spiText":"\ninl init_series start end inc =\n    inl total :   │

│ f64 = conv ((end - start) / inc) \u002B 1\n    listm.init total (conv        │

│ \u003E\u003E (*) inc \u003E\u003E (\u002B) start) : list f64\n\ntype         │

│ integration = (f64 -\u003E f64) -\u003E f64 -\u003E f64 -\u003E f64\n\ninl   │

│ integral dt : integration =\n    fun f a b =\u003E\n        init_series (a   │

│ \u002B dt / 2) (b - dt / 2) dt\n        |\u003E listm.map (f \u003E\u003E    │

│ (*) dt)\n        |\u003E listm.fold (\u002B) 0\n\ninl main () =\n            │

│ integral 0.01 (fun x =\u003E x ** 2) 0                                       │

│ 1\n","uri":"file:///C:\\Users\\i574n\\AppData\\Local\\Temp\\!dotnet-repl\\20 │

│ 231025-1405-3544-4412-4cd3775c1d44\\main.spi"}} / result.Length:             │

│ 00:00:34 #227 [Debug] sendJson / port: 13805 / json:                         │

│ {"BuildFile":{"backend":"Fsharp","uri":"file:///C:\\Users\\i574n\\AppData\\L │

│ ocal\\Temp\\!dotnet-repl\\20231025-1405-3544-4412-4cd3775c1d44\\main.spi"}}  │

│ / result.Length:                                                             │

│ 00:00:34 #229 [Debug] > Building                                             │

│ C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1405-3544-4412-4cd37 │

│ 75c1d44\main.spi                                                             │

│ 00:00:34 #230 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:35 #231 [Debug] > Stack overflow.                                      │

│ 00:00:35 #232 [Debug] > Repeat 3 times:                                      │

│ 00:00:35 #233 [Debug] > --------------------------------                     │

│ 00:00:35 #234 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #235 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #236 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #237 [Debug] > --------------------------------                     │

│ 00:00:35 #238 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #239 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #240 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #241 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #242 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #243 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #244 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #245 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #246 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #247 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #248 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #249 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #250 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #251 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #252 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #253 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #254 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #255 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #256 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #257 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #258 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #259 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #260 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #261 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #262 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #263 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #264 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #265 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #266 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #267 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #268 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #269 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #270 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #271 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #272 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #273 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #274 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #275 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #276 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #277 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #278 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #279 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #280 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #281 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #282 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #283 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #284 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #285 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #286 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #287 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #288 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #289 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #290 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #291 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #292 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #293 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #294 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #295 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #296 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #297 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #298 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #299 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #300 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #301 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #302 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #303 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #304 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #305 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #306 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #307 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #308 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #309 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #310 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #311 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #312 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #313 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #314 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #315 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #316 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #317 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #318 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #319 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #320 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #321 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #322 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #323 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #324 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #325 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #326 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #327 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #328 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #329 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #330 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #331 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #332 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #333 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #334 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #335 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #336 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #337 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #338 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #339 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #340 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #341 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #342 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #343 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #344 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #345 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #346 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #347 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #348 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #349 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #350 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #351 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #352 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #353 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #354 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #355 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #356 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #357 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #358 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #359 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #360 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #361 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #362 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #363 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #364 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #365 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #366 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #367 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #368 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #369 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #370 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #371 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #372 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #373 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #374 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #375 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #376 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #377 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #378 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #379 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #380 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #381 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #382 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #383 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #384 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #385 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #386 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #387 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #388 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #389 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #390 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #391 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #392 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #393 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #394 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #395 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #396 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #397 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #398 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #399 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #400 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #401 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #402 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #403 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #404 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #405 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #406 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #407 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #408 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #409 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #410 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #411 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #412 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #413 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #414 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #415 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #416 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #417 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #418 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #419 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #420 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #421 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #422 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #423 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #424 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #425 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #426 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #427 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #428 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #429 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #430 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #431 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #432 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #433 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #434 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #435 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #436 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #437 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #438 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #439 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #440 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #441 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #442 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #443 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #444 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #445 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #446 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #447 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #448 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #449 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #450 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #451 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #452 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #453 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #454 [Debug] >    at                                                │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)         │

│ 00:00:35 #455 [Debug] >    at Spiral.PartEval.Main.term@684-65(TopEnv,       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #456 [Debug] >    at Spiral.PartEval.Main.term_scope''@574(TopEnv,  │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #457 [Debug] >    at Spiral.PartEval.Main.term_scope'@578(TopEnv,   │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv,                │

│ System.Collections.Generic.Dictionary`2<TypedOp,Data>, E)                    │

│ 00:00:35 #458 [Debug] >    at Spiral.PartEval.Main.term_scope@579(TopEnv,    │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)             │

│ 00:00:35 #459 [Debug] >    at Spiral.PartEval.Main.peval(TopEnv, E)          │

│ 00:00:35 #460 [Debug] >    at                                                │

│ Spiral.Supervisor.file_build$cont@383(System.String, SupervisorState,        │

│ PrepassTopEnv, Microsoft.FSharp.Core.FSharpOption`1<E>,                      │

│ Microsoft.FSharp.Core.Unit)                                                  │

│ 00:00:35 #461 [Debug] >    at                                                │

│ Spiral.Supervisor.x2yJ@1-28(SupervisorErrorSources, System.String,           │

│ System.String, SupervisorState, PrepassTopEnv)                               │

│ 00:00:35 #462 [Debug] >    at                                                │

│ Spiral.Supervisor+x2yJ@380-41.Do(PrepassTopEnv)                              │

│ 00:00:35 #463 [Debug] >    at Hopac.Core.ContBind`2[[System.__Canon,         │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib,    │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)                                                              │

│ 00:00:35 #464 [Debug] >    at Hopac.Job+result@1000-1[[System.__Canon,       │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)                                           │

│ 00:00:35 #465 [Debug] >    at Hopac.Core.ContBind`2[[System.__Canon,         │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib,    │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)                                                              │

│ 00:00:35 #466 [Debug] >    at Hopac.Promise`1+Fulfill[[System.__Canon,       │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].Do(Hopac.Core.Worker ByRef,                │

│ System.__Canon)                                                              │

│ 00:00:35 #467 [Debug] >    at Hopac.Promise`1+Fulfill[[System.__Canon,       │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)                                                              │

│ 00:00:35 #468 [Debug] >    at Hopac.Job+result@1000-1[[System.__Canon,       │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)                                           │

│ 00:00:35 #469 [Debug] >    at Hopac.Core.ContBind`2[[System.__Canon,         │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib,    │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)                                                              │

│ 00:00:35 #470 [Debug] >    at Hopac.Core.Cont.Do[[System.__Canon,            │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]](Hopac.Core.Cont`1<System.__Canon>,         │

│ Hopac.Core.Worker ByRef, System.__Canon)                                     │

│ 00:00:35 #471 [Debug] >    at Hopac.Promise`1[[System.__Canon,               │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)                                           │

│ 00:00:35 #472 [Debug] >    at Hopac.Core.JobCont`2[[System.__Canon,          │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib,    │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)                                           │

│ 00:00:35 #473 [Debug] >    at Hopac.Core.Job.Do[[System.__Canon,             │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]](Hopac.Job`1<System.__Canon>,               │

│ Hopac.Core.Worker ByRef, Hopac.Core.Cont`1<System.__Canon>)                  │

│ 00:00:35 #474 [Debug] >    at Hopac.Promise`1[[System.__Canon,               │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)                                           │

│ 00:00:35 #475 [Debug] >    at Hopac.Core.JobCont`2[[System.__Canon,          │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib,    │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)                                           │

│ 00:00:35 #476 [Debug] >    at Hopac.Core.ContBind`2[[System.__Canon,         │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib,    │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)                                                              │

│ 00:00:35 #477 [Debug] >    at Hopac.Promise`1+Fulfill[[System.__Canon,       │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].Do(Hopac.Core.Worker ByRef,                │

│ System.__Canon)                                                              │

│ 00:00:35 #478 [Debug] >    at Hopac.Promise`1+Fulfill[[System.__Canon,       │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)                                                              │

│ 00:00:35 #479 [Debug] >    at Hopac.Core.ContMap`2[[System.__Canon,          │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib,    │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)                                                              │

│ 00:00:35 #480 [Debug] >    at Hopac.Promise`1+Fulfill[[System.__Canon,       │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].Do(Hopac.Core.Worker ByRef,                │

│ System.__Canon)                                                              │

│ 00:00:35 #481 [Debug] >    at Hopac.Promise`1+Fulfill[[System.__Canon,       │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)                                                              │

│ 00:00:35 #482 [Debug] >    at Hopac.Core.Cont.Do[[System.__Canon,            │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]](Hopac.Core.Cont`1<System.__Canon>,         │

│ Hopac.Core.Worker ByRef, System.__Canon)                                     │

│ 00:00:35 #483 [Debug] >    at Hopac.Core.JobThunk`1[[System.__Canon,         │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)                                           │

│ 00:00:35 #484 [Debug] >    at Hopac.Core.Job.Do[[System.__Canon,             │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]](Hopac.Job`1<System.__Canon>,               │

│ Hopac.Core.Worker ByRef, Hopac.Core.Cont`1<System.__Canon>)                  │

│ 00:00:35 #485 [Debug] >    at Hopac.Promise`1[[System.__Canon,               │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)                                           │

│ 00:00:35 #486 [Debug] >    at Hopac.Core.JobCont`2[[System.__Canon,          │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib,    │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)                                           │

│ 00:00:35 #487 [Debug] >    at Hopac.Core.ContBind`2[[System.__Canon,         │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib,    │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)                                                              │

│ 00:00:35 #488 [Debug] >    at Hopac.Core.Cont.Do[[System.__Canon,            │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]](Hopac.Core.Cont`1<System.__Canon>,         │

│ Hopac.Core.Worker ByRef, System.__Canon)                                     │

│ 00:00:35 #489 [Debug] >    at Hopac.Promise`1[[System.__Canon,               │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)                                           │

│ 00:00:35 #490 [Debug] >    at Hopac.Core.JobCont`2[[System.__Canon,          │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib,    │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)                                           │

│ 00:00:35 #491 [Debug] >    at Hopac.Core.Job.Do[[System.__Canon,             │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]](Hopac.Job`1<System.__Canon>,               │

│ Hopac.Core.Worker ByRef, Hopac.Core.Cont`1<System.__Canon>)                  │

│ 00:00:35 #492 [Debug] >    at Hopac.Promise`1[[System.__Canon,               │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)                                           │

│ 00:00:35 #493 [Debug] >    at Hopac.Core.JobCont`2[[System.__Canon,          │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib,    │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)                                           │

│ 00:00:35 #494 [Debug] >    at Hopac.Core.ContBind`2[[System.__Canon,         │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib,    │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)                                                              │

│ 00:00:35 #495 [Debug] >    at Hopac.Promise`1+Fulfill[[System.__Canon,       │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].Do(Hopac.Core.Worker ByRef,                │

│ System.__Canon)                                                              │

│ 00:00:35 #496 [Debug] >    at Hopac.Promise`1+Fulfill[[System.__Canon,       │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)                                                              │

│ 00:00:35 #497 [Debug] >    at Hopac.Core.ContMap`2[[System.__Canon,          │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib,    │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)                                                              │

│ 00:00:35 #498 [Debug] >    at Hopac.Promise`1+Fulfill[[System.__Canon,       │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].Do(Hopac.Core.Worker ByRef,                │

│ System.__Canon)                                                              │

│ 00:00:35 #499 [Debug] >    at Hopac.Promise`1+Fulfill[[System.__Canon,       │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)                                                              │

│ 00:00:35 #500 [Debug] >    at Hopac.Core.Cont.Do[[System.__Canon,            │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]](Hopac.Core.Cont`1<System.__Canon>,         │

│ Hopac.Core.Worker ByRef, System.__Canon)                                     │

│ 00:00:35 #501 [Debug] >    at Hopac.Core.JobThunk`1[[System.__Canon,         │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)                                           │

│ 00:00:35 #502 [Debug] >    at Hopac.Core.Job.Do[[System.__Canon,             │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]](Hopac.Job`1<System.__Canon>,               │

│ Hopac.Core.Worker ByRef, Hopac.Core.Cont`1<System.__Canon>)                  │

│ 00:00:35 #503 [Debug] >    at Hopac.Promise`1[[System.__Canon,               │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)                                           │

│ 00:00:35 #504 [Debug] >    at Hopac.Core.JobCont`2[[System.__Canon,          │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib,    │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)                                           │

│ 00:00:35 #505 [Debug] >    at Hopac.Core.ContBind`2[[System.__Canon,         │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib,    │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)                                                              │

│ 00:00:35 #506 [Debug] >    at Hopac.Core.Cont.Do[[System.__Canon,            │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]](Hopac.Core.Cont`1<System.__Canon>,         │

│ Hopac.Core.Worker ByRef, System.__Canon)                                     │

│ 00:00:35 #507 [Debug] >    at Hopac.Promise`1[[System.__Canon,               │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)                                           │

│ 00:00:35 #508 [Debug] >    at Hopac.Core.JobCont`2[[System.__Canon,          │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib,    │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)                                           │

│ 00:00:35 #509 [Debug] >    at Hopac.Core.Job.Do[[System.__Canon,             │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]](Hopac.Job`1<System.__Canon>,               │

│ Hopac.Core.Worker ByRef, Hopac.Core.Cont`1<System.__Canon>)                  │

│ 00:00:35 #510 [Debug] >    at Hopac.Promise`1[[System.__Canon,               │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)                                           │

│ 00:00:35 #511 [Debug] >    at Hopac.Core.JobCont`2[[System.__Canon,          │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib,    │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)                                           │

│ 00:00:35 #512 [Debug] >    at Hopac.Core.ContBind`2[[System.__Canon,         │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib,    │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)                                                              │

│ 00:00:35 #513 [Debug] >    at Hopac.Promise`1+Fulfill[[System.__Canon,       │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].Do(Hopac.Core.Worker ByRef,                │

│ System.__Canon)                                                              │

│ 00:00:35 #514 [Debug] >    at Hopac.Promise`1+Fulfill[[System.__Canon,       │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)                                                              │

│ 00:00:35 #515 [Debug] >    at Hopac.Core.ContMap`2[[System.__Canon,          │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib,    │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)                                                              │

│ 00:00:35 #516 [Debug] >    at Hopac.Promise`1+Fulfill[[System.__Canon,       │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].Do(Hopac.Core.Worker ByRef,                │

│ System.__Canon)                                                              │

│ 00:00:35 #517 [Debug] >    at Hopac.Promise`1+Fulfill[[System.__Canon,       │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)                                                              │

│ 00:00:35 #518 [Debug] >    at Hopac.Core.Cont.Do[[System.__Canon,            │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]](Hopac.Core.Cont`1<System.__Canon>,         │

│ Hopac.Core.Worker ByRef, System.__Canon)                                     │

│ 00:00:35 #519 [Debug] >    at Hopac.Core.JobThunk`1[[System.__Canon,         │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)                                           │

│ 00:00:35 #520 [Debug] >    at Hopac.Core.Job.Do[[System.__Canon,             │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]](Hopac.Job`1<System.__Canon>,               │

│ Hopac.Core.Worker ByRef, Hopac.Core.Cont`1<System.__Canon>)                  │

│ 00:00:35 #521 [Debug] >    at Hopac.Promise`1[[System.__Canon,               │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)                                           │

│ 00:00:35 #522 [Debug] >    at Hopac.Core.JobCont`2[[System.__Canon,          │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib,    │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)                                           │

│ 00:00:35 #523 [Debug] >    at Hopac.Core.ContBind`2[[System.__Canon,         │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib,    │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)                                                              │

│ 00:00:35 #524 [Debug] >    at Hopac.Core.Cont.Do[[System.__Canon,            │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]](Hopac.Core.Cont`1<System.__Canon>,         │

│ Hopac.Core.Worker ByRef, System.__Canon)                                     │

│ 00:00:35 #525 [Debug] >    at Hopac.Promise`1[[System.__Canon,               │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)                                           │

│ 00:00:35 #526 [Debug] >    at Hopac.Core.JobCont`2[[System.__Canon,          │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib,    │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)                                           │

│ 00:00:35 #527 [Debug] >    at Hopac.Core.Job.Do[[System.__Canon,             │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]](Hopac.Job`1<System.__Canon>,               │

│ Hopac.Core.Worker ByRef, Hopac.Core.Cont`1<System.__Canon>)                  │

│ 00:00:35 #528 [Debug] >    at Hopac.Promise`1[[System.__Canon,               │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)                                           │

│ 00:00:35 #529 [Debug] >    at Hopac.Core.JobCont`2[[System.__Canon,          │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib,    │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)                                           │

│ 00:00:35 #530 [Debug] >    at Hopac.Core.ContBind`2[[System.__Canon,         │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib,    │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)                                                              │

│ 00:00:35 #531 [Debug] >    at Hopac.Promise`1+Fulfill[[System.__Canon,       │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].Do(Hopac.Core.Worker ByRef,                │

│ System.__Canon)                                                              │

│ 00:00:35 #532 [Debug] >    at Hopac.Promise`1+Fulfill[[System.__Canon,       │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)                                                              │

│ 00:00:35 #533 [Debug] >    at Hopac.Core.ContMap`2[[System.__Canon,          │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib,    │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)                                                              │

│ 00:00:35 #534 [Debug] >    at Hopac.Promise`1+Fulfill[[System.__Canon,       │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].Do(Hopac.Core.Worker ByRef,                │

│ System.__Canon)                                                              │

│ 00:00:35 #535 [Debug] >    at Hopac.Promise`1+Fulfill[[System.__Canon,       │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)                                                              │

│ 00:00:35 #536 [Debug] >    at Hopac.Core.Cont.Do[[System.__Canon,            │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]](Hopac.Core.Cont`1<System.__Canon>,         │

│ Hopac.Core.Worker ByRef, System.__Canon)                                     │

│ 00:00:35 #537 [Debug] >    at Hopac.Core.JobThunk`1[[System.__Canon,         │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)                                           │

│ 00:00:35 #538 [Debug] >    at Hopac.Core.Job.Do[[System.__Canon,             │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]](Hopac.Job`1<System.__Canon>,               │

│ Hopac.Core.Worker ByRef, Hopac.Core.Cont`1<System.__Canon>)                  │

│ 00:00:35 #539 [Debug] >    at Hopac.Promise`1[[System.__Canon,               │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)                                           │

│ 00:00:35 #540 [Debug] >    at Hopac.Core.JobCont`2[[System.__Canon,          │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib,    │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)                                           │

│ 00:00:35 #541 [Debug] >    at Hopac.Core.ContBind`2[[System.__Canon,         │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib,    │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)                                                              │

│ 00:00:35 #542 [Debug] >    at Hopac.Core.Cont.Do[[System.__Canon,            │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]](Hopac.Core.Cont`1<System.__Canon>,         │

│ Hopac.Core.Worker ByRef, System.__Canon)                                     │

│ 00:00:35 #543 [Debug] >    at Hopac.Promise`1[[System.__Canon,               │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)                                           │

│ 00:00:35 #544 [Debug] >    at Hopac.Core.JobCont`2[[System.__Canon,          │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib,    │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)                                           │

│ 00:00:35 #545 [Debug] >    at Hopac.Core.ContBind`2[[System.__Canon,         │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib,    │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)                                                              │

│ 00:00:35 #546 [Debug] >    at Hopac.Promise`1+Fulfill[[System.__Canon,       │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].Do(Hopac.Core.Worker ByRef,                │

│ System.__Canon)                                                              │

│ 00:00:35 #547 [Debug] >    at Hopac.Promise`1+Fulfill[[System.__Canon,       │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)                                                              │

│ 00:00:35 #548 [Debug] >    at Hopac.Core.ContMap`2[[System.__Canon,          │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib,    │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)                                                              │

│ 00:00:35 #549 [Debug] >    at Hopac.Promise`1+Fulfill[[System.__Canon,       │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].Do(Hopac.Core.Worker ByRef,                │

│ System.__Canon)                                                              │

│ 00:00:35 #550 [Debug] >    at Hopac.Promise`1+Fulfill[[System.__Canon,       │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)                                                              │

│ 00:00:35 #551 [Debug] >    at Hopac.Core.ContMap`2[[System.__Canon,          │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib,    │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)                                                              │

│ 00:00:35 #552 [Debug] >    at Hopac.Core.Cont.Do[[System.__Canon,            │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]](Hopac.Core.Cont`1<System.__Canon>,         │

│ Hopac.Core.Worker ByRef, System.__Canon)                                     │

│ 00:00:35 #553 [Debug] >    at Hopac.Promise`1[[System.__Canon,               │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)                                           │

│ 00:00:35 #554 [Debug] >    at Hopac.Core.JobCont`2[[System.__Canon,          │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib,    │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)                                           │

│ 00:00:35 #555 [Debug] >    at Hopac.Core.ContBind`2[[System.__Canon,         │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib,    │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)                                                              │

│ 00:00:35 #556 [Debug] >    at Hopac.Promise`1+Fulfill[[System.__Canon,       │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].Do(Hopac.Core.Worker ByRef,                │

│ System.__Canon)                                                              │

│ 00:00:35 #557 [Debug] >    at Hopac.Promise`1+Fulfill[[System.__Canon,       │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)                                                              │

│ 00:00:35 #558 [Debug] >    at Hopac.Promise`1+Fulfill[[System.__Canon,       │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].Do(Hopac.Core.Worker ByRef,                │

│ System.__Canon)                                                              │

│ 00:00:35 #559 [Debug] >    at Hopac.Promise`1+Fulfill[[System.__Canon,       │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)                                                              │

│ 00:00:35 #560 [Debug] >    at Hopac.Core.ContMap`2[[System.__Canon,          │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib,    │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)                                                              │

│ 00:00:35 #561 [Debug] >    at Hopac.Core.Cont.Do[[System.__Canon,            │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]](Hopac.Core.Cont`1<System.__Canon>,         │

│ Hopac.Core.Worker ByRef, System.__Canon)                                     │

│ 00:00:35 #562 [Debug] >    at Hopac.Promise`1[[System.__Canon,               │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)                                           │

│ 00:00:35 #563 [Debug] >    at Hopac.Core.JobCont`2[[System.__Canon,          │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib,    │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)                                           │

│ 00:00:35 #564 [Debug] >    at Hopac.Core.JobWork`1[[System.__Canon,          │

│ System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,                    │

│ PublicKeyToken=7cec85d7bea7798e]].DoWork(Hopac.Core.Worker ByRef)            │

│ 00:00:35 #565 [Debug] >    at Hopac.Core.Worker.Run(Hopac.Scheduler, Int32)  │

│ 00:00:35 #566 [Debug] >    at Hopac.Platform.Scheduler+thread@30.Invoke()    │

│ 00:00:35 #567 [Debug] >    at                                                │

│ System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionCont │

│ ext, System.Threading.ContextCallback, System.Object)                        │

│ 00:00:35 #569 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:36 #571 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:37 #573 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:38 #575 [Debug] buildFile / takeWhileInclusive / fsxContent:  /        │

│ errors: [] / typeErrorCount: 0                                               │

│ 00:00:39 #577 [Debug] executeAsync / exitCode: -1073741571 / output.Length:  │

│ 177108                                                                       │

│ 00:00:39 #578 [Debug] awaitCompiler / exitCode: -1073741571 / result: pwd:   │

│ C:\home\git\polyglot\apps\spiral                                             │

│ dll_path: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language  │

│ 2\artifacts\bin\The Spiral Language 2\release                                │

│ Server bound to: http://localhost:13805                                      │

│ Building                                                                     │

│ C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1405-3544-4412-4cd37 │

│ 75c1d44\main.spi                                                             │

│ [Stack overflow.]                                                            │

│ [Repeat 3 times:]                                                            │

│ [--------------------------------]                                           │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [--------------------------------]                                           │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at                                                                       │

│ System.Runtime.CompilerServices.RuntimeHelpers.DispatchTailCalls(IntPtr,     │

│ Void (IntPtr, Byte ByRef,                                                    │

│ System.Runtime.CompilerServices.PortableTailCallFrame*), Byte ByRef)]        │

│ [   at Spiral.PartEval.Main.term@684-65(TopEnv,                              │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term_scope''@574(TopEnv,                         │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.term_scope'@578(TopEnv,                          │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv,                │

│ System.Collections.Generic.Dictionary`2<TypedOp,Data>, E)]                   │

│ [   at Spiral.PartEval.Main.term_scope@579(TopEnv,                           │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`2<RData[],Ty[                 │

│ ]>>,System.Tuple`3<Microsoft.FSharp.Core.FSharpOption`1<TypedBind[           │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>,Microsoft.FSharp.Core.FSharpOpti │

│ on`1<System.String>>>,HashConsTable>>,                                       │

│ System.Collections.Generic.Dictionary`2<E,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<System.Tuple`4<RData[],Ty[                 │

│ ],Ty,Ty>>,Microsoft.FSharp.Core.FSharpOption`1<System.Tuple`2<Data,TypedBind │

│ []>>>,HashConsTable>>,                                                       │

│ System.Collections.Generic.Dictionary`2<T,System.Tuple`2<System.Collections. │

│ Generic.Dictionary`2<ConsedNode`1<Ty[                                        │

│ ]>,Microsoft.FSharp.Core.FSharpOption`1<Ty>>,HashConsTable>>,                │

│ Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpFunc`2<Micr │

│ osoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>, LangEnv, E)]            │

│ [   at Spiral.PartEval.Main.peval(TopEnv, E)]                                │

│ [   at Spiral.Supervisor.file_build$cont@383(System.String, SupervisorState, │

│ PrepassTopEnv, Microsoft.FSharp.Core.FSharpOption`1<E>,                      │

│ Microsoft.FSharp.Core.Unit)]                                                 │

│ [   at Spiral.Supervisor.x2yJ@1-28(SupervisorErrorSources, System.String,    │

│ System.String, SupervisorState, PrepassTopEnv)]                              │

│ [   at Spiral.Supervisor+x2yJ@380-41.Do(PrepassTopEnv)]                      │

│ [   at Hopac.Core.ContBind`2[[System.__Canon, System.Private.CoreLib,        │

│ Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[         │

│ System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,    │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)]                                                             │

│ [   at Hopac.Job+result@1000-1[[System.__Canon, System.Private.CoreLib,      │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)]                                          │

│ [   at Hopac.Core.ContBind`2[[System.__Canon, System.Private.CoreLib,        │

│ Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[         │

│ System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,    │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)]                                                             │

│ [   at Hopac.Promise`1+Fulfill[[System.__Canon, System.Private.CoreLib,      │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].Do(Hopac.Core.Worker ByRef,                │

│ System.__Canon)]                                                             │

│ [   at Hopac.Promise`1+Fulfill[[System.__Canon, System.Private.CoreLib,      │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)]                                                             │

│ [   at Hopac.Job+result@1000-1[[System.__Canon, System.Private.CoreLib,      │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)]                                          │

│ [   at Hopac.Core.ContBind`2[[System.__Canon, System.Private.CoreLib,        │

│ Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[         │

│ System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,    │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)]                                                             │

│ [   at Hopac.Core.Cont.Do[[System.__Canon, System.Private.CoreLib,           │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]](Hopac.Core.Cont`1<System.__Canon>,         │

│ Hopac.Core.Worker ByRef, System.__Canon)]                                    │

│ [   at Hopac.Promise`1[[System.__Canon, System.Private.CoreLib,              │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)]                                          │

│ [   at Hopac.Core.JobCont`2[[System.__Canon, System.Private.CoreLib,         │

│ Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[         │

│ System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,    │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)]                                          │

│ [   at Hopac.Core.Job.Do[[System.__Canon, System.Private.CoreLib,            │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]](Hopac.Job`1<System.__Canon>,               │

│ Hopac.Core.Worker ByRef, Hopac.Core.Cont`1<System.__Canon>)]                 │

│ [   at Hopac.Promise`1[[System.__Canon, System.Private.CoreLib,              │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)]                                          │

│ [   at Hopac.Core.JobCont`2[[System.__Canon, System.Private.CoreLib,         │

│ Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[         │

│ System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,    │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)]                                          │

│ [   at Hopac.Core.ContBind`2[[System.__Canon, System.Private.CoreLib,        │

│ Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[         │

│ System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,    │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)]                                                             │

│ [   at Hopac.Promise`1+Fulfill[[System.__Canon, System.Private.CoreLib,      │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].Do(Hopac.Core.Worker ByRef,                │

│ System.__Canon)]                                                             │

│ [   at Hopac.Promise`1+Fulfill[[System.__Canon, System.Private.CoreLib,      │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)]                                                             │

│ [   at Hopac.Core.ContMap`2[[System.__Canon, System.Private.CoreLib,         │

│ Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[         │

│ System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,    │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)]                                                             │

│ [   at Hopac.Promise`1+Fulfill[[System.__Canon, System.Private.CoreLib,      │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].Do(Hopac.Core.Worker ByRef,                │

│ System.__Canon)]                                                             │

│ [   at Hopac.Promise`1+Fulfill[[System.__Canon, System.Private.CoreLib,      │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)]                                                             │

│ [   at Hopac.Core.Cont.Do[[System.__Canon, System.Private.CoreLib,           │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]](Hopac.Core.Cont`1<System.__Canon>,         │

│ Hopac.Core.Worker ByRef, System.__Canon)]                                    │

│ [   at Hopac.Core.JobThunk`1[[System.__Canon, System.Private.CoreLib,        │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)]                                          │

│ [   at Hopac.Core.Job.Do[[System.__Canon, System.Private.CoreLib,            │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]](Hopac.Job`1<System.__Canon>,               │

│ Hopac.Core.Worker ByRef, Hopac.Core.Cont`1<System.__Canon>)]                 │

│ [   at Hopac.Promise`1[[System.__Canon, System.Private.CoreLib,              │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)]                                          │

│ [   at Hopac.Core.JobCont`2[[System.__Canon, System.Private.CoreLib,         │

│ Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[         │

│ System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,    │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)]                                          │

│ [   at Hopac.Core.ContBind`2[[System.__Canon, System.Private.CoreLib,        │

│ Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[         │

│ System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,    │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)]                                                             │

│ [   at Hopac.Core.Cont.Do[[System.__Canon, System.Private.CoreLib,           │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]](Hopac.Core.Cont`1<System.__Canon>,         │

│ Hopac.Core.Worker ByRef, System.__Canon)]                                    │

│ [   at Hopac.Promise`1[[System.__Canon, System.Private.CoreLib,              │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)]                                          │

│ [   at Hopac.Core.JobCont`2[[System.__Canon, System.Private.CoreLib,         │

│ Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[         │

│ System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,    │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)]                                          │

│ [   at Hopac.Core.Job.Do[[System.__Canon, System.Private.CoreLib,            │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]](Hopac.Job`1<System.__Canon>,               │

│ Hopac.Core.Worker ByRef, Hopac.Core.Cont`1<System.__Canon>)]                 │

│ [   at Hopac.Promise`1[[System.__Canon, System.Private.CoreLib,              │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)]                                          │

│ [   at Hopac.Core.JobCont`2[[System.__Canon, System.Private.CoreLib,         │

│ Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[         │

│ System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,    │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)]                                          │

│ [   at Hopac.Core.ContBind`2[[System.__Canon, System.Private.CoreLib,        │

│ Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[         │

│ System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,    │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)]                                                             │

│ [   at Hopac.Promise`1+Fulfill[[System.__Canon, System.Private.CoreLib,      │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].Do(Hopac.Core.Worker ByRef,                │

│ System.__Canon)]                                                             │

│ [   at Hopac.Promise`1+Fulfill[[System.__Canon, System.Private.CoreLib,      │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)]                                                             │

│ [   at Hopac.Core.ContMap`2[[System.__Canon, System.Private.CoreLib,         │

│ Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[         │

│ System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,    │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)]                                                             │

│ [   at Hopac.Promise`1+Fulfill[[System.__Canon, System.Private.CoreLib,      │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].Do(Hopac.Core.Worker ByRef,                │

│ System.__Canon)]                                                             │

│ [   at Hopac.Promise`1+Fulfill[[System.__Canon, System.Private.CoreLib,      │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)]                                                             │

│ [   at Hopac.Core.Cont.Do[[System.__Canon, System.Private.CoreLib,           │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]](Hopac.Core.Cont`1<System.__Canon>,         │

│ Hopac.Core.Worker ByRef, System.__Canon)]                                    │

│ [   at Hopac.Core.JobThunk`1[[System.__Canon, System.Private.CoreLib,        │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)]                                          │

│ [   at Hopac.Core.Job.Do[[System.__Canon, System.Private.CoreLib,            │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]](Hopac.Job`1<System.__Canon>,               │

│ Hopac.Core.Worker ByRef, Hopac.Core.Cont`1<System.__Canon>)]                 │

│ [   at Hopac.Promise`1[[System.__Canon, System.Private.CoreLib,              │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)]                                          │

│ [   at Hopac.Core.JobCont`2[[System.__Canon, System.Private.CoreLib,         │

│ Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[         │

│ System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,    │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)]                                          │

│ [   at Hopac.Core.ContBind`2[[System.__Canon, System.Private.CoreLib,        │

│ Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[         │

│ System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,    │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)]                                                             │

│ [   at Hopac.Core.Cont.Do[[System.__Canon, System.Private.CoreLib,           │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]](Hopac.Core.Cont`1<System.__Canon>,         │

│ Hopac.Core.Worker ByRef, System.__Canon)]                                    │

│ [   at Hopac.Promise`1[[System.__Canon, System.Private.CoreLib,              │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)]                                          │

│ [   at Hopac.Core.JobCont`2[[System.__Canon, System.Private.CoreLib,         │

│ Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[         │

│ System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,    │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)]                                          │

│ [   at Hopac.Core.Job.Do[[System.__Canon, System.Private.CoreLib,            │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]](Hopac.Job`1<System.__Canon>,               │

│ Hopac.Core.Worker ByRef, Hopac.Core.Cont`1<System.__Canon>)]                 │

│ [   at Hopac.Promise`1[[System.__Canon, System.Private.CoreLib,              │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)]                                          │

│ [   at Hopac.Core.JobCont`2[[System.__Canon, System.Private.CoreLib,         │

│ Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[         │

│ System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,    │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)]                                          │

│ [   at Hopac.Core.ContBind`2[[System.__Canon, System.Private.CoreLib,        │

│ Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[         │

│ System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,    │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)]                                                             │

│ [   at Hopac.Promise`1+Fulfill[[System.__Canon, System.Private.CoreLib,      │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].Do(Hopac.Core.Worker ByRef,                │

│ System.__Canon)]                                                             │

│ [   at Hopac.Promise`1+Fulfill[[System.__Canon, System.Private.CoreLib,      │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)]                                                             │

│ [   at Hopac.Core.ContMap`2[[System.__Canon, System.Private.CoreLib,         │

│ Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[         │

│ System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,    │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)]                                                             │

│ [   at Hopac.Promise`1+Fulfill[[System.__Canon, System.Private.CoreLib,      │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].Do(Hopac.Core.Worker ByRef,                │

│ System.__Canon)]                                                             │

│ [   at Hopac.Promise`1+Fulfill[[System.__Canon, System.Private.CoreLib,      │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)]                                                             │

│ [   at Hopac.Core.Cont.Do[[System.__Canon, System.Private.CoreLib,           │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]](Hopac.Core.Cont`1<System.__Canon>,         │

│ Hopac.Core.Worker ByRef, System.__Canon)]                                    │

│ [   at Hopac.Core.JobThunk`1[[System.__Canon, System.Private.CoreLib,        │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)]                                          │

│ [   at Hopac.Core.Job.Do[[System.__Canon, System.Private.CoreLib,            │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]](Hopac.Job`1<System.__Canon>,               │

│ Hopac.Core.Worker ByRef, Hopac.Core.Cont`1<System.__Canon>)]                 │

│ [   at Hopac.Promise`1[[System.__Canon, System.Private.CoreLib,              │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)]                                          │

│ [   at Hopac.Core.JobCont`2[[System.__Canon, System.Private.CoreLib,         │

│ Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[         │

│ System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,    │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)]                                          │

│ [   at Hopac.Core.ContBind`2[[System.__Canon, System.Private.CoreLib,        │

│ Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[         │

│ System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,    │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)]                                                             │

│ [   at Hopac.Core.Cont.Do[[System.__Canon, System.Private.CoreLib,           │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]](Hopac.Core.Cont`1<System.__Canon>,         │

│ Hopac.Core.Worker ByRef, System.__Canon)]                                    │

│ [   at Hopac.Promise`1[[System.__Canon, System.Private.CoreLib,              │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)]                                          │

│ [   at Hopac.Core.JobCont`2[[System.__Canon, System.Private.CoreLib,         │

│ Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[         │

│ System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,    │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)]                                          │

│ [   at Hopac.Core.Job.Do[[System.__Canon, System.Private.CoreLib,            │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]](Hopac.Job`1<System.__Canon>,               │

│ Hopac.Core.Worker ByRef, Hopac.Core.Cont`1<System.__Canon>)]                 │

│ [   at Hopac.Promise`1[[System.__Canon, System.Private.CoreLib,              │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)]                                          │

│ [   at Hopac.Core.JobCont`2[[System.__Canon, System.Private.CoreLib,         │

│ Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[         │

│ System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,    │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)]                                          │

│ [   at Hopac.Core.ContBind`2[[System.__Canon, System.Private.CoreLib,        │

│ Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[         │

│ System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,    │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)]                                                             │

│ [   at Hopac.Promise`1+Fulfill[[System.__Canon, System.Private.CoreLib,      │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].Do(Hopac.Core.Worker ByRef,                │

│ System.__Canon)]                                                             │

│ [   at Hopac.Promise`1+Fulfill[[System.__Canon, System.Private.CoreLib,      │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)]                                                             │

│ [   at Hopac.Core.ContMap`2[[System.__Canon, System.Private.CoreLib,         │

│ Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[         │

│ System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,    │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)]                                                             │

│ [   at Hopac.Promise`1+Fulfill[[System.__Canon, System.Private.CoreLib,      │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].Do(Hopac.Core.Worker ByRef,                │

│ System.__Canon)]                                                             │

│ [   at Hopac.Promise`1+Fulfill[[System.__Canon, System.Private.CoreLib,      │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)]                                                             │

│ [   at Hopac.Core.Cont.Do[[System.__Canon, System.Private.CoreLib,           │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]](Hopac.Core.Cont`1<System.__Canon>,         │

│ Hopac.Core.Worker ByRef, System.__Canon)]                                    │

│ [   at Hopac.Core.JobThunk`1[[System.__Canon, System.Private.CoreLib,        │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)]                                          │

│ [   at Hopac.Core.Job.Do[[System.__Canon, System.Private.CoreLib,            │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]](Hopac.Job`1<System.__Canon>,               │

│ Hopac.Core.Worker ByRef, Hopac.Core.Cont`1<System.__Canon>)]                 │

│ [   at Hopac.Promise`1[[System.__Canon, System.Private.CoreLib,              │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)]                                          │

│ [   at Hopac.Core.JobCont`2[[System.__Canon, System.Private.CoreLib,         │

│ Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[         │

│ System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,    │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)]                                          │

│ [   at Hopac.Core.ContBind`2[[System.__Canon, System.Private.CoreLib,        │

│ Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[         │

│ System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,    │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)]                                                             │

│ [   at Hopac.Core.Cont.Do[[System.__Canon, System.Private.CoreLib,           │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]](Hopac.Core.Cont`1<System.__Canon>,         │

│ Hopac.Core.Worker ByRef, System.__Canon)]                                    │

│ [   at Hopac.Promise`1[[System.__Canon, System.Private.CoreLib,              │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)]                                          │

│ [   at Hopac.Core.JobCont`2[[System.__Canon, System.Private.CoreLib,         │

│ Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[         │

│ System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,    │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)]                                          │

│ [   at Hopac.Core.ContBind`2[[System.__Canon, System.Private.CoreLib,        │

│ Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[         │

│ System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,    │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)]                                                             │

│ [   at Hopac.Promise`1+Fulfill[[System.__Canon, System.Private.CoreLib,      │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].Do(Hopac.Core.Worker ByRef,                │

│ System.__Canon)]                                                             │

│ [   at Hopac.Promise`1+Fulfill[[System.__Canon, System.Private.CoreLib,      │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)]                                                             │

│ [   at Hopac.Core.ContMap`2[[System.__Canon, System.Private.CoreLib,         │

│ Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[         │

│ System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,    │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)]                                                             │

│ [   at Hopac.Promise`1+Fulfill[[System.__Canon, System.Private.CoreLib,      │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].Do(Hopac.Core.Worker ByRef,                │

│ System.__Canon)]                                                             │

│ [   at Hopac.Promise`1+Fulfill[[System.__Canon, System.Private.CoreLib,      │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)]                                                             │

│ [   at Hopac.Core.ContMap`2[[System.__Canon, System.Private.CoreLib,         │

│ Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[         │

│ System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,    │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)]                                                             │

│ [   at Hopac.Core.Cont.Do[[System.__Canon, System.Private.CoreLib,           │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]](Hopac.Core.Cont`1<System.__Canon>,         │

│ Hopac.Core.Worker ByRef, System.__Canon)]                                    │

│ [   at Hopac.Promise`1[[System.__Canon, System.Private.CoreLib,              │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)]                                          │

│ [   at Hopac.Core.JobCont`2[[System.__Canon, System.Private.CoreLib,         │

│ Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[         │

│ System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,    │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)]                                          │

│ [   at Hopac.Core.ContBind`2[[System.__Canon, System.Private.CoreLib,        │

│ Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[         │

│ System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,    │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)]                                                             │

│ [   at Hopac.Promise`1+Fulfill[[System.__Canon, System.Private.CoreLib,      │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].Do(Hopac.Core.Worker ByRef,                │

│ System.__Canon)]                                                             │

│ [   at Hopac.Promise`1+Fulfill[[System.__Canon, System.Private.CoreLib,      │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)]                                                             │

│ [   at Hopac.Promise`1+Fulfill[[System.__Canon, System.Private.CoreLib,      │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].Do(Hopac.Core.Worker ByRef,                │

│ System.__Canon)]                                                             │

│ [   at Hopac.Promise`1+Fulfill[[System.__Canon, System.Private.CoreLib,      │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)]                                                             │

│ [   at Hopac.Core.ContMap`2[[System.__Canon, System.Private.CoreLib,         │

│ Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[         │

│ System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,    │

│ PublicKeyToken=7cec85d7bea7798e]].DoCont(Hopac.Core.Worker ByRef,            │

│ System.__Canon)]                                                             │

│ [   at Hopac.Core.Cont.Do[[System.__Canon, System.Private.CoreLib,           │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]](Hopac.Core.Cont`1<System.__Canon>,         │

│ Hopac.Core.Worker ByRef, System.__Canon)]                                    │

│ [   at Hopac.Promise`1[[System.__Canon, System.Private.CoreLib,              │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)]                                          │

│ [   at Hopac.Core.JobCont`2[[System.__Canon, System.Private.CoreLib,         │

│ Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[         │

│ System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,    │

│ PublicKeyToken=7cec85d7bea7798e]].DoJob(Hopac.Core.Worker ByRef,             │

│ Hopac.Core.Cont`1<System.__Canon>)]                                          │

│ [   at Hopac.Core.JobWork`1[[System.__Canon, System.Private.CoreLib,         │

│ Version=8.0.0.0, Culture=neutral,                                            │

│ PublicKeyToken=7cec85d7bea7798e]].DoWork(Hopac.Core.Worker ByRef)]           │

│ [   at Hopac.Core.Worker.Run(Hopac.Scheduler, Int32)]                        │

│ [   at Hopac.Platform.Scheduler+thread@30.Invoke()]                          │

│ [   at                                                                       │

│ System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionCont │

│ ext, System.Threading.ContextCallback, System.Object)]                       │

│ 00:00:39 #579 [Critical] buildFile / error: System.AggregateException: One   │

│ or more errors occurred. (One or more errors occurred. (A task was           │

│ canceled.))                                                                  │

│ 00:00:39 #580 [Debug] watchWithFilter / Disposing watch stream / filter:     │

│ FileName, LastWrite                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## getFileTokenRange                                                         │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline getFileTokenRange port cancellationToken path = async {

    let fullPath = path |> System.IO.Path.GetFullPath

    let! code = fullPath |> FileSystem.readAllTextAsync

    let lines = code |> String.split [[| '\n' |]]



    let token, disposable = Threading.newDisposableToken cancellationToken

    use _ = disposable



    let! serverPort, _errors, ct, disposable = awaitCompiler port (Some token)

    use _ = disposable



    let fileOpenObj = {| FileOpen = {| uri = fullPath |> getFileUri; spiText = 

code |} |}

    let! _fileOpenResult = fileOpenObj |> sendObj serverPort



    let fileTokenRangeObj =

        {|

            FileTokenRange =

                {|

                    uri = fullPath |> getFileUri

                    range =

                        [[|

                            {| line = 0; character = 0 |}

                            {| line = lines.Length - 1; character = 

lines.[[lines.Length - 1]].Length |}

                        |]]

                |}

        |}

    let! fileTokenRangeResult =

        fileTokenRangeObj

        |> sendObj serverPort

        |> Async.withCancellationToken ct



    return fileTokenRangeResult |> Option.map FSharp.Json.Json.deserialize<int 

array>

}



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## getCodeTokenRange                                                         │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let inline getCodeTokenRange cancellationToken code = async {

    let! mainPath, disposable = persistCode code

    use _ = disposable

    let port = getCompilerPort ()

    return! mainPath |> getFileTokenRange port cancellationToken

}



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"""inl main () = ()"""

|> getCodeTokenRange None

|> Async.runWithTimeout 10000

|> Option.flatten

|> _equal (Some [[| 0; 0; 3; 7; 0; 0; 4; 4; 0; 0; 0; 5; 1; 8; 0; 0; 1; 1; 8; 0; 

0; 2; 1; 4; 0; 0;

2; 1; 8; 0; 0; 1; 1; 8; 0 |]])



╭─[ 4.85s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:50 #592 [Debug] runWithTimeoutAsync / timeout: 60                      │

│ 00:00:50 #593 [Debug] executeAsync / options: { Command =                    │

│    "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral         │

│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll"           │

│ port=13805"                                                                  │

│   WorkingDirectory = None                                                    │

│   CancellationToken = Some System.Threading.CancellationToken                │

│   OnLine = Some <fun:it@4-434> }                                             │

│ 00:00:51 #594 [Debug] > pwd: C:\home\git\polyglot\apps\spiral                │

│ 00:00:51 #595 [Debug] > dll_path:                                            │

│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │

│ 2\artifacts\bin\The Spiral Language 2\release                                │

│ 00:00:51 #596 [Debug] runWithTimeoutAsync / timeout: 500                     │

│ 00:00:51 #597 [Verbose] waitForPortAccess / port: 13805 / retry: 0           │

│ 00:00:51 #599 [Debug] sendJson / port: 13805 / json: {"Ping":true} /         │

│ result.Length:                                                               │

│ 00:00:51 #600 [Verbose] awaitCompiler / Ping / result: Some(null) / port:    │

│ 13805 / retry: 0                                                             │

│ 00:00:51 #601 [Debug] > Server bound to: http://localhost:13805              │

│ 00:00:51 #602 [Debug] sendJson / port: 13805 / json:                         │

│ {"FileOpen":{"spiText":"inl main () =                                        │

│ ()","uri":"file:///C:\\Users\\i574n\\AppData\\Local\\Temp\\!dotnet-repl\\202 │

│ 31025-1405-5325-2593-22b3b6f8e40e\\main.spi"}} / result.Length:              │

│ 00:00:52 #603 [Debug] sendJson / port: 13805 / json:                         │

│ {"FileTokenRange":{"range":[                                                 │

│ {"character":0,"line":0},{"character":16,"line":0}],"uri":"file:///C:\\Users │

│ \\i574n\\AppData\\Local\\Temp\\!dotnet-repl\\20231025-1405-5325-2593-22b3b6f │

│ 8e40e\\main.spi"}} / result.Length: Some(213)                                │

│ FSharpOption<Int32[]>                                                        │

│       Value: [ 0, 0, 3, 7, 0, 0, 4, 4, 0, 0, 0, 5, 1, 8, 0, 0, 1, 1, 8, 0,   │

│ 0, 2, 1, 4, 0, 0, 2, 1, 8, 0, 0, 1, 1, 8, 0 ]                                │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



"""inl main () = 1i32"""

|> getCodeTokenRange None

|> Async.runWithTimeout 10000

|> Option.flatten

|> _equal (Some [[| 0; 0; 3; 7; 0; 0; 4; 4; 0; 0; 0; 5; 1; 8; 0; 0; 1; 1; 8; 0; 

0; 2; 1; 4; 0; 0;

2; 1; 3; 0; 0; 1; 3; 12; 0 |]])



╭─[ 5.18s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:56 #607 [Debug] runWithTimeoutAsync / timeout: 60                      │

│ 00:00:56 #608 [Debug] executeAsync / options: { Command =                    │

│    "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral         │

│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll"           │

│ port=13805"                                                                  │

│   WorkingDirectory = None                                                    │

│   CancellationToken = Some System.Threading.CancellationToken                │

│   OnLine = Some <fun:it@4-801> }                                             │

│ 00:00:56 #609 [Debug] > pwd: C:\home\git\polyglot\apps\spiral                │

│ 00:00:56 #610 [Debug] > dll_path:                                            │

│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │

│ 2\artifacts\bin\The Spiral Language 2\release                                │

│ 00:00:56 #612 [Debug] runWithTimeoutAsync / timeout: 500                     │

│ 00:00:56 #613 [Verbose] waitForPortAccess / port: 13805 / retry: 0           │

│ 00:00:56 #614 [Debug] sendJson / port: 13805 / json: {"Ping":true} /         │

│ result.Length:                                                               │

│ 00:00:56 #615 [Verbose] awaitCompiler / Ping / result: Some(null) / port:    │

│ 13805 / retry: 0                                                             │

│ 00:00:56 #616 [Debug] > Server bound to: http://localhost:13805              │

│ 00:00:56 #617 [Debug] sendJson / port: 13805 / json:                         │

│ {"FileOpen":{"spiText":"inl main () =                                        │

│ 1i32","uri":"file:///C:\\Users\\i574n\\AppData\\Local\\Temp\\!dotnet-repl\\2 │

│ 0231025-1405-5840-4047-477e52d8a389\\main.spi"}} / result.Length:            │

│ 00:00:57 #619 [Debug] sendJson / port: 13805 / json:                         │

│ {"FileTokenRange":{"range":[                                                 │

│ {"character":0,"line":0},{"character":18,"line":0}],"uri":"file:///C:\\Users │

│ \\i574n\\AppData\\Local\\Temp\\!dotnet-repl\\20231025-1405-5840-4047-477e52d │

│ 8a389\\main.spi"}} / result.Length: Some(214)                                │

│ FSharpOption<Int32[]>                                                        │

│       Value: [ 0, 0, 3, 7, 0, 0, 4, 4, 0, 0, 0, 5, 1, 8, 0, 0, 1, 1, 8, 0,   │

│ 0, 2, 1, 4, 0, 0, 2, 1, 3, 0, 0, 1, 3, 12, 0 ]                               │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## Arguments                                                                 │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

[[<RequireQualifiedAccess>]]

type Arguments =

    | BuildFile of string * string

    | FileTokenRange of string * string

    | ExecuteCommand of string

    | Timeout of int

    | Port of int



    interface Argu.IArgParserTemplate with

        member s.Usage =

            match s with

            | BuildFile _ -> nameof BuildFile

            | FileTokenRange _ -> nameof FileTokenRange

            | ExecuteCommand _ -> nameof ExecuteCommand

            | Timeout _ -> nameof Timeout

            | Port _ -> nameof Port



── markdown ────────────────────────────────────────────────────────────────────

╭──────────────────────────────────────────────────────────────────────────────╮

│ ## main                                                                      │

╰──────────────────────────────────────────────────────────────────────────────╯



── fsharp ──────────────────────────────────────────────────────────────────────

let main args =

    let argsMap = args |> Runtime.parseArgsMap<Arguments>



    let buildFileActions =

        argsMap

        |> Map.tryFind (nameof Arguments.BuildFile)

        |> Option.defaultValue [[]]

        |> List.choose (function

            | Arguments.BuildFile (inputPath, outputPath) -> Some (inputPath, 

outputPath)

            | _ -> None

        )



    let fileTokenRangeActions =

        argsMap

        |> Map.tryFind (nameof Arguments.FileTokenRange)

        |> Option.defaultValue [[]]

        |> List.choose (function

            | Arguments.FileTokenRange (inputPath, outputPath) -> Some 

(inputPath, outputPath)

            | _ -> None

        )



    let executeCommandActions =

        argsMap

        |> Map.tryFind (nameof Arguments.ExecuteCommand)

        |> Option.defaultValue [[]]

        |> List.choose (function

            | Arguments.ExecuteCommand command -> Some command

            | _ -> None

        )



    let timeout =

        match argsMap |> Map.tryFind (nameof Arguments.Timeout) with

        | Some [[ Arguments.Timeout timeout ]] -> timeout

        | _ -> 60000 * 60



    let port =

        match argsMap |> Map.tryFind (nameof Arguments.Port) with

        | Some [[ Arguments.Port port ]] -> Some port

        | _ -> None



    async {

        let! buildFileResult =

            buildFileActions

            |> List.map (fun (inputPath, outputPath) -> async {

                let port = port |> Option.defaultWith getCompilerPort

                let! outputCode, errors = inputPath |> buildFile timeout port 

None

                

                errors

                |> List.map snd

                |> List.iter (fun error ->

                    trace Critical (fun () -> $"main / error: {error}") 

getLocals

                )



                match outputCode with

                | Some outputCode ->

                    do! outputCode |> FileSystem.writeAllTextAsync outputPath

                    return 0

                | None ->

                    return 1

            })

            |> Async.Sequential



        let! fileTokenRangeResult =

            fileTokenRangeActions

            |> List.map (fun (inputPath, outputPath) -> async {

                let port = port |> Option.defaultWith getCompilerPort

                let! tokenRange = inputPath |> getFileTokenRange port None

                match tokenRange with

                | Some tokenRange ->

                    do! tokenRange |> FSharp.Json.Json.serialize |> 

FileSystem.writeAllTextAsync outputPath

                    return 0

                | None ->

                    return 1

            })

            |> Async.Sequential

        

        let! executeCommandResult =

            executeCommandActions

            |> List.map (fun command -> async {

                let port = port |> Option.defaultWith getCompilerPort



                let localToken, disposable = Threading.newDisposableToken None

                use _ = disposable



                let! serverPort, _errors, compilerToken, disposable = 

awaitCompiler port (Some localToken)

                use _ = disposable

                

                let! exitCode, result =

                    Runtime.executeWithOptionsAsync

                        {

                            Command = command

                            CancellationToken = Some compilerToken

                            WorkingDirectory = None

                            OnLine = None

                        }



                trace Debug (fun () -> $"main / executeCommand / exitCode: 

{exitCode}") getLocals



                return exitCode

            })

            |> Async.Sequential

            

        return

            [[| buildFileResult; fileTokenRangeResult; executeCommandResult |]]

            |> Array.collect id

            |> Array.sum

    }

    |> Async.runWithTimeout timeout

    |> Option.defaultValue 1



── fsharp ──────────────────────────────────────────────────────────────────────

//// test



let args =

    System.Environment.GetEnvironmentVariable "ARGS"

    |> Runtime.splitArgs

    |> Seq.toArray



match args with

| [[||]] -> 0

| args -> if main args = 0 then 0 else failwith "main failed"



╭─[ 27.61ms - return value ]───────────────────────────────────────────────────╮

│ <div class="dni-plaintext"><pre>0</pre></div><style>                         │

│ .dni-code-hint {                                                             │

│     font-style: italic;                                                      │

│     overflow: hidden;                                                        │

│     white-space: nowrap;                                                     │

│ }                                                                            │

│ .dni-treeview {                                                              │

│     white-space: nowrap;                                                     │

│ }                                                                            │

│ .dni-treeview td {                                                           │

│     vertical-align: top;                                                     │

│     text-align: start;                                                       │

│ }                                                                            │

│ details.dni-treeview {                                                       │

│     padding-left: 1em;                                                       │

│ }                                                                            │

│ table td {                                                                   │

│     text-align: start;                                                       │

│ }                                                                            │

│ table tr {                                                                   │

│     vertical-align: top;                                                     │

│     margin: 0em 0px;                                                         │

│ }                                                                            │

│ table tr td pre                                                              │

│ {                                                                            │

│     vertical-align: top !important;                                          │

│     margin: 0em 0px !important;                                              │

│ }                                                                            │

│ table th {                                                                   │

│     text-align: start;                                                       │

│ }                                                                            │

│ </style>                                                                     │

╰──────────────────────────────────────────────────────────────────────────────╯

[NbConvertApp] Converting notebook Supervisor.dib.ipynb to html

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

  validate(nb)

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:72: UserWarning: IPython3 lexer unavailable, falling back on Python 3

  return _pygments_highlight(

[NbConvertApp] Writing 845484 bytes to Supervisor.dib.html

00:00:00 #1 [Debug] writeDibCode / output: Spi / path: Tasks.dib

00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Supervisor.dib

00:00:00 #3 [Debug] parseDibCode / output: Spi / file: Tasks.dib

00:00:00 #3 [Debug] parseDibCode / output: Fs / file: Supervisor.dib

00:00:00 #1 [Debug] persistCodeProject / packages: [Argu; FSharp.Control.AsyncSeq; FSharp.Json; ... ] / modules: [nbs/Common.fs; nbs/CommonFSharp.fs; nbs/Threading.fs; ... ] / path: C:\home\git\polyglot\apps\spiral / name: Supervisor / code.Length: 18683

00:00:00 #2 [Debug] buildProject / fullPath: C:\home\git\polyglot\apps\spiral\target\Supervisor.fsproj

00:00:00 #3 [Debug] executeAsync / options: { Command = "dotnet publish -c release -o ../dist -r linux-x64"

  WorkingDirectory = Some "C:\home\git\polyglot\apps\spiral\target"

  CancellationToken = None

  OnLine = None }

00:00:00 #4 [Debug] > MSBuild version 17.8.0-preview-23418-03+0125fc9fb for .NET

00:00:01 #5 [Debug] >   Determining projects to restore...

00:00:01 #6 [Debug] >   Restored C:\home\git\polyglot\apps\spiral\target\Supervisor.fsproj (in 512 ms).

00:00:02 #7 [Debug] > C:\Program Files\dotnet\sdk\8.0.100-rc.1.23463.5\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(311,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\apps\spiral\target\Supervisor.fsproj]

00:00:15 #8 [Debug] >   Supervisor -> C:\home\git\polyglot\apps\spiral\target\bin\release\net8.0\linux-x64\Supervisor.dll

00:00:17 #9 [Debug] >   Supervisor -> C:\home\git\polyglot\apps\spiral\dist\

00:00:17 #10 [Debug] executeAsync / exitCode: 0 / output.Length: 632

00:00:17 #11 [Debug] executeAsync / options: { Command = "dotnet publish -c release -o ../dist -r win-x64"

  WorkingDirectory = Some "C:\home\git\polyglot\apps\spiral\target"

  CancellationToken = None

  OnLine = None }

00:00:17 #12 [Debug] > MSBuild version 17.8.0-preview-23418-03+0125fc9fb for .NET

00:00:18 #13 [Debug] >   Determining projects to restore...

00:00:18 #14 [Debug] >   Restored C:\home\git\polyglot\apps\spiral\target\Supervisor.fsproj (in 440 ms).

00:00:19 #15 [Debug] > C:\Program Files\dotnet\sdk\8.0.100-rc.1.23463.5\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(311,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\apps\spiral\target\Supervisor.fsproj]

00:00:33 #16 [Debug] >   Supervisor -> C:\home\git\polyglot\apps\spiral\target\bin\release\net8.0\win-x64\Supervisor.dll

00:00:37 #17 [Debug] >   Supervisor -> C:\home\git\polyglot\apps\spiral\dist\

00:00:37 #18 [Debug] executeAsync / exitCode: 0 / output.Length: 630

00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60

00:00:00 #2 [Debug] executeAsync / options: { Command =

   "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" port=13805"

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = Some <fun:main@450-1020> }

00:00:00 #3 [Debug] > pwd: C:\home\git\polyglot\apps\spiral

00:00:00 #4 [Debug] > dll_path: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release

00:00:00 #5 [Debug] runWithTimeoutAsync / timeout: 500

00:00:00 #6 [Verbose] waitForPortAccess / port: 13805 / retry: 0

00:00:01 #7 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:

00:00:01 #8 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0

00:00:01 #9 [Debug] > Server bound to: http://localhost:13805

00:00:01 #10 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 Tasks.dib -Retries 3""

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = None }

00:00:03 #11 [Debug] >

00:00:03 #12 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:03 #13 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:03 #14 [Debug] > │ ## Tasks (Polyglot)                                                          │

00:00:03 #15 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:03 #16 [Debug] >

00:00:03 #17 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:03 #18 [Debug] > // // test

00:00:03 #19 [Debug] >

00:00:03 #20 [Debug] > open testing

00:00:07 #21 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1407-0940-4057-42138f9d9561\main.spi

00:00:09 #22 [Debug] >

00:00:09 #23 [Debug] > ╭─[ 5.93s - stdout ]───────────────────────────────────────────────────────────╮

00:00:09 #24 [Debug] > │ ()                                                                           │

00:00:09 #25 [Debug] > │                                                                              │

00:00:09 #26 [Debug] > │                                                                              │

00:00:09 #27 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:09 #28 [Debug] >

00:00:09 #29 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:09 #30 [Debug] > inl types () =

00:00:09 #31 [Debug] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"std::string::String\")>]]

00:00:09 #32 [Debug] > type std_string_String = class end"

00:00:09 #33 [Debug] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"&$0\")>]] type Ref<'T> =

00:00:09 #34 [Debug] > class end"

00:00:09 #35 [Debug] >     global "[[<Fable.Core.Erase; Fable.Core.Emit(\"str\")>]] type Str = class

00:00:09 #36 [Debug] > end"

00:00:09 #37 [Debug] >

00:00:09 #38 [Debug] > inl emit_expr forall a t. (args : a) (code : string) : t =

00:00:09 #39 [Debug] >     real

00:00:09 #40 [Debug] >         $"Fable.Core.RustInterop.emitRustExpr !args !code" : t

00:00:09 #41 [Debug] >

00:00:09 #42 [Debug] >

00:00:09 #43 [Debug] > nominal std_string = $"std_string_String"

00:00:09 #44 [Debug] > nominal ref' t = $"Ref<`t>"

00:00:09 #45 [Debug] > nominal str = $"Str"

00:00:09 #46 [Debug] >

00:00:09 #47 [Debug] > inl format_debug forall t. (x : t) : std_string =

00:00:09 #48 [Debug] >     real

00:00:09 #49 [Debug] >         emit_expr `t `std_string x "format!(\"{:?}\", $0)"

00:00:09 #50 [Debug] >

00:00:09 #51 [Debug] > inl format_pretty forall t. (x : t) : std_string =

00:00:09 #52 [Debug] >     real

00:00:09 #53 [Debug] >         emit_expr `t `std_string x "format!(\"{:#?}\", $0)"

00:00:09 #54 [Debug] >

00:00:09 #55 [Debug] > inl to_std_string (str : ref' str) : std_string =

00:00:09 #56 [Debug] >     // inl str = join str

00:00:09 #57 [Debug] >     // // emit_expr () $"\"!str.to_string()\""

00:00:09 #58 [Debug] >     // // emit_expr () $"\"alloc::string::to_string(!str)\""

00:00:09 #59 [Debug] >     // emit_expr str "($0).to_string()"

00:00:09 #60 [Debug] >     emit_expr str $"\"String::from(core::ops::Deref::deref($0))\""

00:00:09 #61 [Debug] >     // emit_expr str $"\"String::from(*$0)\""

00:00:09 #62 [Debug] >     // emit_expr () $"\"String::from(!str)\""

00:00:09 #63 [Debug] >

00:00:09 #64 [Debug] > inl format forall t. (x : t) : std_string =

00:00:09 #65 [Debug] >     real

00:00:09 #66 [Debug] >         inl result : std_string =

00:00:09 #67 [Debug] >             typecase t with

00:00:09 #68 [Debug] >             | string => to_std_string x

00:00:09 #69 [Debug] >             | std_string => x

00:00:09 #70 [Debug] >             | _ => format_pretty `t x

00:00:09 #71 [Debug] >         result

00:00:09 #72 [Debug] >

00:00:09 #73 [Debug] > inl raw_string_literal (s : string) : ref' str =

00:00:09 #74 [Debug] >     emit_expr () $"\"r#\\\"\" + !s + \"\\\"#\""

00:00:09 #75 [Debug] >

00:00:09 #76 [Debug] > inl (~#) (s : string) : ref' str =

00:00:09 #77 [Debug] >     raw_string_literal s

00:00:09 #78 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1407-1260-6074-6aec2af73412\main.spi

00:00:09 #79 [Debug] >

00:00:09 #80 [Debug] > ╭─[ 178.65ms - stdout ]────────────────────────────────────────────────────────╮

00:00:09 #81 [Debug] > │ ()                                                                           │

00:00:09 #82 [Debug] > │                                                                              │

00:00:09 #83 [Debug] > │                                                                              │

00:00:09 #84 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:09 #85 [Debug] >

00:00:09 #86 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:09 #87 [Debug] > nominal task_name = string

00:00:09 #88 [Debug] >

00:00:09 #89 [Debug] > union manual_scheduling =

00:00:09 #90 [Debug] >     | WithSuggestion

00:00:09 #91 [Debug] >     | WithoutSuggestion

00:00:09 #92 [Debug] >

00:00:09 #93 [Debug] > union recurrency_offset =

00:00:09 #94 [Debug] >     | Days : i32

00:00:09 #95 [Debug] >     | Weeks : i32

00:00:09 #96 [Debug] >     | Months : i32

00:00:09 #97 [Debug] >

00:00:09 #98 [Debug] > union day_of_week =

00:00:09 #99 [Debug] >     | Sunday

00:00:09 #100 [Debug] >     | Monday

00:00:09 #101 [Debug] >     | Tuesday

00:00:09 #102 [Debug] >     | Wednesday

00:00:09 #103 [Debug] >     | Thursday

00:00:09 #104 [Debug] >     | Friday

00:00:09 #105 [Debug] >     | Saturday

00:00:09 #106 [Debug] >

00:00:09 #107 [Debug] > union month =

00:00:09 #108 [Debug] >     | January

00:00:09 #109 [Debug] >     | February

00:00:09 #110 [Debug] >     | March

00:00:09 #111 [Debug] >     | April

00:00:09 #112 [Debug] >     | May

00:00:09 #113 [Debug] >     | June

00:00:09 #114 [Debug] >     | July

00:00:09 #115 [Debug] >     | August

00:00:09 #116 [Debug] >     | September

00:00:09 #117 [Debug] >     | October

00:00:09 #118 [Debug] >     | November

00:00:09 #119 [Debug] >     | December

00:00:09 #120 [Debug] >

00:00:09 #121 [Debug] > nominal day = i32

00:00:09 #122 [Debug] > nominal year = i32

00:00:09 #123 [Debug] >

00:00:09 #124 [Debug] > union fixed_recurrency =

00:00:09 #125 [Debug] >     | Weekly : day_of_week

00:00:09 #126 [Debug] >     | Monthly : day

00:00:09 #127 [Debug] >     | Yearly : day * month

00:00:09 #128 [Debug] >

00:00:09 #129 [Debug] > union recurrency =

00:00:09 #130 [Debug] >     | Offset : recurrency_offset

00:00:09 #131 [Debug] >     | Fixed : list fixed_recurrency

00:00:09 #132 [Debug] >

00:00:09 #133 [Debug] > union scheduling =

00:00:09 #134 [Debug] >     | Manual : manual_scheduling

00:00:09 #135 [Debug] >     | Recurrent : recurrency

00:00:09 #136 [Debug] >

00:00:09 #137 [Debug] > type task =

00:00:09 #138 [Debug] >     {

00:00:09 #139 [Debug] >         name : task_name

00:00:09 #140 [Debug] >         scheduling : scheduling

00:00:09 #141 [Debug] >     }

00:00:09 #142 [Debug] >

00:00:09 #143 [Debug] > type date =

00:00:09 #144 [Debug] >     {

00:00:09 #145 [Debug] >         year : year

00:00:09 #146 [Debug] >         month : month

00:00:09 #147 [Debug] >         day : day

00:00:09 #148 [Debug] >     }

00:00:09 #149 [Debug] >

00:00:09 #150 [Debug] > union status =

00:00:09 #151 [Debug] >     | Postponed : option ()

00:00:09 #152 [Debug] >

00:00:09 #153 [Debug] > type event =

00:00:09 #154 [Debug] >     {

00:00:09 #155 [Debug] >         date : date

00:00:09 #156 [Debug] >         status : status

00:00:09 #157 [Debug] >     }

00:00:09 #158 [Debug] >

00:00:09 #159 [Debug] > type task_template =

00:00:09 #160 [Debug] >     {

00:00:09 #161 [Debug] >         task : task

00:00:09 #162 [Debug] >         events : list event

00:00:09 #163 [Debug] >     }

00:00:10 #164 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1407-1277-7798-7f66f4b5d328\main.spi

00:00:10 #165 [Debug] >

00:00:10 #166 [Debug] > ╭─[ 185.04ms - stdout ]────────────────────────────────────────────────────────╮

00:00:10 #167 [Debug] > │ ()                                                                           │

00:00:10 #168 [Debug] > │                                                                              │

00:00:10 #169 [Debug] > │                                                                              │

00:00:10 #170 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:10 #171 [Debug] >

00:00:10 #172 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:10 #173 [Debug] > // // test

00:00:10 #174 [Debug] > // // rust=

00:00:10 #175 [Debug] >

00:00:10 #176 [Debug] > types ()

00:00:10 #177 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1407-1296-9676-9f48733db43c\main.spi

00:00:15 #178 [Debug] >

00:00:15 #179 [Debug] > ╭─[ 5.50s - return value ]─────────────────────────────────────────────────────╮

00:00:15 #180 [Debug] > │ .rs output:                                                                  │

00:00:15 #181 [Debug] > │                                                                              │

00:00:15 #182 [Debug] > │                                                                              │

00:00:15 #183 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #184 [Debug] >

00:00:15 #185 [Debug] > ╭─[ 5.52s - stdout ]───────────────────────────────────────────────────────────╮

00:00:15 #186 [Debug] > │                                                                              │

00:00:15 #187 [Debug] > │ .fsx:                                                                        │

00:00:15 #188 [Debug] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>] type            │

00:00:15 #189 [Debug] > │ std_string_String = class end                                                │

00:00:15 #190 [Debug] > │ [<Fable.Core.Erase; Fable.Core.Emit("&$0")>] type Ref<'T> = class end        │

00:00:15 #191 [Debug] > │ [<Fable.Core.Erase; Fable.Core.Emit("str")>] type Str = class end            │

00:00:15 #192 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:15 #193 [Debug] > │     ()                                                                       │

00:00:15 #194 [Debug] > │ method0()                                                                    │

00:00:15 #195 [Debug] > │                                                                              │

00:00:15 #196 [Debug] > │ .rs:                                                                         │

00:00:15 #197 [Debug] > │ #![allow(dead_code,)]                                                        │

00:00:15 #198 [Debug] > │ #![allow(non_camel_case_types,)]                                             │

00:00:15 #199 [Debug] > │ #![allow(non_snake_case,)]                                                   │

00:00:15 #200 [Debug] > │ #![allow(non_upper_case_globals,)]                                           │

00:00:15 #201 [Debug] > │ #![allow(unreachable_code,)]                                                 │

00:00:15 #202 [Debug] > │ #![allow(unused_attributes,)]                                                │

00:00:15 #203 [Debug] > │ #![allow(unused_imports,)]                                                   │

00:00:15 #204 [Debug] > │ #![allow(unused_macros,)]                                                    │

00:00:15 #205 [Debug] > │ #![allow(unused_parens,)]                                                    │

00:00:15 #206 [Debug] > │ #![allow(unused_variables,)]                                                 │

00:00:15 #207 [Debug] > │ pub mod Repl_main {                                                          │

00:00:15 #208 [Debug] > │     use super::*;                                                            │

00:00:15 #209 [Debug] > │     use fable_library_rust::Native_::on_startup;                             │

00:00:15 #210 [Debug] > │     pub fn method0() { (); }                                                 │

00:00:15 #211 [Debug] > │     on_startup!(Repl_main::method0());                                       │

00:00:15 #212 [Debug] > │ }                                                                            │

00:00:15 #213 [Debug] > │                                                                              │

00:00:15 #214 [Debug] > │                                                                              │

00:00:15 #215 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #216 [Debug] >

00:00:15 #217 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:15 #218 [Debug] > // // test

00:00:15 #219 [Debug] > // // rust=

00:00:15 #220 [Debug] >

00:00:15 #221 [Debug] > inl get_tasks () : list task_template =

00:00:15 #222 [Debug] >     [[

00:00:15 #223 [Debug] >         {

00:00:15 #224 [Debug] >             task =

00:00:15 #225 [Debug] >                 {

00:00:15 #226 [Debug] >                     name = task_name "01"

00:00:15 #227 [Debug] >                     scheduling = Manual WithSuggestion

00:00:15 #228 [Debug] >                 }

00:00:15 #229 [Debug] >             events = [[]]

00:00:15 #230 [Debug] >         }

00:00:15 #231 [Debug] >         {

00:00:15 #232 [Debug] >             task =

00:00:15 #233 [Debug] >                 {

00:00:15 #234 [Debug] >                     name = task_name "02"

00:00:15 #235 [Debug] >                     scheduling = Manual WithSuggestion

00:00:15 #236 [Debug] >                 }

00:00:15 #237 [Debug] >             events = [[]]

00:00:15 #238 [Debug] >         }

00:00:15 #239 [Debug] >         {

00:00:15 #240 [Debug] >             task =

00:00:15 #241 [Debug] >                 {

00:00:15 #242 [Debug] >                     name = task_name "03"

00:00:15 #243 [Debug] >                     scheduling = Manual WithSuggestion

00:00:15 #244 [Debug] >                 }

00:00:15 #245 [Debug] >             events = [[]]

00:00:15 #246 [Debug] >         }

00:00:15 #247 [Debug] >     ]]

00:00:15 #248 [Debug] >

00:00:15 #249 [Debug] > types ()

00:00:15 #250 [Debug] > get_tasks () |> format_pretty |> console.write_line

00:00:15 #251 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1407-1849-4988-4185fd4db3c4\main.spi

00:00:22 #252 [Debug] >

00:00:22 #253 [Debug] > ╭─[ 6.62s - return value ]─────────────────────────────────────────────────────╮

00:00:22 #254 [Debug] > │ .rs output:                                                                  │

00:00:22 #255 [Debug] > │ UH2_0(                                                                       │

00:00:22 #256 [Debug] > │     UH0_1,                                                                   │

00:00:22 #257 [Debug] > │     "01",                                                                    │

00:00:22 #258 [Debug] > │     US4_0(                                                                   │

00:00:22 #259 [Debug] > │         US3_0,                                                               │

00:00:22 #260 [Debug] > │     ),                                                                       │

00:00:22 #261 [Debug] > │     UH2_0(                                                                   │

00:00:22 #262 [Debug] > │         UH0_1,                                                               │

00:00:22 #263 [Debug] > │         "02",                                                                │

00:00:22 #264 [Debug] > │         US4_0(                                                               │

00:00:22 #265 [Debug] > │             US3_0,                                                           │

00:00:22 #266 [Debug] > │         ),                                                                   │

00:00:22 #267 [Debug] > │         UH2_0(                                                               │

00:00:22 #268 [Debug] > │             UH0_1,                                                           │

00:00:22 #269 [Debug] > │             "03",                                                            │

00:00:22 #270 [Debug] > │             US4_0(                                                           │

00:00:22 #271 [Debug] > │                 US3_0,                                                       │

00:00:22 #272 [Debug] > │             ),                                                               │

00:00:22 #273 [Debug] > │             UH2_1,                                                           │

00:00:22 #274 [Debug] > │         ),                                                                   │

00:00:22 #275 [Debug] > │     ),                                                                       │

00:00:22 #276 [Debug] > │ )                                                                            │

00:00:22 #277 [Debug] > │                                                                              │

00:00:22 #278 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:22 #279 [Debug] >

00:00:22 #280 [Debug] > ╭─[ 6.63s - stdout ]───────────────────────────────────────────────────────────╮

00:00:22 #281 [Debug] > │                                                                              │

00:00:22 #282 [Debug] > │ .fsx:                                                                        │

00:00:22 #283 [Debug] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>] type            │

00:00:22 #284 [Debug] > │ std_string_String = class end                                                │

00:00:22 #285 [Debug] > │ [<Fable.Core.Erase; Fable.Core.Emit("&$0")>] type Ref<'T> = class end        │

00:00:22 #286 [Debug] > │ [<Fable.Core.Erase; Fable.Core.Emit("str")>] type Str = class end            │

00:00:22 #287 [Debug] > │ type [<Struct>] US0 =                                                        │

00:00:22 #288 [Debug] > │     | US0_0                                                                  │

00:00:22 #289 [Debug] > │     | US0_1                                                                  │

00:00:22 #290 [Debug] > │     | US0_2                                                                  │

00:00:22 #291 [Debug] > │     | US0_3                                                                  │

00:00:22 #292 [Debug] > │     | US0_4                                                                  │

00:00:22 #293 [Debug] > │     | US0_5                                                                  │

00:00:22 #294 [Debug] > │     | US0_6                                                                  │

00:00:22 #295 [Debug] > │     | US0_7                                                                  │

00:00:22 #296 [Debug] > │     | US0_8                                                                  │

00:00:22 #297 [Debug] > │     | US0_9                                                                  │

00:00:22 #298 [Debug] > │     | US0_10                                                                 │

00:00:22 #299 [Debug] > │     | US0_11                                                                 │

00:00:22 #300 [Debug] > │ and [<Struct>] US2 =                                                         │

00:00:22 #301 [Debug] > │     | US2_0                                                                  │

00:00:22 #302 [Debug] > │     | US2_1                                                                  │

00:00:22 #303 [Debug] > │ and [<Struct>] US1 =                                                         │

00:00:22 #304 [Debug] > │     | US1_0 of f0_0 : US2                                                    │

00:00:22 #305 [Debug] > │ and UH0 =                                                                    │

00:00:22 #306 [Debug] > │     | UH0_0 of int32 * US0 * int32 * US1 * UH0                               │

00:00:22 #307 [Debug] > │     | UH0_1                                                                  │

00:00:22 #308 [Debug] > │ and [<Struct>] US3 =                                                         │

00:00:22 #309 [Debug] > │     | US3_0                                                                  │

00:00:22 #310 [Debug] > │     | US3_1                                                                  │

00:00:22 #311 [Debug] > │ and [<Struct>] US7 =                                                         │

00:00:22 #312 [Debug] > │     | US7_0                                                                  │

00:00:22 #313 [Debug] > │     | US7_1                                                                  │

00:00:22 #314 [Debug] > │     | US7_2                                                                  │

00:00:22 #315 [Debug] > │     | US7_3                                                                  │

00:00:22 #316 [Debug] > │     | US7_4                                                                  │

00:00:22 #317 [Debug] > │     | US7_5                                                                  │

00:00:22 #318 [Debug] > │     | US7_6                                                                  │

00:00:22 #319 [Debug] > │ and [<Struct>] US6 =                                                         │

00:00:22 #320 [Debug] > │     | US6_0 of f0_0 : int32                                                  │

00:00:22 #321 [Debug] > │     | US6_1 of f1_0 : US7                                                    │

00:00:22 #322 [Debug] > │     | US6_2 of f2_0 : int32 * f2_1 : US0                                     │

00:00:22 #323 [Debug] > │ and UH1 =                                                                    │

00:00:22 #324 [Debug] > │     | UH1_0 of US6 * UH1                                                     │

00:00:22 #325 [Debug] > │     | UH1_1                                                                  │

00:00:22 #326 [Debug] > │ and [<Struct>] US8 =                                                         │

00:00:22 #327 [Debug] > │     | US8_0 of f0_0 : int32                                                  │

00:00:22 #328 [Debug] > │     | US8_1 of f1_0 : int32                                                  │

00:00:22 #329 [Debug] > │     | US8_2 of f2_0 : int32                                                  │

00:00:22 #330 [Debug] > │ and [<Struct>] US5 =                                                         │

00:00:22 #331 [Debug] > │     | US5_0 of f0_0 : UH1                                                    │

00:00:22 #332 [Debug] > │     | US5_1 of f1_0 : US8                                                    │

00:00:22 #333 [Debug] > │ and [<Struct>] US4 =                                                         │

00:00:22 #334 [Debug] > │     | US4_0 of f0_0 : US3                                                    │

00:00:22 #335 [Debug] > │     | US4_1 of f1_0 : US5                                                    │

00:00:22 #336 [Debug] > │ and UH2 =                                                                    │

00:00:22 #337 [Debug] > │     | UH2_0 of UH0 * string * US4 * UH2                                      │

00:00:22 #338 [Debug] > │     | UH2_1                                                                  │

00:00:22 #339 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:22 #340 [Debug] > │     let v0 : UH0 = UH0_1                                                     │

00:00:22 #341 [Debug] > │     let v1 : string = "01"                                                   │

00:00:22 #342 [Debug] > │     let v2 : US3 = US3_0                                                     │

00:00:22 #343 [Debug] > │     let v3 : US4 = US4_0(v2)                                                 │

00:00:22 #344 [Debug] > │     let v4 : UH0 = UH0_1                                                     │

00:00:22 #345 [Debug] > │     let v5 : string = "02"                                                   │

00:00:22 #346 [Debug] > │     let v6 : US3 = US3_0                                                     │

00:00:22 #347 [Debug] > │     let v7 : US4 = US4_0(v6)                                                 │

00:00:22 #348 [Debug] > │     let v8 : UH0 = UH0_1                                                     │

00:00:22 #349 [Debug] > │     let v9 : string = "03"                                                   │

00:00:22 #350 [Debug] > │     let v10 : US3 = US3_0                                                    │

00:00:22 #351 [Debug] > │     let v11 : US4 = US4_0(v10)                                               │

00:00:22 #352 [Debug] > │     let v12 : UH2 = UH2_1                                                    │

00:00:22 #353 [Debug] > │     let v13 : UH2 = UH2_0(v8, v9, v11, v12)                                  │

00:00:22 #354 [Debug] > │     let v14 : UH2 = UH2_0(v4, v5, v7, v13)                                   │

00:00:22 #355 [Debug] > │     let v15 : UH2 = UH2_0(v0, v1, v3, v14)                                   │

00:00:22 #356 [Debug] > │     let v16 : string = "format!(\"{:#?}\", $0)"                              │

00:00:22 #357 [Debug] > │     let v17 : std_string_String = Fable.Core.RustInterop.emitRustExpr v15    │

00:00:22 #358 [Debug] > │ v16                                                                          │

00:00:22 #359 [Debug] > │     System.Console.WriteLine v17                                             │

00:00:22 #360 [Debug] > │     ()                                                                       │

00:00:22 #361 [Debug] > │ method0()                                                                    │

00:00:22 #362 [Debug] > │                                                                              │

00:00:22 #363 [Debug] > │ .rs:                                                                         │

00:00:22 #364 [Debug] > │ #![allow(dead_code,)]                                                        │

00:00:22 #365 [Debug] > │ #![allow(non_camel_case_types,)]                                             │

00:00:22 #366 [Debug] > │ #![allow(non_snake_case,)]                                                   │

00:00:22 #367 [Debug] > │ #![allow(non_upper_case_globals,)]                                           │

00:00:22 #368 [Debug] > │ #![allow(unreachable_code,)]                                                 │

00:00:22 #369 [Debug] > │ #![allow(unused_attributes,)]                                                │

00:00:22 #370 [Debug] > │ #![allow(unused_imports,)]                                                   │

00:00:22 #371 [Debug] > │ #![allow(unused_macros,)]                                                    │

00:00:22 #372 [Debug] > │ #![allow(unused_parens,)]                                                    │

00:00:22 #373 [Debug] > │ #![allow(unused_variables,)]                                                 │

00:00:22 #374 [Debug] > │ pub mod Repl_main {                                                          │

00:00:22 #375 [Debug] > │     use super::*;                                                            │

00:00:22 #376 [Debug] > │     use fable_library_rust::Native_::Any;                                    │

00:00:22 #377 [Debug] > │     use fable_library_rust::Native_::LrcPtr;                                 │

00:00:22 #378 [Debug] > │     use fable_library_rust::Native_::on_startup;                             │

00:00:22 #379 [Debug] > │     use fable_library_rust::String_::string;                                 │

00:00:22 #380 [Debug] > │     #[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Hash, Eq, Ord,)]     │

00:00:22 #381 [Debug] > │     pub enum US0 {                                                           │

00:00:22 #382 [Debug] > │         US0_0,                                                               │

00:00:22 #383 [Debug] > │         US0_1,                                                               │

00:00:22 #384 [Debug] > │         US0_2,                                                               │

00:00:22 #385 [Debug] > │         US0_3,                                                               │

00:00:22 #386 [Debug] > │         US0_4,                                                               │

00:00:22 #387 [Debug] > │         US0_5,                                                               │

00:00:22 #388 [Debug] > │         US0_6,                                                               │

00:00:22 #389 [Debug] > │         US0_7,                                                               │

00:00:22 #390 [Debug] > │         US0_8,                                                               │

00:00:22 #391 [Debug] > │         US0_9,                                                               │

00:00:22 #392 [Debug] > │         US0_10,                                                              │

00:00:22 #393 [Debug] > │         US0_11,                                                              │

00:00:22 #394 [Debug] > │     }                                                                        │

00:00:22 #395 [Debug] > │     impl core::fmt::Display for Repl_main::US0 {                             │

00:00:22 #396 [Debug] > │         fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {   │

00:00:22 #397 [Debug] > │             write!(f, "{}", core::any::type_name::<Self>())                  │

00:00:22 #398 [Debug] > │         }                                                                    │

00:00:22 #399 [Debug] > │     }                                                                        │

00:00:22 #400 [Debug] > │     #[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Hash, Eq, Ord,)]     │

00:00:22 #401 [Debug] > │     pub enum US2 { US2_0, US2_1, }                                           │

00:00:22 #402 [Debug] > │     impl core::fmt::Display for Repl_main::US2 {                             │

00:00:22 #403 [Debug] > │         fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {   │

00:00:22 #404 [Debug] > │             write!(f, "{}", core::any::type_name::<Self>())                  │

00:00:22 #405 [Debug] > │         }                                                                    │

00:00:22 #406 [Debug] > │     }                                                                        │

00:00:22 #407 [Debug] > │     #[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Hash, Eq, Ord,)]     │

00:00:22 #408 [Debug] > │     pub enum US1 { US1_0(Repl_main::US2), }                                  │

00:00:22 #409 [Debug] > │     impl core::fmt::Display for Repl_main::US1 {                             │

00:00:22 #410 [Debug] > │         fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {   │

00:00:22 #411 [Debug] > │             write!(f, "{}", core::any::type_name::<Self>())                  │

00:00:22 #412 [Debug] > │         }                                                                    │

00:00:22 #413 [Debug] > │     }                                                                        │

00:00:22 #414 [Debug] > │     #[derive(Clone, Debug, PartialEq, PartialOrd, Hash, Eq, Ord,)]           │

00:00:22 #415 [Debug] > │     pub enum UH0 {                                                           │

00:00:22 #416 [Debug] > │         UH0_0(i32, Repl_main::US0, i32, Repl_main::US1,                      │

00:00:22 #417 [Debug] > │               LrcPtr<Repl_main::UH0>),                                       │

00:00:22 #418 [Debug] > │         UH0_1,                                                               │

00:00:22 #419 [Debug] > │     }                                                                        │

00:00:22 #420 [Debug] > │     impl core::fmt::Display for Repl_main::UH0 {                             │

00:00:22 #421 [Debug] > │         fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {   │

00:00:22 #422 [Debug] > │             write!(f, "{}", core::any::type_name::<Self>())                  │

00:00:22 #423 [Debug] > │         }                                                                    │

00:00:22 #424 [Debug] > │     }                                                                        │

00:00:22 #425 [Debug] > │     #[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Hash, Eq, Ord,)]     │

00:00:22 #426 [Debug] > │     pub enum US3 { US3_0, US3_1, }                                           │

00:00:22 #427 [Debug] > │     impl core::fmt::Display for Repl_main::US3 {                             │

00:00:22 #428 [Debug] > │         fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {   │

00:00:22 #429 [Debug] > │             write!(f, "{}", core::any::type_name::<Self>())                  │

00:00:22 #430 [Debug] > │         }                                                                    │

00:00:22 #431 [Debug] > │     }                                                                        │

00:00:22 #432 [Debug] > │     #[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Hash, Eq, Ord,)]     │

00:00:22 #433 [Debug] > │     pub enum US7 { US7_0, US7_1, US7_2, US7_3, US7_4, US7_5, US7_6, }        │

00:00:22 #434 [Debug] > │     impl core::fmt::Display for Repl_main::US7 {                             │

00:00:22 #435 [Debug] > │         fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {   │

00:00:22 #436 [Debug] > │             write!(f, "{}", core::any::type_name::<Self>())                  │

00:00:22 #437 [Debug] > │         }                                                                    │

00:00:22 #438 [Debug] > │     }                                                                        │

00:00:22 #439 [Debug] > │     #[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Hash, Eq, Ord,)]     │

00:00:22 #440 [Debug] > │     pub enum US6 {                                                           │

00:00:22 #441 [Debug] > │         US6_0(i32),                                                          │

00:00:22 #442 [Debug] > │         US6_1(Repl_main::US7),                                               │

00:00:22 #443 [Debug] > │         US6_2(i32, Repl_main::US0),                                          │

00:00:22 #444 [Debug] > │     }                                                                        │

00:00:22 #445 [Debug] > │     impl core::fmt::Display for Repl_main::US6 {                             │

00:00:22 #446 [Debug] > │         fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {   │

00:00:22 #447 [Debug] > │             write!(f, "{}", core::any::type_name::<Self>())                  │

00:00:22 #448 [Debug] > │         }                                                                    │

00:00:22 #449 [Debug] > │     }                                                                        │

00:00:22 #450 [Debug] > │     #[derive(Clone, Debug, PartialEq, PartialOrd, Hash, Eq, Ord,)]           │

00:00:22 #451 [Debug] > │     pub enum UH1 { UH1_0(Repl_main::US6, LrcPtr<Repl_main::UH1>), UH1_1, }   │

00:00:22 #452 [Debug] > │     impl core::fmt::Display for Repl_main::UH1 {                             │

00:00:22 #453 [Debug] > │         fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {   │

00:00:22 #454 [Debug] > │             write!(f, "{}", core::any::type_name::<Self>())                  │

00:00:22 #455 [Debug] > │         }                                                                    │

00:00:22 #456 [Debug] > │     }                                                                        │

00:00:22 #457 [Debug] > │     #[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Hash, Eq, Ord,)]     │

00:00:22 #458 [Debug] > │     pub enum US8 { US8_0(i32), US8_1(i32), US8_2(i32), }                     │

00:00:22 #459 [Debug] > │     impl core::fmt::Display for Repl_main::US8 {                             │

00:00:22 #460 [Debug] > │         fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {   │

00:00:22 #461 [Debug] > │             write!(f, "{}", core::any::type_name::<Self>())                  │

00:00:22 #462 [Debug] > │         }                                                                    │

00:00:22 #463 [Debug] > │     }                                                                        │

00:00:22 #464 [Debug] > │     #[derive(Clone, Debug, PartialEq, PartialOrd, Hash, Eq, Ord,)]           │

00:00:22 #465 [Debug] > │     pub enum US5 { US5_0(LrcPtr<Repl_main::UH1>), US5_1(Repl_main::US8), }   │

00:00:22 #466 [Debug] > │     impl core::fmt::Display for Repl_main::US5 {                             │

00:00:22 #467 [Debug] > │         fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {   │

00:00:22 #468 [Debug] > │             write!(f, "{}", core::any::type_name::<Self>())                  │

00:00:22 #469 [Debug] > │         }                                                                    │

00:00:22 #470 [Debug] > │     }                                                                        │

00:00:22 #471 [Debug] > │     #[derive(Clone, Debug, PartialEq, PartialOrd, Hash, Eq, Ord,)]           │

00:00:22 #472 [Debug] > │     pub enum US4 { US4_0(Repl_main::US3), US4_1(Repl_main::US5), }           │

00:00:22 #473 [Debug] > │     impl core::fmt::Display for Repl_main::US4 {                             │

00:00:22 #474 [Debug] > │         fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {   │

00:00:22 #475 [Debug] > │             write!(f, "{}", core::any::type_name::<Self>())                  │

00:00:22 #476 [Debug] > │         }                                                                    │

00:00:22 #477 [Debug] > │     }                                                                        │

00:00:22 #478 [Debug] > │     #[derive(Clone, Debug, PartialEq, PartialOrd, Hash, Eq, Ord,)]           │

00:00:22 #479 [Debug] > │     pub enum UH2 {                                                           │

00:00:22 #480 [Debug] > │         UH2_0(LrcPtr<Repl_main::UH0>, string, Repl_main::US4,                │

00:00:22 #481 [Debug] > │               LrcPtr<Repl_main::UH2>),                                       │

00:00:22 #482 [Debug] > │         UH2_1,                                                               │

00:00:22 #483 [Debug] > │     }                                                                        │

00:00:22 #484 [Debug] > │     impl core::fmt::Display for Repl_main::UH2 {                             │

00:00:22 #485 [Debug] > │         fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {   │

00:00:22 #486 [Debug] > │             write!(f, "{}", core::any::type_name::<Self>())                  │

00:00:22 #487 [Debug] > │         }                                                                    │

00:00:22 #488 [Debug] > │     }                                                                        │

00:00:22 #489 [Debug] > │     pub fn method0() {                                                       │

00:00:22 #490 [Debug] > │         let v17: std::string::String =                                       │

00:00:22 #491 [Debug] > │             format!("{:#?}",                                                 │

00:00:22 #492 [Debug] > │ &LrcPtr::new(Repl_main::UH2::UH2_0(LrcPtr::new(Repl_main::UH0::UH0_1),       │

00:00:22 #493 [Debug] > │                                                                              │

00:00:22 #494 [Debug] > │ string("01"),                                                                │

00:00:22 #495 [Debug] > │                                                                              │

00:00:22 #496 [Debug] > │ Repl_main::US4::US4_0(Repl_main::US3::US3_0),                                │

00:00:22 #497 [Debug] > │                                                                              │

00:00:22 #498 [Debug] > │ LrcPtr::new(Repl_main::UH2::UH2_0(LrcPtr::new(Repl_main::UH0::UH0_1),        │

00:00:22 #499 [Debug] > │                                                                              │

00:00:22 #500 [Debug] > │ string("02"),                                                                │

00:00:22 #501 [Debug] > │                                                                              │

00:00:22 #502 [Debug] > │ Repl_main::US4::US4_0(Repl_main::US3::US3_0),                                │

00:00:22 #503 [Debug] > │                                                                              │

00:00:22 #504 [Debug] > │ LrcPtr::new(Repl_main::UH2::UH2_0(LrcPtr::new(Repl_main::UH0::UH0_1),        │

00:00:22 #505 [Debug] > │                                                                              │

00:00:22 #506 [Debug] > │ string("03"),                                                                │

00:00:22 #507 [Debug] > │                                                                              │

00:00:22 #508 [Debug] > │ Repl_main::US4::US4_0(Repl_main::US3::US3_0),                                │

00:00:22 #509 [Debug] > │                                                                              │

00:00:22 #510 [Debug] > │ LrcPtr::new(Repl_main::UH2::UH2_1))))))));                                   │

00:00:22 #511 [Debug] > │         println!("{0}", &v17,);                                              │

00:00:22 #512 [Debug] > │         ()                                                                   │

00:00:22 #513 [Debug] > │     }                                                                        │

00:00:22 #514 [Debug] > │     on_startup!(Repl_main::method0());                                       │

00:00:22 #515 [Debug] > │ }                                                                            │

00:00:22 #516 [Debug] > │                                                                              │

00:00:22 #517 [Debug] > │                                                                              │

00:00:22 #518 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:22 #519 [Debug] >

00:00:22 #520 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:22 #521 [Debug] > // // test

00:00:22 #522 [Debug] > // // rust=

00:00:22 #523 [Debug] >

00:00:22 #524 [Debug] > get_tasks ()

00:00:22 #525 [Debug] > |> listm'.try_item 0i32

00:00:22 #526 [Debug] > |> fun (Some task) => task.task.name

00:00:22 #527 [Debug] > |> _equal (task_name "01")

00:00:22 #528 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1407-2521-2154-2da2debbc714\main.spi

00:00:27 #529 [Debug] >

00:00:27 #530 [Debug] > ╭─[ 5.37s - return value ]─────────────────────────────────────────────────────╮

00:00:27 #531 [Debug] > │ .rs output:                                                                  │

00:00:27 #532 [Debug] > │                                                                              │

00:00:27 #533 [Debug] > │                                                                              │

00:00:27 #534 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:27 #535 [Debug] >

00:00:27 #536 [Debug] > ╭─[ 5.37s - stdout ]───────────────────────────────────────────────────────────╮

00:00:27 #537 [Debug] > │                                                                              │

00:00:27 #538 [Debug] > │ .fsx:                                                                        │

00:00:27 #539 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:27 #540 [Debug] > │     let v3 : string = "01"                                                   │

00:00:27 #541 [Debug] > │     let v4 : string = $"_equal / actual: %A{v3} / expected: %A{v3}"          │

00:00:27 #542 [Debug] > │     ()                                                                       │

00:00:27 #543 [Debug] > │ method0()                                                                    │

00:00:27 #544 [Debug] > │                                                                              │

00:00:27 #545 [Debug] > │ .rs:                                                                         │

00:00:27 #546 [Debug] > │ #![allow(dead_code,)]                                                        │

00:00:27 #547 [Debug] > │ #![allow(non_camel_case_types,)]                                             │

00:00:27 #548 [Debug] > │ #![allow(non_snake_case,)]                                                   │

00:00:27 #549 [Debug] > │ #![allow(non_upper_case_globals,)]                                           │

00:00:27 #550 [Debug] > │ #![allow(unreachable_code,)]                                                 │

00:00:27 #551 [Debug] > │ #![allow(unused_attributes,)]                                                │

00:00:27 #552 [Debug] > │ #![allow(unused_imports,)]                                                   │

00:00:27 #553 [Debug] > │ #![allow(unused_macros,)]                                                    │

00:00:27 #554 [Debug] > │ #![allow(unused_parens,)]                                                    │

00:00:27 #555 [Debug] > │ #![allow(unused_variables,)]                                                 │

00:00:27 #556 [Debug] > │ pub mod Repl_main {                                                          │

00:00:27 #557 [Debug] > │     use super::*;                                                            │

00:00:27 #558 [Debug] > │     use fable_library_rust::Native_::Any;                                    │

00:00:27 #559 [Debug] > │     use fable_library_rust::Native_::on_startup;                             │

00:00:27 #560 [Debug] > │     use fable_library_rust::String_::sprintf;                                │

00:00:27 #561 [Debug] > │     use fable_library_rust::String_::string;                                 │

00:00:27 #562 [Debug] > │     pub fn method0() {                                                       │

00:00:27 #563 [Debug] > │         let v4: string =                                                     │

00:00:27 #564 [Debug] > │             sprintf!("_equal / actual: {:?} / expected: {:?}",               │

00:00:27 #565 [Debug] > │ &string("01"),                                                               │

00:00:27 #566 [Debug] > │                      &string("01"));                                         │

00:00:27 #567 [Debug] > │         ()                                                                   │

00:00:27 #568 [Debug] > │     }                                                                        │

00:00:27 #569 [Debug] > │     on_startup!(Repl_main::method0());                                       │

00:00:27 #570 [Debug] > │ }                                                                            │

00:00:27 #571 [Debug] > │                                                                              │

00:00:27 #572 [Debug] > │                                                                              │

00:00:27 #573 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:27 #574 [Debug] >

00:00:27 #575 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:27 #576 [Debug] > // // test

00:00:27 #577 [Debug] >

00:00:27 #578 [Debug] > ()

00:00:27 #579 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1407-3059-5987-59159f986a8d\main.spi

00:00:28 #580 [Debug] >

00:00:28 #581 [Debug] > ╭─[ 424.62ms - stdout ]────────────────────────────────────────────────────────╮

00:00:28 #582 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:28 #583 [Debug] > │     ()                                                                       │

00:00:28 #584 [Debug] > │ method0()                                                                    │

00:00:28 #585 [Debug] > │                                                                              │

00:00:28 #586 [Debug] > │                                                                              │

00:00:28 #587 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:30 #588 [Debug] > [NbConvertApp] Converting notebook Tasks.dib.ipynb to html

00:00:30 #589 [Debug] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

00:00:30 #590 [Debug] >   validate(nb)

00:00:30 #591 [Debug] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:72: UserWarning: IPython3 lexer unavailable, falling back on Python 3

00:00:30 #592 [Debug] >   return _pygments_highlight(

00:00:30 #593 [Debug] > [NbConvertApp] Writing 303117 bytes to Tasks.dib.html

00:00:31 #594 [Debug] executeAsync / exitCode: 0 / output.Length: 34919

00:00:31 #595 [Debug] main / executeCommand / exitCode: 0

In [ ]:
{ . "$ScriptDir/../lib/spiral/build.ps1" } | Invoke-Block
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60

00:00:00 #2 [Debug] executeAsync / options: { Command =

   "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" port=13805"

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = Some <fun:main@450-1020> }

00:00:00 #3 [Debug] > pwd: C:\home\git\polyglot\lib\spiral

00:00:00 #4 [Debug] > dll_path: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release

00:00:00 #5 [Debug] runWithTimeoutAsync / timeout: 500

00:00:00 #6 [Verbose] waitForPortAccess / port: 13805 / retry: 0

00:00:01 #7 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:

00:00:01 #8 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0

00:00:01 #9 [Debug] > Server bound to: http://localhost:13805

00:00:01 #10 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 testing.dib""

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = None }

00:00:03 #11 [Debug] >

00:00:03 #12 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:03 #13 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:03 #14 [Debug] > │ # testing                                                                    │

00:00:03 #15 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:04 #16 [Debug] >

00:00:04 #17 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:04 #18 [Debug] > inl _almost_equal b a =

00:00:04 #19 [Debug] >     assert (abs (b - a) < 0.00000001) $"$\"_almost_equal / actual: %A{!a}

00:00:04 #20 [Debug] > expected: %A{!b}\""

00:00:04 #21 [Debug] >

00:00:04 #22 [Debug] > inl _equal b a =

00:00:04 #23 [Debug] >     assert (a = b) $"$\"_equal / actual: %A{!a} / expected: %A{!b}\""

00:00:04 #24 [Debug] >

00:00:04 #25 [Debug] > inl _is_less_than b a =

00:00:04 #26 [Debug] >     assert (b < a) $"$\"_is_less_than / actual: %A{!a} / expected: %A{!b}\""

00:00:04 #27 [Debug] >

00:00:04 #28 [Debug] > inl _is_less_than_or_equal b a =

00:00:04 #29 [Debug] >     assert (b <= a) $"$\"_is_less_than_or_equal / actual: %A{!a} / expected:

00:00:04 #30 [Debug] > %A{!b}\""

00:00:04 #31 [Debug] >

00:00:04 #32 [Debug] > inl _throws (fn : () -> ()) : option string =

00:00:04 #33 [Debug] >     inl none = None : option string

00:00:04 #34 [Debug] >     inl some (s : string) = Some s

00:00:04 #35 [Debug] >     $"try !fn (); !none with ex -> !some ex.Message"

00:00:07 #36 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1407-4226-2621-2f2c1f7f1a59\main.spi

00:00:09 #37 [Debug] >

00:00:09 #38 [Debug] > ╭─[ 5.39s - stdout ]───────────────────────────────────────────────────────────╮

00:00:09 #39 [Debug] > │ ()                                                                           │

00:00:09 #40 [Debug] > │                                                                              │

00:00:09 #41 [Debug] > │                                                                              │

00:00:09 #42 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:09 #43 [Debug] >

00:00:09 #44 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:09 #45 [Debug] > inl print_and_return x =

00:00:09 #46 [Debug] >     $"printfn $\"print_and_return / x: {!x}\""

00:00:09 #47 [Debug] >     x

00:00:09 #48 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1407-4533-3321-39682493f459\main.spi

00:00:09 #49 [Debug] >

00:00:09 #50 [Debug] > ╭─[ 190.67ms - stdout ]────────────────────────────────────────────────────────╮

00:00:09 #51 [Debug] > │ ()                                                                           │

00:00:09 #52 [Debug] > │                                                                              │

00:00:09 #53 [Debug] > │                                                                              │

00:00:09 #54 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:12 #55 [Debug] > [NbConvertApp] Converting notebook testing.dib.ipynb to html

00:00:12 #56 [Debug] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

00:00:12 #57 [Debug] >   validate(nb)

00:00:12 #58 [Debug] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:72: UserWarning: IPython3 lexer unavailable, falling back on Python 3

00:00:12 #59 [Debug] >   return _pygments_highlight(

00:00:12 #60 [Debug] > [NbConvertApp] Writing 274807 bytes to testing.dib.html

00:00:13 #61 [Debug] executeAsync / exitCode: 0 / output.Length: 2726

00:00:13 #62 [Debug] main / executeCommand / exitCode: 0

00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60

00:00:00 #2 [Debug] executeAsync / options: { Command =

   "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" port=13805"

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = Some <fun:main@450-1020> }

00:00:00 #3 [Debug] > pwd: C:\home\git\polyglot\lib\spiral

00:00:00 #4 [Debug] > dll_path: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release

00:00:00 #5 [Debug] runWithTimeoutAsync / timeout: 500

00:00:00 #6 [Verbose] waitForPortAccess / port: 13805 / retry: 0

00:00:01 #7 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:

00:00:01 #8 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0

00:00:01 #9 [Debug] > Server bound to: http://localhost:13805

00:00:01 #10 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 common.dib""

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = None }

00:00:04 #11 [Debug] >

00:00:04 #12 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:04 #13 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:04 #14 [Debug] > │ # common                                                                     │

00:00:04 #15 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:04 #16 [Debug] >

00:00:04 #17 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:04 #18 [Debug] > // // test

00:00:04 #19 [Debug] >

00:00:04 #20 [Debug] > open testing

00:00:07 #21 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1407-5710-1027-1b087b5bafbe\main.spi

00:00:10 #22 [Debug] >

00:00:10 #23 [Debug] > ╭─[ 5.73s - stdout ]───────────────────────────────────────────────────────────╮

00:00:10 #24 [Debug] > │ ()                                                                           │

00:00:10 #25 [Debug] > │                                                                              │

00:00:10 #26 [Debug] > │                                                                              │

00:00:10 #27 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:10 #28 [Debug] >

00:00:10 #29 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:10 #30 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:10 #31 [Debug] > │ ## pair                                                                      │

00:00:10 #32 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:10 #33 [Debug] >

00:00:10 #34 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:10 #35 [Debug] > inl pair x y =

00:00:10 #36 [Debug] >     x, y

00:00:10 #37 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-0053-5386-53cb7949baa6\main.spi

00:00:10 #38 [Debug] >

00:00:10 #39 [Debug] > ╭─[ 207.56ms - stdout ]────────────────────────────────────────────────────────╮

00:00:10 #40 [Debug] > │ ()                                                                           │

00:00:10 #41 [Debug] > │                                                                              │

00:00:10 #42 [Debug] > │                                                                              │

00:00:10 #43 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:10 #44 [Debug] >

00:00:10 #45 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:10 #46 [Debug] > // // test

00:00:10 #47 [Debug] >

00:00:10 #48 [Debug] > pair 1i32 2i32

00:00:10 #49 [Debug] > |> _equal (1, 2)

00:00:10 #50 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-0074-7444-7e86b1cb366d\main.spi

00:00:11 #51 [Debug] >

00:00:11 #52 [Debug] > ╭─[ 728.38ms - stdout ]────────────────────────────────────────────────────────╮

00:00:11 #53 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:11 #54 [Debug] > │     let v0 : string = $"_equal / actual: %A{struct (1, 2)} / expected:       │

00:00:11 #55 [Debug] > │ %A{struct (1, 2)}"                                                           │

00:00:11 #56 [Debug] > │     ()                                                                       │

00:00:11 #57 [Debug] > │ method0()                                                                    │

00:00:11 #58 [Debug] > │                                                                              │

00:00:11 #59 [Debug] > │                                                                              │

00:00:11 #60 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:11 #61 [Debug] >

00:00:11 #62 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:11 #63 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:11 #64 [Debug] > │ ## ||>                                                                       │

00:00:11 #65 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:11 #66 [Debug] >

00:00:11 #67 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:11 #68 [Debug] > inl (||>) (arg1, arg2) fn = arg2 |> fn arg1

00:00:11 #69 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-0147-4793-4f5753831eaf\main.spi

00:00:11 #70 [Debug] >

00:00:11 #71 [Debug] > ╭─[ 137.08ms - stdout ]────────────────────────────────────────────────────────╮

00:00:11 #72 [Debug] > │ ()                                                                           │

00:00:11 #73 [Debug] > │                                                                              │

00:00:11 #74 [Debug] > │                                                                              │

00:00:11 #75 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:11 #76 [Debug] >

00:00:11 #77 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:11 #78 [Debug] > // // test

00:00:11 #79 [Debug] >

00:00:11 #80 [Debug] > (3i32, 2i32)

00:00:11 #81 [Debug] > ||> fun a b => a - b

00:00:11 #82 [Debug] > |> _equal 1

00:00:11 #83 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-0161-6182-6fddb073b900\main.spi

00:00:11 #84 [Debug] >

00:00:11 #85 [Debug] > ╭─[ 159.58ms - stdout ]────────────────────────────────────────────────────────╮

00:00:11 #86 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:11 #87 [Debug] > │     let v0 : string = $"_equal / actual: %A{1} / expected: %A{1}"            │

00:00:11 #88 [Debug] > │     ()                                                                       │

00:00:11 #89 [Debug] > │ method0()                                                                    │

00:00:11 #90 [Debug] > │                                                                              │

00:00:11 #91 [Debug] > │                                                                              │

00:00:11 #92 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:11 #93 [Debug] >

00:00:11 #94 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:11 #95 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:11 #96 [Debug] > │ ## flip                                                                      │

00:00:11 #97 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:11 #98 [Debug] >

00:00:11 #99 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:11 #100 [Debug] > inl flip fn a b =

00:00:11 #101 [Debug] >     fn b a

00:00:11 #102 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-0178-7840-71b02a314578\main.spi

00:00:11 #103 [Debug] >

00:00:11 #104 [Debug] > ╭─[ 154.63ms - stdout ]────────────────────────────────────────────────────────╮

00:00:11 #105 [Debug] > │ ()                                                                           │

00:00:11 #106 [Debug] > │                                                                              │

00:00:11 #107 [Debug] > │                                                                              │

00:00:11 #108 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:11 #109 [Debug] >

00:00:11 #110 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:11 #111 [Debug] > // // test

00:00:11 #112 [Debug] >

00:00:11 #113 [Debug] > (1i32, 2i32)

00:00:11 #114 [Debug] > ||> flip pair

00:00:11 #115 [Debug] > |> _equal (2, 1)

00:00:11 #116 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-0194-9415-9151880b5988\main.spi

00:00:11 #117 [Debug] >

00:00:11 #118 [Debug] > ╭─[ 164.81ms - stdout ]────────────────────────────────────────────────────────╮

00:00:11 #119 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:11 #120 [Debug] > │     let v0 : string = $"_equal / actual: %A{struct (2, 1)} / expected:       │

00:00:11 #121 [Debug] > │ %A{struct (2, 1)}"                                                           │

00:00:11 #122 [Debug] > │     ()                                                                       │

00:00:11 #123 [Debug] > │ method0()                                                                    │

00:00:11 #124 [Debug] > │                                                                              │

00:00:11 #125 [Debug] > │                                                                              │

00:00:11 #126 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:11 #127 [Debug] >

00:00:11 #128 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:11 #129 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:11 #130 [Debug] > │ ## join_body                                                                 │

00:00:11 #131 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:11 #132 [Debug] >

00:00:11 #133 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:11 #134 [Debug] > inl join_body body acc x =

00:00:11 #135 [Debug] >     if var_is x |> not

00:00:11 #136 [Debug] >     then body acc x

00:00:11 #137 [Debug] >     else

00:00:11 #138 [Debug] >         inl acc = dyn acc

00:00:11 #139 [Debug] >         join body acc x

00:00:11 #140 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-0211-1162-192b2c38638d\main.spi

00:00:11 #141 [Debug] >

00:00:11 #142 [Debug] > ╭─[ 179.00ms - stdout ]────────────────────────────────────────────────────────╮

00:00:11 #143 [Debug] > │ ()                                                                           │

00:00:11 #144 [Debug] > │                                                                              │

00:00:11 #145 [Debug] > │                                                                              │

00:00:11 #146 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:11 #147 [Debug] >

00:00:11 #148 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:11 #149 [Debug] > // // test

00:00:11 #150 [Debug] >

00:00:11 #151 [Debug] > inl rec fold_list f s = function

00:00:11 #152 [Debug] >     | Cons (x, x') => fold_list f (f s x) x'

00:00:11 #153 [Debug] >     | Nil => s

00:00:11 #154 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-0229-2954-207bb36e105d\main.spi

00:00:12 #155 [Debug] >

00:00:12 #156 [Debug] > ╭─[ 153.27ms - stdout ]────────────────────────────────────────────────────────╮

00:00:12 #157 [Debug] > │ ()                                                                           │

00:00:12 #158 [Debug] > │                                                                              │

00:00:12 #159 [Debug] > │                                                                              │

00:00:12 #160 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:12 #161 [Debug] >

00:00:12 #162 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:12 #163 [Debug] > // // test

00:00:12 #164 [Debug] >

00:00:12 #165 [Debug] > [[5i32; 4; join 3; 2; 1]]

00:00:12 #166 [Debug] > |> fold_list (+) 0

00:00:12 #167 [Debug] > |> _equal 15

00:00:12 #168 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-0245-4516-42a3b8e378fc\main.spi

00:00:12 #169 [Debug] >

00:00:12 #170 [Debug] > ╭─[ 296.73ms - stdout ]────────────────────────────────────────────────────────╮

00:00:12 #171 [Debug] > │ let rec method1 () : int32 =                                                 │

00:00:12 #172 [Debug] > │     3                                                                        │

00:00:12 #173 [Debug] > │ and method0 () : unit =                                                      │

00:00:12 #174 [Debug] > │     let v0 : int32 = method1()                                               │

00:00:12 #175 [Debug] > │     let v1 : int32 = 9 + v0                                                  │

00:00:12 #176 [Debug] > │     let v2 : int32 = v1 + 2                                                  │

00:00:12 #177 [Debug] > │     let v3 : int32 = v2 + 1                                                  │

00:00:12 #178 [Debug] > │     let v4 : bool = v3 = 15                                                  │

00:00:12 #179 [Debug] > │     let v5 : string = $"_equal / actual: %A{v3} / expected: %A{15}"          │

00:00:12 #180 [Debug] > │     let v6 : bool = v4 = false                                               │

00:00:12 #181 [Debug] > │     if v6 then                                                               │

00:00:12 #182 [Debug] > │         failwith<unit> v5                                                    │

00:00:12 #183 [Debug] > │ method0()                                                                    │

00:00:12 #184 [Debug] > │                                                                              │

00:00:12 #185 [Debug] > │                                                                              │

00:00:12 #186 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:12 #187 [Debug] >

00:00:12 #188 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:12 #189 [Debug] > // // test

00:00:12 #190 [Debug] >

00:00:12 #191 [Debug] > [[5i32; 4; join 3; 2; 1]]

00:00:12 #192 [Debug] > |> fold_list (join_body (+)) 0

00:00:12 #193 [Debug] > |> _equal 15

00:00:12 #194 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-0275-7559-7f0e8cb93416\main.spi

00:00:12 #195 [Debug] >

00:00:12 #196 [Debug] > ╭─[ 175.08ms - stdout ]────────────────────────────────────────────────────────╮

00:00:12 #197 [Debug] > │ let rec method1 () : int32 =                                                 │

00:00:12 #198 [Debug] > │     3                                                                        │

00:00:12 #199 [Debug] > │ and method2 (v0 : int32, v1 : int32) : int32 =                               │

00:00:12 #200 [Debug] > │     let v2 : int32 = v1 + v0                                                 │

00:00:12 #201 [Debug] > │     v2                                                                       │

00:00:12 #202 [Debug] > │ and method0 () : unit =                                                      │

00:00:12 #203 [Debug] > │     let v0 : int32 = method1()                                               │

00:00:12 #204 [Debug] > │     let v1 : int32 = 9                                                       │

00:00:12 #205 [Debug] > │     let v2 : int32 = method2(v0, v1)                                         │

00:00:12 #206 [Debug] > │     let v3 : int32 = v2 + 2                                                  │

00:00:12 #207 [Debug] > │     let v4 : int32 = v3 + 1                                                  │

00:00:12 #208 [Debug] > │     let v5 : bool = v4 = 15                                                  │

00:00:12 #209 [Debug] > │     let v6 : string = $"_equal / actual: %A{v4} / expected: %A{15}"          │

00:00:12 #210 [Debug] > │     let v7 : bool = v5 = false                                               │

00:00:12 #211 [Debug] > │     if v7 then                                                               │

00:00:12 #212 [Debug] > │         failwith<unit> v6                                                    │

00:00:12 #213 [Debug] > │ method0()                                                                    │

00:00:12 #214 [Debug] > │                                                                              │

00:00:12 #215 [Debug] > │                                                                              │

00:00:12 #216 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:12 #217 [Debug] >

00:00:12 #218 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:12 #219 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:12 #220 [Debug] > │ ## join_body_unit                                                            │

00:00:12 #221 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:12 #222 [Debug] >

00:00:12 #223 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:12 #224 [Debug] > inl join_body_unit body d x =

00:00:12 #225 [Debug] >     if var_is d |> not

00:00:12 #226 [Debug] >     then body x

00:00:12 #227 [Debug] >     else

00:00:12 #228 [Debug] >         inl x = dyn x

00:00:12 #229 [Debug] >         join body x

00:00:12 #230 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-0294-9418-9ed1301bd74f\main.spi

00:00:12 #231 [Debug] >

00:00:12 #232 [Debug] > ╭─[ 152.13ms - stdout ]────────────────────────────────────────────────────────╮

00:00:12 #233 [Debug] > │ ()                                                                           │

00:00:12 #234 [Debug] > │                                                                              │

00:00:12 #235 [Debug] > │                                                                              │

00:00:12 #236 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:12 #237 [Debug] >

00:00:12 #238 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:12 #239 [Debug] > // // test

00:00:12 #240 [Debug] >

00:00:12 #241 [Debug] > [[5i32; 4; join 3; 2; 1]]

00:00:12 #242 [Debug] > |> fold_list (fun acc n => join_body_unit ((+) acc) n n) 0

00:00:12 #243 [Debug] > |> _equal 15

00:00:12 #244 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-0309-0976-0c267f2a9dbd\main.spi

00:00:12 #245 [Debug] >

00:00:12 #246 [Debug] > ╭─[ 167.85ms - stdout ]────────────────────────────────────────────────────────╮

00:00:12 #247 [Debug] > │ let rec method1 () : int32 =                                                 │

00:00:12 #248 [Debug] > │     3                                                                        │

00:00:12 #249 [Debug] > │ and method2 (v0 : int32) : int32 =                                           │

00:00:12 #250 [Debug] > │     let v1 : int32 = 9 + v0                                                  │

00:00:12 #251 [Debug] > │     v1                                                                       │

00:00:12 #252 [Debug] > │ and method0 () : unit =                                                      │

00:00:12 #253 [Debug] > │     let v0 : int32 = method1()                                               │

00:00:12 #254 [Debug] > │     let v1 : int32 = method2(v0)                                             │

00:00:12 #255 [Debug] > │     let v2 : int32 = v1 + 2                                                  │

00:00:12 #256 [Debug] > │     let v3 : int32 = v2 + 1                                                  │

00:00:12 #257 [Debug] > │     let v4 : bool = v3 = 15                                                  │

00:00:12 #258 [Debug] > │     let v5 : string = $"_equal / actual: %A{v3} / expected: %A{15}"          │

00:00:12 #259 [Debug] > │     let v6 : bool = v4 = false                                               │

00:00:12 #260 [Debug] > │     if v6 then                                                               │

00:00:12 #261 [Debug] > │         failwith<unit> v5                                                    │

00:00:12 #262 [Debug] > │ method0()                                                                    │

00:00:12 #263 [Debug] > │                                                                              │

00:00:12 #264 [Debug] > │                                                                              │

00:00:12 #265 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:12 #266 [Debug] >

00:00:12 #267 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:12 #268 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:12 #269 [Debug] > │ ## run_target                                                                │

00:00:12 #270 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:12 #271 [Debug] >

00:00:12 #272 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:12 #273 [Debug] > union target =

00:00:12 #274 [Debug] >     | Rust

00:00:12 #275 [Debug] >     | Fsharp

00:00:12 #276 [Debug] >

00:00:12 #277 [Debug] > inl run_target (fn : target -> (() -> _)) =

00:00:12 #278 [Debug] >     inl rust_fn = fn Rust

00:00:12 #279 [Debug] >     inl fsharp_fn = fn Fsharp

00:00:12 #280 [Debug] >

00:00:12 #281 [Debug] >     $"#if FABLE_COMPILER_RUST"

00:00:12 #282 [Debug] >     $"!rust_fn ()"

00:00:12 #283 [Debug] >     $"#else"

00:00:12 #284 [Debug] >     $"!fsharp_fn ()"

00:00:12 #285 [Debug] >     $"#endif"

00:00:12 #286 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-0327-2797-25f9e68eae7e\main.spi

00:00:13 #287 [Debug] >

00:00:13 #288 [Debug] > ╭─[ 178.09ms - stdout ]────────────────────────────────────────────────────────╮

00:00:13 #289 [Debug] > │ ()                                                                           │

00:00:13 #290 [Debug] > │                                                                              │

00:00:13 #291 [Debug] > │                                                                              │

00:00:13 #292 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #293 [Debug] >

00:00:13 #294 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:13 #295 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:13 #296 [Debug] > │ ## format_debug                                                              │

00:00:13 #297 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #298 [Debug] >

00:00:13 #299 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:13 #300 [Debug] > inl format_debug x =

00:00:13 #301 [Debug] >     $"$\"%A{!x}\"" : string

00:00:13 #302 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-0346-4645-4a7e6a3952f6\main.spi

00:00:13 #303 [Debug] >

00:00:13 #304 [Debug] > ╭─[ 167.31ms - stdout ]────────────────────────────────────────────────────────╮

00:00:13 #305 [Debug] > │ ()                                                                           │

00:00:13 #306 [Debug] > │                                                                              │

00:00:13 #307 [Debug] > │                                                                              │

00:00:13 #308 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #309 [Debug] >

00:00:13 #310 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:13 #311 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:13 #312 [Debug] > │ ## nameof                                                                    │

00:00:13 #313 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #314 [Debug] >

00:00:13 #315 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:13 #316 [Debug] > inl nameof x : string =

00:00:13 #317 [Debug] >     $"nameof !x"

00:00:13 #318 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-0363-6369-641c3118f049\main.spi

00:00:13 #319 [Debug] >

00:00:13 #320 [Debug] > ╭─[ 164.07ms - stdout ]────────────────────────────────────────────────────────╮

00:00:13 #321 [Debug] > │ ()                                                                           │

00:00:13 #322 [Debug] > │                                                                              │

00:00:13 #323 [Debug] > │                                                                              │

00:00:13 #324 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #325 [Debug] >

00:00:13 #326 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:13 #327 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:13 #328 [Debug] > │ ## obj_to_string                                                             │

00:00:13 #329 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #330 [Debug] >

00:00:13 #331 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:13 #332 [Debug] > inl obj_to_string x : string =

00:00:13 #333 [Debug] >     $"!x.ToString ()"

00:00:13 #334 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-0380-8095-856e42273831\main.spi

00:00:13 #335 [Debug] >

00:00:13 #336 [Debug] > ╭─[ 148.70ms - stdout ]────────────────────────────────────────────────────────╮

00:00:13 #337 [Debug] > │ ()                                                                           │

00:00:13 #338 [Debug] > │                                                                              │

00:00:13 #339 [Debug] > │                                                                              │

00:00:13 #340 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #341 [Debug] >

00:00:13 #342 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:13 #343 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:13 #344 [Debug] > │ ## get_environment_variable                                                  │

00:00:13 #345 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #346 [Debug] >

00:00:13 #347 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:13 #348 [Debug] > inl get_environment_variable (var : string) : string =

00:00:13 #349 [Debug] >     $"System.Environment.GetEnvironmentVariable !var"

00:00:13 #350 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-0396-9641-943c007bee56\main.spi

00:00:13 #351 [Debug] >

00:00:13 #352 [Debug] > ╭─[ 149.44ms - stdout ]────────────────────────────────────────────────────────╮

00:00:13 #353 [Debug] > │ ()                                                                           │

00:00:13 #354 [Debug] > │                                                                              │

00:00:13 #355 [Debug] > │                                                                              │

00:00:13 #356 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:16 #357 [Debug] > [NbConvertApp] Converting notebook common.dib.ipynb to html

00:00:16 #358 [Debug] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

00:00:16 #359 [Debug] >   validate(nb)

00:00:16 #360 [Debug] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:72: UserWarning: IPython3 lexer unavailable, falling back on Python 3

00:00:16 #361 [Debug] >   return _pygments_highlight(

00:00:16 #362 [Debug] > [NbConvertApp] Writing 301673 bytes to common.dib.html

00:00:17 #363 [Debug] executeAsync / exitCode: 0 / output.Length: 18861

00:00:17 #364 [Debug] main / executeCommand / exitCode: 0

00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60

00:00:00 #2 [Debug] executeAsync / options: { Command =

   "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" port=13805"

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = Some <fun:main@450-1020> }

00:00:00 #3 [Debug] > pwd: C:\home\git\polyglot\lib\spiral

00:00:00 #4 [Debug] > dll_path: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release

00:00:00 #5 [Debug] runWithTimeoutAsync / timeout: 500

00:00:00 #6 [Verbose] waitForPortAccess / port: 13805 / retry: 0

00:00:01 #7 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:

00:00:01 #8 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0

00:00:01 #9 [Debug] > Server bound to: http://localhost:13805

00:00:01 #10 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 console.dib""

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = None }

00:00:05 #11 [Debug] >

00:00:05 #12 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:05 #13 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:05 #14 [Debug] > │ # console                                                                    │

00:00:05 #15 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:05 #16 [Debug] >

00:00:05 #17 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:05 #18 [Debug] > // // test

00:00:05 #19 [Debug] >

00:00:05 #20 [Debug] > open testing

00:00:09 #21 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-1778-7824-75a4f4f26595\main.spi

00:00:12 #22 [Debug] >

00:00:12 #23 [Debug] > ╭─[ 6.34s - stdout ]───────────────────────────────────────────────────────────╮

00:00:12 #24 [Debug] > │ ()                                                                           │

00:00:12 #25 [Debug] > │                                                                              │

00:00:12 #26 [Debug] > │                                                                              │

00:00:12 #27 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:12 #28 [Debug] >

00:00:12 #29 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:12 #30 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:12 #31 [Debug] > │ ## write_line                                                                │

00:00:12 #32 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:12 #33 [Debug] >

00:00:12 #34 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:12 #35 [Debug] > inl write_line obj : () =

00:00:12 #36 [Debug] >     $"System.Console.WriteLine !obj"

00:00:12 #37 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-2096-9612-9b52454ccae9\main.spi

00:00:12 #38 [Debug] >

00:00:12 #39 [Debug] > ╭─[ 215.47ms - stdout ]────────────────────────────────────────────────────────╮

00:00:12 #40 [Debug] > │ ()                                                                           │

00:00:12 #41 [Debug] > │                                                                              │

00:00:12 #42 [Debug] > │                                                                              │

00:00:12 #43 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:12 #44 [Debug] >

00:00:12 #45 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:12 #46 [Debug] > inl write_line_ ~obj : () =

00:00:12 #47 [Debug] >     $"System.Console.WriteLine !obj"

00:00:12 #48 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-2117-1755-15a21c3c15d9\main.spi

00:00:12 #49 [Debug] >

00:00:12 #50 [Debug] > ╭─[ 183.66ms - stdout ]────────────────────────────────────────────────────────╮

00:00:12 #51 [Debug] > │ ()                                                                           │

00:00:12 #52 [Debug] > │                                                                              │

00:00:12 #53 [Debug] > │                                                                              │

00:00:12 #54 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:14 #55 [Debug] > [NbConvertApp] Converting notebook console.dib.ipynb to html

00:00:14 #56 [Debug] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

00:00:14 #57 [Debug] >   validate(nb)

00:00:15 #58 [Debug] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:72: UserWarning: IPython3 lexer unavailable, falling back on Python 3

00:00:15 #59 [Debug] >   return _pygments_highlight(

00:00:15 #60 [Debug] > [NbConvertApp] Writing 273326 bytes to console.dib.html

00:00:16 #61 [Debug] executeAsync / exitCode: 0 / output.Length: 3010

00:00:16 #62 [Debug] main / executeCommand / exitCode: 0

00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60

00:00:00 #2 [Debug] executeAsync / options: { Command =

   "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" port=13805"

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = Some <fun:main@450-1020> }

00:00:00 #3 [Debug] > pwd: C:\home\git\polyglot\lib\spiral

00:00:00 #4 [Debug] > dll_path: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release

00:00:00 #5 [Debug] runWithTimeoutAsync / timeout: 500

00:00:00 #6 [Verbose] waitForPortAccess / port: 13805 / retry: 0

00:00:01 #7 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:

00:00:01 #8 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0

00:00:01 #9 [Debug] > Server bound to: http://localhost:13805

00:00:01 #10 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 math.dib""

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = None }

00:00:03 #11 [Debug] >

00:00:03 #12 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:03 #13 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:03 #14 [Debug] > │ # math                                                                       │

00:00:03 #15 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:03 #16 [Debug] >

00:00:03 #17 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:03 #18 [Debug] > // // test

00:00:03 #19 [Debug] >

00:00:03 #20 [Debug] > open testing

00:00:07 #21 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-3241-4104-43b5590037c5\main.spi

00:00:09 #22 [Debug] >

00:00:09 #23 [Debug] > ╭─[ 5.39s - stdout ]───────────────────────────────────────────────────────────╮

00:00:09 #24 [Debug] > │ ()                                                                           │

00:00:09 #25 [Debug] > │                                                                              │

00:00:09 #26 [Debug] > │                                                                              │

00:00:09 #27 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:09 #28 [Debug] >

00:00:09 #29 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:09 #30 [Debug] > // // test

00:00:09 #31 [Debug] >

00:00:09 #32 [Debug] > 2 * 2 / 0.4f64 |> sqrt

00:00:09 #33 [Debug] > |> _almost_equal 3.1622776601683795

00:00:09 #34 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-3552-5276-565f2058e1e0\main.spi

00:00:10 #35 [Debug] >

00:00:10 #36 [Debug] > ╭─[ 723.56ms - stdout ]────────────────────────────────────────────────────────╮

00:00:10 #37 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:10 #38 [Debug] > │     let v0 : string = $"_almost_equal / actual: %A{3.1622776601683795} /     │

00:00:10 #39 [Debug] > │ expected: %A{3.1622776601683795}"                                            │

00:00:10 #40 [Debug] > │     ()                                                                       │

00:00:10 #41 [Debug] > │ method0()                                                                    │

00:00:10 #42 [Debug] > │                                                                              │

00:00:10 #43 [Debug] > │                                                                              │

00:00:10 #44 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:10 #45 [Debug] >

00:00:10 #46 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:10 #47 [Debug] > // // test

00:00:10 #48 [Debug] >

00:00:10 #49 [Debug] > 2f64 / 3

00:00:10 #50 [Debug] > |> _almost_equal 0.6666666666666666

00:00:10 #51 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-3625-2527-25af781965f9\main.spi

00:00:10 #52 [Debug] >

00:00:10 #53 [Debug] > ╭─[ 138.98ms - stdout ]────────────────────────────────────────────────────────╮

00:00:10 #54 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:10 #55 [Debug] > │     let v0 : string = $"_almost_equal / actual: %A{0.6666666666666666} /     │

00:00:10 #56 [Debug] > │ expected: %A{0.6666666666666666}"                                            │

00:00:10 #57 [Debug] > │     ()                                                                       │

00:00:10 #58 [Debug] > │ method0()                                                                    │

00:00:10 #59 [Debug] > │                                                                              │

00:00:10 #60 [Debug] > │                                                                              │

00:00:10 #61 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:10 #62 [Debug] >

00:00:10 #63 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:10 #64 [Debug] > // // test

00:00:10 #65 [Debug] >

00:00:10 #66 [Debug] > 2f64 |> log

00:00:10 #67 [Debug] > |> _almost_equal 0.6931471805599453

00:00:10 #68 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-3639-3946-3d2f5abb9159\main.spi

00:00:10 #69 [Debug] >

00:00:10 #70 [Debug] > ╭─[ 162.11ms - stdout ]────────────────────────────────────────────────────────╮

00:00:10 #71 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:10 #72 [Debug] > │     let v0 : string = $"_almost_equal / actual: %A{0.6931471805599453} /     │

00:00:10 #73 [Debug] > │ expected: %A{0.6931471805599453}"                                            │

00:00:10 #74 [Debug] > │     ()                                                                       │

00:00:10 #75 [Debug] > │ method0()                                                                    │

00:00:10 #76 [Debug] > │                                                                              │

00:00:10 #77 [Debug] > │                                                                              │

00:00:10 #78 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:10 #79 [Debug] >

00:00:10 #80 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:10 #81 [Debug] > // // test

00:00:10 #82 [Debug] >

00:00:10 #83 [Debug] > pi

00:00:10 #84 [Debug] > |> _almost_equal 3.141592653589793f64

00:00:10 #85 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-3656-5619-5747d65a5e6f\main.spi

00:00:10 #86 [Debug] >

00:00:10 #87 [Debug] > ╭─[ 145.76ms - stdout ]────────────────────────────────────────────────────────╮

00:00:10 #88 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:10 #89 [Debug] > │     let v0 : string = $"_almost_equal / actual: %A{3.141592653589793} /      │

00:00:10 #90 [Debug] > │ expected: %A{3.141592653589793}"                                             │

00:00:10 #91 [Debug] > │     ()                                                                       │

00:00:10 #92 [Debug] > │ method0()                                                                    │

00:00:10 #93 [Debug] > │                                                                              │

00:00:10 #94 [Debug] > │                                                                              │

00:00:10 #95 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:10 #96 [Debug] >

00:00:10 #97 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:10 #98 [Debug] > // // test

00:00:10 #99 [Debug] >

00:00:10 #100 [Debug] > pi |> cos

00:00:10 #101 [Debug] > |> _equal -1f64

00:00:10 #102 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-3671-7100-7bfef597aebf\main.spi

00:00:10 #103 [Debug] >

00:00:10 #104 [Debug] > ╭─[ 181.65ms - stdout ]────────────────────────────────────────────────────────╮

00:00:10 #105 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:10 #106 [Debug] > │     let v0 : string = $"_equal / actual: %A{-1.0} / expected: %A{-1.0}"      │

00:00:10 #107 [Debug] > │     ()                                                                       │

00:00:10 #108 [Debug] > │ method0()                                                                    │

00:00:10 #109 [Debug] > │                                                                              │

00:00:10 #110 [Debug] > │                                                                              │

00:00:10 #111 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:10 #112 [Debug] >

00:00:10 #113 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:10 #114 [Debug] > // // test

00:00:10 #115 [Debug] >

00:00:10 #116 [Debug] > pi

00:00:10 #117 [Debug] > |> cos

00:00:10 #118 [Debug] > |> fun n => n / 2f64

00:00:10 #119 [Debug] > |> _almost_equal -0.5

00:00:10 #120 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-3690-9030-9b85234fbaa4\main.spi

00:00:10 #121 [Debug] >

00:00:10 #122 [Debug] > ╭─[ 164.74ms - stdout ]────────────────────────────────────────────────────────╮

00:00:10 #123 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:10 #124 [Debug] > │     let v0 : string = $"_almost_equal / actual: %A{-0.5} / expected:         │

00:00:10 #125 [Debug] > │ %A{-0.5}"                                                                    │

00:00:10 #126 [Debug] > │     ()                                                                       │

00:00:10 #127 [Debug] > │ method0()                                                                    │

00:00:10 #128 [Debug] > │                                                                              │

00:00:10 #129 [Debug] > │                                                                              │

00:00:10 #130 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:10 #131 [Debug] >

00:00:10 #132 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:10 #133 [Debug] > // // test

00:00:10 #134 [Debug] >

00:00:10 #135 [Debug] > pi / 2 |> cos

00:00:10 #136 [Debug] > |> _almost_equal 0.00000000000000006123233995736766f64

00:00:10 #137 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-3706-0691-006328caa609\main.spi

00:00:11 #138 [Debug] >

00:00:11 #139 [Debug] > ╭─[ 181.49ms - stdout ]────────────────────────────────────────────────────────╮

00:00:11 #140 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:11 #141 [Debug] > │     let v0 : string = $"_almost_equal / actual: %A{6.123233995736766E-17} /  │

00:00:11 #142 [Debug] > │ expected: %A{6.123233995736766E-17}"                                         │

00:00:11 #143 [Debug] > │     ()                                                                       │

00:00:11 #144 [Debug] > │ method0()                                                                    │

00:00:11 #145 [Debug] > │                                                                              │

00:00:11 #146 [Debug] > │                                                                              │

00:00:11 #147 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:11 #148 [Debug] >

00:00:11 #149 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:11 #150 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:11 #151 [Debug] > │ ## atan2                                                                     │

00:00:11 #152 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:11 #153 [Debug] >

00:00:11 #154 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:11 #155 [Debug] > inl atan2 (y : f64) (x : f64) =

00:00:11 #156 [Debug] >     $"System.Math.Atan2 (!y, !x)" : f64

00:00:11 #157 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-3726-2693-2512d3af0340\main.spi

00:00:11 #158 [Debug] >

00:00:11 #159 [Debug] > ╭─[ 176.49ms - stdout ]────────────────────────────────────────────────────────╮

00:00:11 #160 [Debug] > │ ()                                                                           │

00:00:11 #161 [Debug] > │                                                                              │

00:00:11 #162 [Debug] > │                                                                              │

00:00:11 #163 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:11 #164 [Debug] >

00:00:11 #165 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:11 #166 [Debug] > // // test

00:00:11 #167 [Debug] >

00:00:11 #168 [Debug] > 0 |> atan2 1

00:00:11 #169 [Debug] > |> _equal 1.5707963267948966

00:00:11 #170 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-3744-4431-469bdd85a070\main.spi

00:00:11 #171 [Debug] >

00:00:11 #172 [Debug] > ╭─[ 580.09ms - stdout ]────────────────────────────────────────────────────────╮

00:00:11 #173 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:11 #174 [Debug] > │     let v0 : float = System.Math.Atan2 (1.0, 0.0)                            │

00:00:11 #175 [Debug] > │     let v1 : bool = v0 = 1.5707963267948966                                  │

00:00:11 #176 [Debug] > │     let v2 : string = $"_equal / actual: %A{v0} / expected:                  │

00:00:11 #177 [Debug] > │ %A{1.5707963267948966}"                                                      │

00:00:11 #178 [Debug] > │     let v3 : bool = v1 = false                                               │

00:00:11 #179 [Debug] > │     if v3 then                                                               │

00:00:11 #180 [Debug] > │         failwith<unit> v2                                                    │

00:00:11 #181 [Debug] > │ method0()                                                                    │

00:00:11 #182 [Debug] > │                                                                              │

00:00:11 #183 [Debug] > │                                                                              │

00:00:11 #184 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:11 #185 [Debug] >

00:00:11 #186 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:11 #187 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:11 #188 [Debug] > │ ## e                                                                         │

00:00:11 #189 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:11 #190 [Debug] >

00:00:11 #191 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:11 #192 [Debug] > inl e () =

00:00:11 #193 [Debug] >     exp 1f64

00:00:11 #194 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-3807-0776-06f62fa62520\main.spi

00:00:12 #195 [Debug] >

00:00:12 #196 [Debug] > ╭─[ 243.80ms - stdout ]────────────────────────────────────────────────────────╮

00:00:12 #197 [Debug] > │ ()                                                                           │

00:00:12 #198 [Debug] > │                                                                              │

00:00:12 #199 [Debug] > │                                                                              │

00:00:12 #200 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:12 #201 [Debug] >

00:00:12 #202 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:12 #203 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:12 #204 [Debug] > │ ## floor                                                                     │

00:00:12 #205 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:12 #206 [Debug] >

00:00:12 #207 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:12 #208 [Debug] > inl floor forall t {float}. (x : t) : t =

00:00:12 #209 [Debug] >     $"floor !x"

00:00:12 #210 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-3832-3299-3d75e371c33b\main.spi

00:00:12 #211 [Debug] >

00:00:12 #212 [Debug] > ╭─[ 217.58ms - stdout ]────────────────────────────────────────────────────────╮

00:00:12 #213 [Debug] > │ ()                                                                           │

00:00:12 #214 [Debug] > │                                                                              │

00:00:12 #215 [Debug] > │                                                                              │

00:00:12 #216 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:12 #217 [Debug] >

00:00:12 #218 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:12 #219 [Debug] > // // test

00:00:12 #220 [Debug] >

00:00:12 #221 [Debug] > 0.6 |> floor

00:00:12 #222 [Debug] > |> _equal 0f64

00:00:12 #223 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-3854-5477-51d2a895ded1\main.spi

00:00:12 #224 [Debug] >

00:00:12 #225 [Debug] > ╭─[ 286.18ms - stdout ]────────────────────────────────────────────────────────╮

00:00:12 #226 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:12 #227 [Debug] > │     let v0 : float = floor 0.6                                               │

00:00:12 #228 [Debug] > │     let v1 : bool = v0 = 0.0                                                 │

00:00:12 #229 [Debug] > │     let v2 : string = $"_equal / actual: %A{v0} / expected: %A{0.0}"         │

00:00:12 #230 [Debug] > │     let v3 : bool = v1 = false                                               │

00:00:12 #231 [Debug] > │     if v3 then                                                               │

00:00:12 #232 [Debug] > │         failwith<unit> v2                                                    │

00:00:12 #233 [Debug] > │ method0()                                                                    │

00:00:12 #234 [Debug] > │                                                                              │

00:00:12 #235 [Debug] > │                                                                              │

00:00:12 #236 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:12 #237 [Debug] >

00:00:12 #238 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:12 #239 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:12 #240 [Debug] > │ ## log_base                                                                  │

00:00:12 #241 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:12 #242 [Debug] >

00:00:12 #243 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:12 #244 [Debug] > inl log_base (new_base : f64) (a : f64) =

00:00:12 #245 [Debug] >     $"System.Math.Log (!a, !new_base)" : f64

00:00:12 #246 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-3883-8391-8185e0503ad1\main.spi

00:00:12 #247 [Debug] >

00:00:12 #248 [Debug] > ╭─[ 153.30ms - stdout ]────────────────────────────────────────────────────────╮

00:00:12 #249 [Debug] > │ ()                                                                           │

00:00:12 #250 [Debug] > │                                                                              │

00:00:12 #251 [Debug] > │                                                                              │

00:00:12 #252 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:12 #253 [Debug] >

00:00:12 #254 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:12 #255 [Debug] > // // test

00:00:12 #256 [Debug] >

00:00:12 #257 [Debug] > 100 |> log_base 10

00:00:12 #258 [Debug] > |> _equal 2

00:00:12 #259 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-3899-9953-946a37c0088b\main.spi

00:00:12 #260 [Debug] >

00:00:13 #261 [Debug] > ╭─[ 228.62ms - stdout ]────────────────────────────────────────────────────────╮

00:00:13 #262 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:13 #263 [Debug] > │     let v0 : float = System.Math.Log (100.0, 10.0)                           │

00:00:13 #264 [Debug] > │     let v1 : bool = v0 = 2.0                                                 │

00:00:13 #265 [Debug] > │     let v2 : string = $"_equal / actual: %A{v0} / expected: %A{2.0}"         │

00:00:13 #266 [Debug] > │     let v3 : bool = v1 = false                                               │

00:00:13 #267 [Debug] > │     if v3 then                                                               │

00:00:13 #268 [Debug] > │         failwith<unit> v2                                                    │

00:00:13 #269 [Debug] > │ method0()                                                                    │

00:00:13 #270 [Debug] > │                                                                              │

00:00:13 #271 [Debug] > │                                                                              │

00:00:13 #272 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #273 [Debug] >

00:00:13 #274 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:13 #275 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:13 #276 [Debug] > │ ## round                                                                     │

00:00:13 #277 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #278 [Debug] >

00:00:13 #279 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:13 #280 [Debug] > inl round forall t {float}. (x : t) : t =

00:00:13 #281 [Debug] >     $"round !x"

00:00:13 #282 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-3923-2328-2455ed5cb3a1\main.spi

00:00:13 #283 [Debug] >

00:00:13 #284 [Debug] > ╭─[ 172.32ms - stdout ]────────────────────────────────────────────────────────╮

00:00:13 #285 [Debug] > │ ()                                                                           │

00:00:13 #286 [Debug] > │                                                                              │

00:00:13 #287 [Debug] > │                                                                              │

00:00:13 #288 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #289 [Debug] >

00:00:13 #290 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:13 #291 [Debug] > // // test

00:00:13 #292 [Debug] >

00:00:13 #293 [Debug] > 0.5 |> round

00:00:13 #294 [Debug] > |> _equal 0f64

00:00:13 #295 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-3941-4101-47748a19a79a\main.spi

00:00:13 #296 [Debug] >

00:00:13 #297 [Debug] > ╭─[ 183.56ms - stdout ]────────────────────────────────────────────────────────╮

00:00:13 #298 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:13 #299 [Debug] > │     let v0 : float = round 0.5                                               │

00:00:13 #300 [Debug] > │     let v1 : bool = v0 = 0.0                                                 │

00:00:13 #301 [Debug] > │     let v2 : string = $"_equal / actual: %A{v0} / expected: %A{0.0}"         │

00:00:13 #302 [Debug] > │     let v3 : bool = v1 = false                                               │

00:00:13 #303 [Debug] > │     if v3 then                                                               │

00:00:13 #304 [Debug] > │         failwith<unit> v2                                                    │

00:00:13 #305 [Debug] > │ method0()                                                                    │

00:00:13 #306 [Debug] > │                                                                              │

00:00:13 #307 [Debug] > │                                                                              │

00:00:13 #308 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #309 [Debug] >

00:00:13 #310 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:13 #311 [Debug] > // // test

00:00:13 #312 [Debug] >

00:00:13 #313 [Debug] > 0.6 |> round

00:00:13 #314 [Debug] > |> _equal 1f64

00:00:13 #315 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-3960-6030-6bd80e84d4ae\main.spi

00:00:13 #316 [Debug] >

00:00:13 #317 [Debug] > ╭─[ 173.73ms - stdout ]────────────────────────────────────────────────────────╮

00:00:13 #318 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:13 #319 [Debug] > │     let v0 : float = round 0.6                                               │

00:00:13 #320 [Debug] > │     let v1 : bool = v0 = 1.0                                                 │

00:00:13 #321 [Debug] > │     let v2 : string = $"_equal / actual: %A{v0} / expected: %A{1.0}"         │

00:00:13 #322 [Debug] > │     let v3 : bool = v1 = false                                               │

00:00:13 #323 [Debug] > │     if v3 then                                                               │

00:00:13 #324 [Debug] > │         failwith<unit> v2                                                    │

00:00:13 #325 [Debug] > │ method0()                                                                    │

00:00:13 #326 [Debug] > │                                                                              │

00:00:13 #327 [Debug] > │                                                                              │

00:00:13 #328 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #329 [Debug] >

00:00:13 #330 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:13 #331 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:13 #332 [Debug] > │ ## square                                                                    │

00:00:13 #333 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #334 [Debug] >

00:00:13 #335 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:13 #336 [Debug] > inl square x =

00:00:13 #337 [Debug] >     x ** 2

00:00:13 #338 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-3978-7855-7b414893c65c\main.spi

00:00:13 #339 [Debug] >

00:00:13 #340 [Debug] > ╭─[ 167.48ms - stdout ]────────────────────────────────────────────────────────╮

00:00:13 #341 [Debug] > │ ()                                                                           │

00:00:13 #342 [Debug] > │                                                                              │

00:00:13 #343 [Debug] > │                                                                              │

00:00:13 #344 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #345 [Debug] >

00:00:13 #346 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:13 #347 [Debug] > // // test

00:00:13 #348 [Debug] >

00:00:13 #349 [Debug] > 5f64

00:00:13 #350 [Debug] > |> sqrt

00:00:13 #351 [Debug] > |> square

00:00:13 #352 [Debug] > |> _almost_equal 5

00:00:13 #353 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-3995-9559-93244b72a179\main.spi

00:00:13 #354 [Debug] >

00:00:13 #355 [Debug] > ╭─[ 157.13ms - stdout ]────────────────────────────────────────────────────────╮

00:00:13 #356 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:13 #357 [Debug] > │     let v0 : string = $"_almost_equal / actual: %A{5.000000000000001} /      │

00:00:13 #358 [Debug] > │ expected: %A{5.0}"                                                           │

00:00:13 #359 [Debug] > │     ()                                                                       │

00:00:13 #360 [Debug] > │ method0()                                                                    │

00:00:13 #361 [Debug] > │                                                                              │

00:00:13 #362 [Debug] > │                                                                              │

00:00:13 #363 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #364 [Debug] >

00:00:13 #365 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:13 #366 [Debug] > // // test

00:00:13 #367 [Debug] >

00:00:13 #368 [Debug] > e () |> square

00:00:13 #369 [Debug] > |> _almost_equal 7.3890560989306495

00:00:14 #370 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-4011-1161-17625cad3b3c\main.spi

00:00:14 #371 [Debug] >

00:00:14 #372 [Debug] > ╭─[ 206.94ms - stdout ]────────────────────────────────────────────────────────╮

00:00:14 #373 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:14 #374 [Debug] > │     let v0 : string = $"_almost_equal / actual: %A{7.3890560989306495} /     │

00:00:14 #375 [Debug] > │ expected: %A{7.3890560989306495}"                                            │

00:00:14 #376 [Debug] > │     ()                                                                       │

00:00:14 #377 [Debug] > │ method0()                                                                    │

00:00:14 #378 [Debug] > │                                                                              │

00:00:14 #379 [Debug] > │                                                                              │

00:00:14 #380 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:17 #381 [Debug] > [NbConvertApp] Converting notebook math.dib.ipynb to html

00:00:17 #382 [Debug] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

00:00:17 #383 [Debug] >   validate(nb)

00:00:17 #384 [Debug] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:72: UserWarning: IPython3 lexer unavailable, falling back on Python 3

00:00:17 #385 [Debug] >   return _pygments_highlight(

00:00:18 #386 [Debug] > [NbConvertApp] Writing 300934 bytes to math.dib.html

00:00:19 #387 [Debug] executeAsync / exitCode: 0 / output.Length: 20120

00:00:19 #388 [Debug] main / executeCommand / exitCode: 0

00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60

00:00:00 #2 [Debug] executeAsync / options: { Command =

   "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" port=13805"

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = Some <fun:main@450-1020> }

00:00:00 #3 [Debug] > pwd: C:\home\git\polyglot\lib\spiral

00:00:00 #4 [Debug] > dll_path: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release

00:00:00 #5 [Debug] runWithTimeoutAsync / timeout: 500

00:00:00 #6 [Verbose] waitForPortAccess / port: 13805 / retry: 0

00:00:01 #7 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:

00:00:01 #8 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0

00:00:01 #9 [Debug] > Server bound to: http://localhost:13805

00:00:01 #10 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 \"optionm'.dib\"""

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = None }

00:00:04 #11 [Debug] >

00:00:05 #12 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:05 #13 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:05 #14 [Debug] > │ # optionm                                                                    │

00:00:05 #15 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:05 #16 [Debug] >

00:00:05 #17 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:05 #18 [Debug] > // // test

00:00:05 #19 [Debug] >

00:00:05 #20 [Debug] > open testing

00:00:10 #21 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-5520-2008-2ce619c9e125\main.spi

00:00:13 #22 [Debug] >

00:00:13 #23 [Debug] > ╭─[ 8.03s - stdout ]───────────────────────────────────────────────────────────╮

00:00:13 #24 [Debug] > │ ()                                                                           │

00:00:13 #25 [Debug] > │                                                                              │

00:00:13 #26 [Debug] > │                                                                              │

00:00:13 #27 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #28 [Debug] >

00:00:13 #29 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:13 #30 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:13 #31 [Debug] > │ ## default_value                                                             │

00:00:13 #32 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #33 [Debug] >

00:00:13 #34 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:13 #35 [Debug] > inl default_value d = optionm.defaultWith d

00:00:13 #36 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-5923-2301-2e1d384d594b\main.spi

00:00:13 #37 [Debug] >

00:00:13 #38 [Debug] > ╭─[ 181.85ms - stdout ]────────────────────────────────────────────────────────╮

00:00:13 #39 [Debug] > │ ()                                                                           │

00:00:13 #40 [Debug] > │                                                                              │

00:00:13 #41 [Debug] > │                                                                              │

00:00:13 #42 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #43 [Debug] >

00:00:13 #44 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:13 #45 [Debug] > // // test

00:00:13 #46 [Debug] >

00:00:13 #47 [Debug] > None

00:00:13 #48 [Debug] > |> default_value 3i32

00:00:13 #49 [Debug] > |> _equal 3i32

00:00:13 #50 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1408-5941-4135-468ba3b9b1e6\main.spi

00:00:15 #51 [Debug] >

00:00:15 #52 [Debug] > ╭─[ 2.15s - stdout ]───────────────────────────────────────────────────────────╮

00:00:15 #53 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:15 #54 [Debug] > │     let v0 : string = $"_equal / actual: %A{3} / expected: %A{3}"            │

00:00:15 #55 [Debug] > │     ()                                                                       │

00:00:15 #56 [Debug] > │ method0()                                                                    │

00:00:15 #57 [Debug] > │                                                                              │

00:00:15 #58 [Debug] > │                                                                              │

00:00:15 #59 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #60 [Debug] >

00:00:15 #61 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:15 #62 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:15 #63 [Debug] > │ ## default_with                                                              │

00:00:15 #64 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #65 [Debug] >

00:00:16 #66 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:16 #67 [Debug] > inl default_with fn = function Some x => x | None => fn ()

00:00:16 #68 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-0202-0222-04a1ad6f0028\main.spi

00:00:16 #69 [Debug] >

00:00:16 #70 [Debug] > ╭─[ 506.43ms - stdout ]────────────────────────────────────────────────────────╮

00:00:16 #71 [Debug] > │ ()                                                                           │

00:00:16 #72 [Debug] > │                                                                              │

00:00:16 #73 [Debug] > │                                                                              │

00:00:16 #74 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:16 #75 [Debug] >

00:00:16 #76 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:16 #77 [Debug] > // // test

00:00:16 #78 [Debug] >

00:00:16 #79 [Debug] > None

00:00:16 #80 [Debug] > |> default_with (fun () => 3i32)

00:00:16 #81 [Debug] > |> _equal 3i32

00:00:16 #82 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-0249-4937-4cc99564da3a\main.spi

00:00:16 #83 [Debug] >

00:00:16 #84 [Debug] > ╭─[ 324.44ms - stdout ]────────────────────────────────────────────────────────╮

00:00:16 #85 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:16 #86 [Debug] > │     let v0 : string = $"_equal / actual: %A{3} / expected: %A{3}"            │

00:00:16 #87 [Debug] > │     ()                                                                       │

00:00:16 #88 [Debug] > │ method0()                                                                    │

00:00:16 #89 [Debug] > │                                                                              │

00:00:16 #90 [Debug] > │                                                                              │

00:00:16 #91 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:16 #92 [Debug] >

00:00:16 #93 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:16 #94 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:16 #95 [Debug] > │ ## choose                                                                    │

00:00:16 #96 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:16 #97 [Debug] >

00:00:16 #98 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:16 #99 [Debug] > inl choose fn a b =

00:00:16 #100 [Debug] >     match a, b with

00:00:16 #101 [Debug] >     | Some x, Some y => fn x y |> Some

00:00:16 #102 [Debug] >     | _ => None

00:00:17 #103 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-0290-9087-9b9f2397c89f\main.spi

00:00:17 #104 [Debug] >

00:00:17 #105 [Debug] > ╭─[ 313.55ms - stdout ]────────────────────────────────────────────────────────╮

00:00:17 #106 [Debug] > │ ()                                                                           │

00:00:17 #107 [Debug] > │                                                                              │

00:00:17 #108 [Debug] > │                                                                              │

00:00:17 #109 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:17 #110 [Debug] >

00:00:17 #111 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:17 #112 [Debug] > // // test

00:00:17 #113 [Debug] >

00:00:17 #114 [Debug] > (Some 2i32, Some 3)

00:00:17 #115 [Debug] > ||> choose (+)

00:00:17 #116 [Debug] > |> _equal (Some 5)

00:00:17 #117 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-0326-2627-24d403863d36\main.spi

00:00:18 #118 [Debug] >

00:00:18 #119 [Debug] > ╭─[ 1.31s - stdout ]───────────────────────────────────────────────────────────╮

00:00:18 #120 [Debug] > │ type [<Struct>] US0 =                                                        │

00:00:18 #121 [Debug] > │     | US0_0                                                                  │

00:00:18 #122 [Debug] > │     | US0_1 of f1_0 : int32                                                  │

00:00:18 #123 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:18 #124 [Debug] > │     let v3 : US0 = US0_1(5)                                                  │

00:00:18 #125 [Debug] > │     let v4 : US0 = US0_1(5)                                                  │

00:00:18 #126 [Debug] > │     let v5 : string = $"_equal / actual: %A{v3} / expected: %A{v4}"          │

00:00:18 #127 [Debug] > │     ()                                                                       │

00:00:18 #128 [Debug] > │ method0()                                                                    │

00:00:18 #129 [Debug] > │                                                                              │

00:00:18 #130 [Debug] > │                                                                              │

00:00:18 #131 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:18 #132 [Debug] >

00:00:18 #133 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:18 #134 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:18 #135 [Debug] > │ ## iter                                                                      │

00:00:18 #136 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:18 #137 [Debug] >

00:00:18 #138 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:18 #139 [Debug] > inl iter fn = function

00:00:18 #140 [Debug] >     | Some x => fn x

00:00:18 #141 [Debug] >     | None => ()

00:00:18 #142 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-0456-5623-583ba24f51b7\main.spi

00:00:18 #143 [Debug] >

00:00:18 #144 [Debug] > ╭─[ 248.56ms - stdout ]────────────────────────────────────────────────────────╮

00:00:18 #145 [Debug] > │ ()                                                                           │

00:00:18 #146 [Debug] > │                                                                              │

00:00:18 #147 [Debug] > │                                                                              │

00:00:18 #148 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:18 #149 [Debug] >

00:00:18 #150 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:18 #151 [Debug] > // // test

00:00:18 #152 [Debug] >

00:00:18 #153 [Debug] > inl n = mut 1i32

00:00:18 #154 [Debug] > inl fn =

00:00:18 #155 [Debug] >     fun n' =>

00:00:18 #156 [Debug] >         n <- *n + n'

00:00:18 #157 [Debug] > Some 1i32 |> iter fn

00:00:18 #158 [Debug] > None |> iter fn

00:00:18 #159 [Debug] > *n

00:00:18 #160 [Debug] > |> _equal 2i32

00:00:18 #161 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-0480-8043-81224d8ec174\main.spi

00:00:19 #162 [Debug] >

00:00:19 #163 [Debug] > ╭─[ 549.42ms - stdout ]────────────────────────────────────────────────────────╮

00:00:19 #164 [Debug] > │ type Mut0 = {mutable l0 : int32}                                             │

00:00:19 #165 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:19 #166 [Debug] > │     let v0 : Mut0 = {l0 = 1} : Mut0                                          │

00:00:19 #167 [Debug] > │     let v1 : int32 = v0.l0                                                   │

00:00:19 #168 [Debug] > │     let v2 : int32 = v1 + 1                                                  │

00:00:19 #169 [Debug] > │     v0.l0 <- v2                                                              │

00:00:19 #170 [Debug] > │     let v3 : int32 = v0.l0                                                   │

00:00:19 #171 [Debug] > │     let v4 : bool = v3 = 2                                                   │

00:00:19 #172 [Debug] > │     let v5 : string = $"_equal / actual: %A{v3} / expected: %A{2}"           │

00:00:19 #173 [Debug] > │     let v6 : bool = v4 = false                                               │

00:00:19 #174 [Debug] > │     if v6 then                                                               │

00:00:19 #175 [Debug] > │         failwith<unit> v5                                                    │

00:00:19 #176 [Debug] > │ method0()                                                                    │

00:00:19 #177 [Debug] > │                                                                              │

00:00:19 #178 [Debug] > │                                                                              │

00:00:19 #179 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:19 #180 [Debug] >

00:00:19 #181 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:19 #182 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:19 #183 [Debug] > │ ## option_fsharp                                                             │

00:00:19 #184 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:19 #185 [Debug] >

00:00:19 #186 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:19 #187 [Debug] > nominal option_fsharp t = $"`t option"

00:00:19 #188 [Debug] >

00:00:19 #189 [Debug] > inl from_fsharp forall t. (x : option_fsharp t) : option t =

00:00:19 #190 [Debug] >     inl some x : option t = Some x

00:00:19 #191 [Debug] >     inl none : option t = None

00:00:19 #192 [Debug] >     $"!x |> Option.map !some |> Option.defaultValue !none"

00:00:19 #193 [Debug] >

00:00:19 #194 [Debug] > inl to_fsharp forall t. (x : option t) : option_fsharp t =

00:00:19 #195 [Debug] >     match x with

00:00:19 #196 [Debug] >     | Some x => $"Some !x"

00:00:19 #197 [Debug] >     | None => $"None"

00:00:19 #198 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-0536-3675-337962866df9\main.spi

00:00:19 #199 [Debug] >

00:00:19 #200 [Debug] > ╭─[ 135.30ms - stdout ]────────────────────────────────────────────────────────╮

00:00:19 #201 [Debug] > │ ()                                                                           │

00:00:19 #202 [Debug] > │                                                                              │

00:00:19 #203 [Debug] > │                                                                              │

00:00:19 #204 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:19 #205 [Debug] >

00:00:19 #206 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:19 #207 [Debug] > // // test

00:00:19 #208 [Debug] >

00:00:19 #209 [Debug] > inl x = Some 3i32

00:00:19 #210 [Debug] > inl y : option i32 = None

00:00:19 #211 [Debug] > inl x' = x |> to_fsharp |> from_fsharp

00:00:19 #212 [Debug] > inl y' = y |> to_fsharp |> from_fsharp

00:00:19 #213 [Debug] > (x', y') |> _equal (x, y)

00:00:19 #214 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-0550-5045-526cf6cc8482\main.spi

00:00:19 #215 [Debug] >

00:00:20 #216 [Debug] > ╭─[ 441.44ms - stdout ]────────────────────────────────────────────────────────╮

00:00:20 #217 [Debug] > │ type [<Struct>] US0 =                                                        │

00:00:20 #218 [Debug] > │     | US0_0                                                                  │

00:00:20 #219 [Debug] > │     | US0_1 of f1_0 : int32                                                  │

00:00:20 #220 [Debug] > │ let rec closure0 () (v0 : int32) : US0 =                                     │

00:00:20 #221 [Debug] > │     US0_1(v0)                                                                │

00:00:20 #222 [Debug] > │ and method0 () : unit =                                                      │

00:00:20 #223 [Debug] > │     let v0 : int32 option = Some 3                                           │

00:00:20 #224 [Debug] > │     let v1 : (int32 -> US0) = closure0()                                     │

00:00:20 #225 [Debug] > │     let v2 : US0 = US0_0                                                     │

00:00:20 #226 [Debug] > │     let v3 : US0 = v0 |> Option.map v1 |> Option.defaultValue v2             │

00:00:20 #227 [Debug] > │     let v4 : int32 option = None                                             │

00:00:20 #228 [Debug] > │     let v5 : US0 = US0_0                                                     │

00:00:20 #229 [Debug] > │     let v6 : US0 = v4 |> Option.map v1 |> Option.defaultValue v5             │

00:00:20 #230 [Debug] > │     let v11 : bool =                                                         │

00:00:20 #231 [Debug] > │         match v3 with                                                        │

00:00:20 #232 [Debug] > │         | US0_1(v9) -> (* Some *)                                            │

00:00:20 #233 [Debug] > │             let v10 : bool = v9 = 3                                          │

00:00:20 #234 [Debug] > │             v10                                                              │

00:00:20 #235 [Debug] > │         | _ ->                                                               │

00:00:20 #236 [Debug] > │             false                                                            │

00:00:20 #237 [Debug] > │     let v13 : bool =                                                         │

00:00:20 #238 [Debug] > │         if v11 then                                                          │

00:00:20 #239 [Debug] > │             match v6 with                                                    │

00:00:20 #240 [Debug] > │             | US0_0 -> (* None *)                                            │

00:00:20 #241 [Debug] > │                 true                                                         │

00:00:20 #242 [Debug] > │             | _ ->                                                           │

00:00:20 #243 [Debug] > │                 false                                                        │

00:00:20 #244 [Debug] > │         else                                                                 │

00:00:20 #245 [Debug] > │             false                                                            │

00:00:20 #246 [Debug] > │     let v14 : US0 = US0_1(3)                                                 │

00:00:20 #247 [Debug] > │     let v15 : US0 = US0_0                                                    │

00:00:20 #248 [Debug] > │     let v16 : string = $"_equal / actual: %A{struct (v3, v6)} / expected:    │

00:00:20 #249 [Debug] > │ %A{struct (v14, v15)}"                                                       │

00:00:20 #250 [Debug] > │     let v17 : bool = v13 = false                                             │

00:00:20 #251 [Debug] > │     if v17 then                                                              │

00:00:20 #252 [Debug] > │         failwith<unit> v16                                                   │

00:00:20 #253 [Debug] > │ method0()                                                                    │

00:00:20 #254 [Debug] > │                                                                              │

00:00:20 #255 [Debug] > │                                                                              │

00:00:20 #256 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:22 #257 [Debug] > [NbConvertApp] Converting notebook optionm'.dib.ipynb to html

00:00:22 #258 [Debug] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

00:00:22 #259 [Debug] >   validate(nb)

00:00:23 #260 [Debug] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:72: UserWarning: IPython3 lexer unavailable, falling back on Python 3

00:00:23 #261 [Debug] >   return _pygments_highlight(

00:00:23 #262 [Debug] > [NbConvertApp] Writing 291081 bytes to optionm'.dib.html

00:00:24 #263 [Debug] executeAsync / exitCode: 0 / output.Length: 14194

00:00:24 #264 [Debug] main / executeCommand / exitCode: 0

00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60

00:00:00 #2 [Debug] executeAsync / options: { Command =

   "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" port=13805"

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = Some <fun:main@450-1020> }

00:00:00 #3 [Debug] > pwd: C:\home\git\polyglot\lib\spiral

00:00:00 #4 [Debug] > dll_path: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release

00:00:00 #5 [Debug] runWithTimeoutAsync / timeout: 500

00:00:00 #6 [Verbose] waitForPortAccess / port: 13805 / retry: 0

00:00:01 #7 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:

00:00:01 #8 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0

00:00:01 #9 [Debug] > Server bound to: http://localhost:13805

00:00:01 #10 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 \"am'.dib\"""

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = None }

00:00:03 #11 [Debug] >

00:00:03 #12 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:03 #13 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:03 #14 [Debug] > │ # am                                                                         │

00:00:03 #15 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:03 #16 [Debug] >

00:00:03 #17 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:03 #18 [Debug] > // // test

00:00:03 #19 [Debug] >

00:00:03 #20 [Debug] > open testing

00:00:07 #21 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-1700-0036-00f44410be03\main.spi

00:00:10 #22 [Debug] >

00:00:10 #23 [Debug] > ╭─[ 6.90s - stdout ]───────────────────────────────────────────────────────────╮

00:00:10 #24 [Debug] > │ ()                                                                           │

00:00:10 #25 [Debug] > │                                                                              │

00:00:10 #26 [Debug] > │                                                                              │

00:00:10 #27 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:10 #28 [Debug] >

00:00:10 #29 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:10 #30 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:10 #31 [Debug] > │ ## sum                                                                       │

00:00:10 #32 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:10 #33 [Debug] >

00:00:10 #34 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:10 #35 [Debug] > inl sum (a' : a _ _) =

00:00:10 #36 [Debug] >     a' |> am.fold (+) 0

00:00:10 #37 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-2163-6377-6104c4004cdb\main.spi

00:00:10 #38 [Debug] >

00:00:10 #39 [Debug] > ╭─[ 254.38ms - stdout ]────────────────────────────────────────────────────────╮

00:00:10 #40 [Debug] > │ ()                                                                           │

00:00:10 #41 [Debug] > │                                                                              │

00:00:10 #42 [Debug] > │                                                                              │

00:00:10 #43 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:10 #44 [Debug] >

00:00:10 #45 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:10 #46 [Debug] > // // test

00:00:10 #47 [Debug] >

00:00:10 #48 [Debug] > am.init 10i32 id

00:00:10 #49 [Debug] > |> sum

00:00:10 #50 [Debug] > |> _equal 45

00:00:11 #51 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-2188-8899-899cc9df5d8c\main.spi

00:00:13 #52 [Debug] >

00:00:13 #53 [Debug] > ╭─[ 2.14s - stdout ]───────────────────────────────────────────────────────────╮

00:00:13 #54 [Debug] > │ type Mut0 = {mutable l0 : int32}                                             │

00:00:13 #55 [Debug] > │ and Mut1 = {mutable l0 : int32; mutable l1 : int32}                          │

00:00:13 #56 [Debug] > │ let rec method1 (v0 : Mut0) : bool =                                         │

00:00:13 #57 [Debug] > │     let v1 : int32 = v0.l0                                                   │

00:00:13 #58 [Debug] > │     let v2 : bool = v1 < 10                                                  │

00:00:13 #59 [Debug] > │     v2                                                                       │

00:00:13 #60 [Debug] > │ and method2 (v0 : int32, v1 : Mut1) : bool =                                 │

00:00:13 #61 [Debug] > │     let v2 : int32 = v1.l0                                                   │

00:00:13 #62 [Debug] > │     let v3 : bool = v2 < v0                                                  │

00:00:13 #63 [Debug] > │     v3                                                                       │

00:00:13 #64 [Debug] > │ and method0 () : unit =                                                      │

00:00:13 #65 [Debug] > │     let v0 : (int32 []) = Array.zeroCreate<int32> (10)                       │

00:00:13 #66 [Debug] > │     let v1 : Mut0 = {l0 = 0} : Mut0                                          │

00:00:13 #67 [Debug] > │     while method1(v1) do                                                     │

00:00:13 #68 [Debug] > │         let v3 : int32 = v1.l0                                               │

00:00:13 #69 [Debug] > │         v0.[int v3] <- v3                                                    │

00:00:13 #70 [Debug] > │         let v4 : int32 = v3 + 1                                              │

00:00:13 #71 [Debug] > │         v1.l0 <- v4                                                          │

00:00:13 #72 [Debug] > │         ()                                                                   │

00:00:13 #73 [Debug] > │     let v5 : int32 = v0.Length                                               │

00:00:13 #74 [Debug] > │     let v6 : Mut1 = {l0 = 0; l1 = 0} : Mut1                                  │

00:00:13 #75 [Debug] > │     while method2(v5, v6) do                                                 │

00:00:13 #76 [Debug] > │         let v8 : int32 = v6.l0                                               │

00:00:13 #77 [Debug] > │         let v9 : int32 = v6.l1                                               │

00:00:13 #78 [Debug] > │         let v10 : int32 = v0.[int v8]                                        │

00:00:13 #79 [Debug] > │         let v11 : int32 = v9 + v10                                           │

00:00:13 #80 [Debug] > │         let v12 : int32 = v8 + 1                                             │

00:00:13 #81 [Debug] > │         v6.l0 <- v12                                                         │

00:00:13 #82 [Debug] > │         v6.l1 <- v11                                                         │

00:00:13 #83 [Debug] > │         ()                                                                   │

00:00:13 #84 [Debug] > │     let v13 : int32 = v6.l1                                                  │

00:00:13 #85 [Debug] > │     let v14 : bool = v13 = 45                                                │

00:00:13 #86 [Debug] > │     let v15 : string = $"_equal / actual: %A{v13} / expected: %A{45}"        │

00:00:13 #87 [Debug] > │     let v16 : bool = v14 = false                                             │

00:00:13 #88 [Debug] > │     if v16 then                                                              │

00:00:13 #89 [Debug] > │         failwith<unit> v15                                                   │

00:00:13 #90 [Debug] > │ method0()                                                                    │

00:00:13 #91 [Debug] > │                                                                              │

00:00:13 #92 [Debug] > │                                                                              │

00:00:13 #93 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #94 [Debug] >

00:00:13 #95 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:13 #96 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:13 #97 [Debug] > │ ## init_series                                                               │

00:00:13 #98 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #99 [Debug] >

00:00:13 #100 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:13 #101 [Debug] > inl init_series start end inc =

00:00:13 #102 [Debug] >     inl total = conv ((end - start) / inc) + 1

00:00:13 #103 [Debug] >     am.init total (conv >> (*) inc >> (+) start) : a i32 _

00:00:13 #104 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-2405-0510-0ba4465f9f4d\main.spi

00:00:13 #105 [Debug] >

00:00:13 #106 [Debug] > ╭─[ 150.55ms - stdout ]────────────────────────────────────────────────────────╮

00:00:13 #107 [Debug] > │ ()                                                                           │

00:00:13 #108 [Debug] > │                                                                              │

00:00:13 #109 [Debug] > │                                                                              │

00:00:13 #110 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #111 [Debug] >

00:00:13 #112 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:13 #113 [Debug] > // // test

00:00:13 #114 [Debug] >

00:00:13 #115 [Debug] > init_series 0 1 0.5

00:00:13 #116 [Debug] > |> _equal (a ;[[0f64; 0.5; 1]])

00:00:13 #117 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-2420-2022-242bc44143b5\main.spi

00:00:13 #118 [Debug] >

00:00:13 #119 [Debug] > ╭─[ 378.00ms - stdout ]────────────────────────────────────────────────────────╮

00:00:13 #120 [Debug] > │ type Mut0 = {mutable l0 : int32}                                             │

00:00:13 #121 [Debug] > │ let rec method1 (v0 : Mut0) : bool =                                         │

00:00:13 #122 [Debug] > │     let v1 : int32 = v0.l0                                                   │

00:00:13 #123 [Debug] > │     let v2 : bool = v1 < 3                                                   │

00:00:13 #124 [Debug] > │     v2                                                                       │

00:00:13 #125 [Debug] > │ and method2 (v0 : (float []), v1 : (float []), v2 : int32) : bool =          │

00:00:13 #126 [Debug] > │     let v3 : int32 = v0.Length                                               │

00:00:13 #127 [Debug] > │     let v4 : bool = v2 < v3                                                  │

00:00:13 #128 [Debug] > │     if v4 then                                                               │

00:00:13 #129 [Debug] > │         let v5 : float = v0.[int v2]                                         │

00:00:13 #130 [Debug] > │         let v6 : float = v1.[int v2]                                         │

00:00:13 #131 [Debug] > │         let v7 : bool = v5 = v6                                              │

00:00:13 #132 [Debug] > │         if v7 then                                                           │

00:00:13 #133 [Debug] > │             let v8 : int32 = v2 + 1                                          │

00:00:13 #134 [Debug] > │             method2(v0, v1, v8)                                              │

00:00:13 #135 [Debug] > │         else                                                                 │

00:00:13 #136 [Debug] > │             false                                                            │

00:00:13 #137 [Debug] > │     else                                                                     │

00:00:13 #138 [Debug] > │         true                                                                 │

00:00:13 #139 [Debug] > │ and method0 () : unit =                                                      │

00:00:13 #140 [Debug] > │     let v0 : (float []) = Array.zeroCreate<float> (3)                        │

00:00:13 #141 [Debug] > │     let v1 : Mut0 = {l0 = 0} : Mut0                                          │

00:00:13 #142 [Debug] > │     while method1(v1) do                                                     │

00:00:13 #143 [Debug] > │         let v3 : int32 = v1.l0                                               │

00:00:13 #144 [Debug] > │         let v4 : float = float v3                                            │

00:00:13 #145 [Debug] > │         let v5 : float = 0.5 * v4                                            │

00:00:13 #146 [Debug] > │         v0.[int v3] <- v5                                                    │

00:00:13 #147 [Debug] > │         let v6 : int32 = v3 + 1                                              │

00:00:13 #148 [Debug] > │         v1.l0 <- v6                                                          │

00:00:13 #149 [Debug] > │         ()                                                                   │

00:00:13 #150 [Debug] > │     let v7 : (float []) = [|0.0; 0.5; 1.0|]                                  │

00:00:13 #151 [Debug] > │     let v8 : int32 = v0.Length                                               │

00:00:13 #152 [Debug] > │     let v9 : int32 = v7.Length                                               │

00:00:13 #153 [Debug] > │     let v10 : bool = v8 = v9                                                 │

00:00:13 #154 [Debug] > │     let v11 : bool = v10 <> true                                             │

00:00:13 #155 [Debug] > │     let v14 : bool =                                                         │

00:00:13 #156 [Debug] > │         if v11 then                                                          │

00:00:13 #157 [Debug] > │             false                                                            │

00:00:13 #158 [Debug] > │         else                                                                 │

00:00:13 #159 [Debug] > │             let v12 : int32 = 0                                              │

00:00:13 #160 [Debug] > │             method2(v0, v7, v12)                                             │

00:00:13 #161 [Debug] > │     let v15 : string = $"_equal / actual: %A{v0} / expected: %A{v7}"         │

00:00:13 #162 [Debug] > │     let v16 : bool = v14 = false                                             │

00:00:13 #163 [Debug] > │     if v16 then                                                              │

00:00:13 #164 [Debug] > │         failwith<unit> v15                                                   │

00:00:13 #165 [Debug] > │ method0()                                                                    │

00:00:13 #166 [Debug] > │                                                                              │

00:00:13 #167 [Debug] > │                                                                              │

00:00:13 #168 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #169 [Debug] >

00:00:13 #170 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:13 #171 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:13 #172 [Debug] > │ ## last                                                                      │

00:00:13 #173 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #174 [Debug] >

00:00:13 #175 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:13 #176 [Debug] > inl last (array : a _ _) =

00:00:13 #177 [Debug] >     index array (length array - 1)

00:00:13 #178 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-2462-6243-6dbae4f80857\main.spi

00:00:13 #179 [Debug] >

00:00:13 #180 [Debug] > ╭─[ 146.68ms - stdout ]────────────────────────────────────────────────────────╮

00:00:13 #181 [Debug] > │ ()                                                                           │

00:00:13 #182 [Debug] > │                                                                              │

00:00:13 #183 [Debug] > │                                                                              │

00:00:13 #184 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #185 [Debug] >

00:00:13 #186 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:13 #187 [Debug] > // // test

00:00:13 #188 [Debug] >

00:00:13 #189 [Debug] > am.init 10i32 id

00:00:13 #190 [Debug] > |> last

00:00:13 #191 [Debug] > |> _equal 9

00:00:13 #192 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-2477-7705-7d62821544a4\main.spi

00:00:14 #193 [Debug] >

00:00:14 #194 [Debug] > ╭─[ 180.38ms - stdout ]────────────────────────────────────────────────────────╮

00:00:14 #195 [Debug] > │ type Mut0 = {mutable l0 : int32}                                             │

00:00:14 #196 [Debug] > │ let rec method1 (v0 : Mut0) : bool =                                         │

00:00:14 #197 [Debug] > │     let v1 : int32 = v0.l0                                                   │

00:00:14 #198 [Debug] > │     let v2 : bool = v1 < 10                                                  │

00:00:14 #199 [Debug] > │     v2                                                                       │

00:00:14 #200 [Debug] > │ and method0 () : unit =                                                      │

00:00:14 #201 [Debug] > │     let v0 : (int32 []) = Array.zeroCreate<int32> (10)                       │

00:00:14 #202 [Debug] > │     let v1 : Mut0 = {l0 = 0} : Mut0                                          │

00:00:14 #203 [Debug] > │     while method1(v1) do                                                     │

00:00:14 #204 [Debug] > │         let v3 : int32 = v1.l0                                               │

00:00:14 #205 [Debug] > │         v0.[int v3] <- v3                                                    │

00:00:14 #206 [Debug] > │         let v4 : int32 = v3 + 1                                              │

00:00:14 #207 [Debug] > │         v1.l0 <- v4                                                          │

00:00:14 #208 [Debug] > │         ()                                                                   │

00:00:14 #209 [Debug] > │     let v5 : int32 = v0.Length                                               │

00:00:14 #210 [Debug] > │     let v6 : int32 = v5 - 1                                                  │

00:00:14 #211 [Debug] > │     let v7 : int32 = v0.[int v6]                                             │

00:00:14 #212 [Debug] > │     let v8 : bool = v7 = 9                                                   │

00:00:14 #213 [Debug] > │     let v9 : string = $"_equal / actual: %A{v7} / expected: %A{9}"           │

00:00:14 #214 [Debug] > │     let v10 : bool = v8 = false                                              │

00:00:14 #215 [Debug] > │     if v10 then                                                              │

00:00:14 #216 [Debug] > │         failwith<unit> v9                                                    │

00:00:14 #217 [Debug] > │ method0()                                                                    │

00:00:14 #218 [Debug] > │                                                                              │

00:00:14 #219 [Debug] > │                                                                              │

00:00:14 #220 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:14 #221 [Debug] >

00:00:14 #222 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:14 #223 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:14 #224 [Debug] > │ ## indexed                                                                   │

00:00:14 #225 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:14 #226 [Debug] >

00:00:14 #227 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:14 #228 [Debug] > inl indexed (array : a _ _) =

00:00:14 #229 [Debug] >     (([[]], 0), array)

00:00:14 #230 [Debug] >     ||> am.fold fun (acc, i) x =>

00:00:14 #231 [Debug] >         (i, x) :: acc, i + 1

00:00:14 #232 [Debug] >     |> fst

00:00:14 #233 [Debug] >     |> listm.rev

00:00:14 #234 [Debug] >     |> listm.toArray

00:00:14 #235 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-2496-9690-9c43de402246\main.spi

00:00:14 #236 [Debug] >

00:00:14 #237 [Debug] > ╭─[ 128.48ms - stdout ]────────────────────────────────────────────────────────╮

00:00:14 #238 [Debug] > │ ()                                                                           │

00:00:14 #239 [Debug] > │                                                                              │

00:00:14 #240 [Debug] > │                                                                              │

00:00:14 #241 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:14 #242 [Debug] >

00:00:14 #243 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:14 #244 [Debug] > // // test

00:00:14 #245 [Debug] >

00:00:14 #246 [Debug] > am.init 3i32 ((*) 2)

00:00:14 #247 [Debug] > |> indexed

00:00:14 #248 [Debug] > |> _equal (a ;[[0i32, 0; 1, 2; 2, 4]] : a i32 _)

00:00:14 #249 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-2509-0987-0c9a35e68f9b\main.spi

00:00:15 #250 [Debug] >

00:00:15 #251 [Debug] > ╭─[ 803.67ms - stdout ]────────────────────────────────────────────────────────╮

00:00:15 #252 [Debug] > │ type Mut0 = {mutable l0 : int32}                                             │

00:00:15 #253 [Debug] > │ and UH0 =                                                                    │

00:00:15 #254 [Debug] > │     | UH0_0 of int32 * int32 * UH0                                           │

00:00:15 #255 [Debug] > │     | UH0_1                                                                  │

00:00:15 #256 [Debug] > │ and Mut1 = {mutable l0 : int32; mutable l1 : UH0; mutable l2 : int32}        │

00:00:15 #257 [Debug] > │ let rec method1 (v0 : Mut0) : bool =                                         │

00:00:15 #258 [Debug] > │     let v1 : int32 = v0.l0                                                   │

00:00:15 #259 [Debug] > │     let v2 : bool = v1 < 3                                                   │

00:00:15 #260 [Debug] > │     v2                                                                       │

00:00:15 #261 [Debug] > │ and method2 (v0 : int32, v1 : Mut1) : bool =                                 │

00:00:15 #262 [Debug] > │     let v2 : int32 = v1.l0                                                   │

00:00:15 #263 [Debug] > │     let v3 : bool = v2 < v0                                                  │

00:00:15 #264 [Debug] > │     v3                                                                       │

00:00:15 #265 [Debug] > │ and method3 (v0 : UH0, v1 : UH0) : UH0 =                                     │

00:00:15 #266 [Debug] > │     match v0 with                                                            │

00:00:15 #267 [Debug] > │     | UH0_0(v2, v3, v4) -> (* Cons *)                                        │

00:00:15 #268 [Debug] > │         let v5 : UH0 = UH0_0(v2, v3, v1)                                     │

00:00:15 #269 [Debug] > │         method3(v4, v5)                                                      │

00:00:15 #270 [Debug] > │     | UH0_1 -> (* Nil *)                                                     │

00:00:15 #271 [Debug] > │         v1                                                                   │

00:00:15 #272 [Debug] > │ and method5 (v0 : UH0, v1 : int32) : int32 =                                 │

00:00:15 #273 [Debug] > │     match v0 with                                                            │

00:00:15 #274 [Debug] > │     | UH0_0(v2, v3, v4) -> (* Cons *)                                        │

00:00:15 #275 [Debug] > │         let v5 : int32 = v1 + 1                                              │

00:00:15 #276 [Debug] > │         method5(v4, v5)                                                      │

00:00:15 #277 [Debug] > │     | UH0_1 -> (* Nil *)                                                     │

00:00:15 #278 [Debug] > │         v1                                                                   │

00:00:15 #279 [Debug] > │ and method6 (v0 : (struct (int32 * int32) []), v1 : UH0, v2 : int32) : int32 │

00:00:15 #280 [Debug] > │ =                                                                            │

00:00:15 #281 [Debug] > │     match v1 with                                                            │

00:00:15 #282 [Debug] > │     | UH0_0(v3, v4, v5) -> (* Cons *)                                        │

00:00:15 #283 [Debug] > │         v0.[int v2] <- struct (v3, v4)                                       │

00:00:15 #284 [Debug] > │         let v6 : int32 = v2 + 1                                              │

00:00:15 #285 [Debug] > │         method6(v0, v5, v6)                                                  │

00:00:15 #286 [Debug] > │     | UH0_1 -> (* Nil *)                                                     │

00:00:15 #287 [Debug] > │         v2                                                                   │

00:00:15 #288 [Debug] > │ and method4 (v0 : UH0) : (struct (int32 * int32) []) =                       │

00:00:15 #289 [Debug] > │     let v1 : int32 = 0                                                       │

00:00:15 #290 [Debug] > │     let v2 : int32 = method5(v0, v1)                                         │

00:00:15 #291 [Debug] > │     let v3 : (struct (int32 * int32) []) = Array.zeroCreate<struct (int32 *  │

00:00:15 #292 [Debug] > │ int32)> (v2)                                                                 │

00:00:15 #293 [Debug] > │     let v4 : int32 = 0                                                       │

00:00:15 #294 [Debug] > │     let v5 : int32 = method6(v3, v0, v4)                                     │

00:00:15 #295 [Debug] > │     v3                                                                       │

00:00:15 #296 [Debug] > │ and method7 (v0 : (struct (int32 * int32) []), v1 : (struct (int32 * int32)  │

00:00:15 #297 [Debug] > │ []), v2 : int32) : bool =                                                    │

00:00:15 #298 [Debug] > │     let v3 : int32 = v0.Length                                               │

00:00:15 #299 [Debug] > │     let v4 : bool = v2 < v3                                                  │

00:00:15 #300 [Debug] > │     if v4 then                                                               │

00:00:15 #301 [Debug] > │         let struct (v5 : int32, v6 : int32) = v0.[int v2]                    │

00:00:15 #302 [Debug] > │         let struct (v7 : int32, v8 : int32) = v1.[int v2]                    │

00:00:15 #303 [Debug] > │         let v9 : bool = v5 = v7                                              │

00:00:15 #304 [Debug] > │         let v11 : bool =                                                     │

00:00:15 #305 [Debug] > │             if v9 then                                                       │

00:00:15 #306 [Debug] > │                 let v10 : bool = v6 = v8                                     │

00:00:15 #307 [Debug] > │                 v10                                                          │

00:00:15 #308 [Debug] > │             else                                                             │

00:00:15 #309 [Debug] > │                 false                                                        │

00:00:15 #310 [Debug] > │         if v11 then                                                          │

00:00:15 #311 [Debug] > │             let v12 : int32 = v2 + 1                                         │

00:00:15 #312 [Debug] > │             method7(v0, v1, v12)                                             │

00:00:15 #313 [Debug] > │         else                                                                 │

00:00:15 #314 [Debug] > │             false                                                            │

00:00:15 #315 [Debug] > │     else                                                                     │

00:00:15 #316 [Debug] > │         true                                                                 │

00:00:15 #317 [Debug] > │ and method0 () : unit =                                                      │

00:00:15 #318 [Debug] > │     let v0 : (int32 []) = Array.zeroCreate<int32> (3)                        │

00:00:15 #319 [Debug] > │     let v1 : Mut0 = {l0 = 0} : Mut0                                          │

00:00:15 #320 [Debug] > │     while method1(v1) do                                                     │

00:00:15 #321 [Debug] > │         let v3 : int32 = v1.l0                                               │

00:00:15 #322 [Debug] > │         let v4 : int32 = 2 * v3                                              │

00:00:15 #323 [Debug] > │         v0.[int v3] <- v4                                                    │

00:00:15 #324 [Debug] > │         let v5 : int32 = v3 + 1                                              │

00:00:15 #325 [Debug] > │         v1.l0 <- v5                                                          │

00:00:15 #326 [Debug] > │         ()                                                                   │

00:00:15 #327 [Debug] > │     let v6 : int32 = v0.Length                                               │

00:00:15 #328 [Debug] > │     let v7 : UH0 = UH0_1                                                     │

00:00:15 #329 [Debug] > │     let v8 : Mut1 = {l0 = 0; l1 = v7; l2 = 0} : Mut1                         │

00:00:15 #330 [Debug] > │     while method2(v6, v8) do                                                 │

00:00:15 #331 [Debug] > │         let v10 : int32 = v8.l0                                              │

00:00:15 #332 [Debug] > │         let struct (v11 : UH0, v12 : int32) = v8.l1, v8.l2                   │

00:00:15 #333 [Debug] > │         let v13 : int32 = v0.[int v10]                                       │

00:00:15 #334 [Debug] > │         let v14 : int32 = v12 + 1                                            │

00:00:15 #335 [Debug] > │         let v15 : int32 = v10 + 1                                            │

00:00:15 #336 [Debug] > │         let v16 : UH0 = UH0_0(v12, v13, v11)                                 │

00:00:15 #337 [Debug] > │         v8.l0 <- v15                                                         │

00:00:15 #338 [Debug] > │         v8.l1 <- v16                                                         │

00:00:15 #339 [Debug] > │         v8.l2 <- v14                                                         │

00:00:15 #340 [Debug] > │         ()                                                                   │

00:00:15 #341 [Debug] > │     let struct (v17 : UH0, v18 : int32) = v8.l1, v8.l2                       │

00:00:15 #342 [Debug] > │     let v19 : UH0 = UH0_1                                                    │

00:00:15 #343 [Debug] > │     let v20 : UH0 = method3(v17, v19)                                        │

00:00:15 #344 [Debug] > │     let v21 : (struct (int32 * int32) []) = method4(v20)                     │

00:00:15 #345 [Debug] > │     let v22 : (struct (int32 * int32) []) = [|struct (0, 0); struct (1, 2);  │

00:00:15 #346 [Debug] > │ struct (2, 4)|]                                                              │

00:00:15 #347 [Debug] > │     let v23 : int32 = v21.Length                                             │

00:00:15 #348 [Debug] > │     let v24 : int32 = v22.Length                                             │

00:00:15 #349 [Debug] > │     let v25 : bool = v23 = v24                                               │

00:00:15 #350 [Debug] > │     let v26 : bool = v25 <> true                                             │

00:00:15 #351 [Debug] > │     let v29 : bool =                                                         │

00:00:15 #352 [Debug] > │         if v26 then                                                          │

00:00:15 #353 [Debug] > │             false                                                            │

00:00:15 #354 [Debug] > │         else                                                                 │

00:00:15 #355 [Debug] > │             let v27 : int32 = 0                                              │

00:00:15 #356 [Debug] > │             method7(v21, v22, v27)                                           │

00:00:15 #357 [Debug] > │     let v30 : string = $"_equal / actual: %A{v21} / expected: %A{v22}"       │

00:00:15 #358 [Debug] > │     let v31 : bool = v29 = false                                             │

00:00:15 #359 [Debug] > │     if v31 then                                                              │

00:00:15 #360 [Debug] > │         failwith<unit> v30                                                   │

00:00:15 #361 [Debug] > │ method0()                                                                    │

00:00:15 #362 [Debug] > │                                                                              │

00:00:15 #363 [Debug] > │                                                                              │

00:00:15 #364 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:18 #365 [Debug] > [NbConvertApp] Converting notebook am'.dib.ipynb to html

00:00:18 #366 [Debug] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

00:00:18 #367 [Debug] >   validate(nb)

00:00:19 #368 [Debug] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:72: UserWarning: IPython3 lexer unavailable, falling back on Python 3

00:00:19 #369 [Debug] >   return _pygments_highlight(

00:00:19 #370 [Debug] > [NbConvertApp] Writing 291617 bytes to am'.dib.html

00:00:20 #371 [Debug] executeAsync / exitCode: 0 / output.Length: 24616

00:00:20 #372 [Debug] main / executeCommand / exitCode: 0

00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60

00:00:00 #2 [Debug] executeAsync / options: { Command =

   "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" port=13805"

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = Some <fun:main@450-1020> }

00:00:00 #3 [Debug] > pwd: C:\home\git\polyglot\lib\spiral

00:00:00 #4 [Debug] > dll_path: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release

00:00:00 #5 [Debug] runWithTimeoutAsync / timeout: 500

00:00:00 #6 [Verbose] waitForPortAccess / port: 13805 / retry: 0

00:00:01 #7 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:

00:00:01 #8 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0

00:00:01 #9 [Debug] > Server bound to: http://localhost:13805

00:00:01 #10 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 \"listm'.dib\"""

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = None }

00:00:04 #11 [Debug] >

00:00:04 #12 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:04 #13 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:04 #14 [Debug] > │ # listm                                                                      │

00:00:04 #15 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:04 #16 [Debug] >

00:00:04 #17 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:04 #18 [Debug] > // // test

00:00:04 #19 [Debug] >

00:00:04 #20 [Debug] > open testing

00:00:07 #21 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-3931-3122-381ae633ad26\main.spi

00:00:09 #22 [Debug] >

00:00:09 #23 [Debug] > ╭─[ 5.59s - stdout ]───────────────────────────────────────────────────────────╮

00:00:09 #24 [Debug] > │ ()                                                                           │

00:00:09 #25 [Debug] > │                                                                              │

00:00:09 #26 [Debug] > │                                                                              │

00:00:09 #27 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:09 #28 [Debug] >

00:00:09 #29 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:09 #30 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:09 #31 [Debug] > │ ## /@                                                                        │

00:00:09 #32 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:09 #33 [Debug] >

00:00:09 #34 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:09 #35 [Debug] > inl (/@) a b =

00:00:09 #36 [Debug] >     b |> listm.append a

00:00:10 #37 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-4233-3359-3bbcd5d7fadc\main.spi

00:00:10 #38 [Debug] >

00:00:10 #39 [Debug] > ╭─[ 162.58ms - stdout ]────────────────────────────────────────────────────────╮

00:00:10 #40 [Debug] > │ ()                                                                           │

00:00:10 #41 [Debug] > │                                                                              │

00:00:10 #42 [Debug] > │                                                                              │

00:00:10 #43 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:10 #44 [Debug] >

00:00:10 #45 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:10 #46 [Debug] > // // test

00:00:10 #47 [Debug] >

00:00:10 #48 [Debug] > [[ "a"; "b" ]] /@ [[ "c"; "d" ]]

00:00:10 #49 [Debug] > |> _equal [[ "a"; "b"; "c"; "d" ]]

00:00:10 #50 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-4249-4966-4dbdcd29b9fe\main.spi

00:00:11 #51 [Debug] >

00:00:11 #52 [Debug] > ╭─[ 1.29s - stdout ]───────────────────────────────────────────────────────────╮

00:00:11 #53 [Debug] > │ type UH0 =                                                                   │

00:00:11 #54 [Debug] > │     | UH0_0 of string * UH0                                                  │

00:00:11 #55 [Debug] > │     | UH0_1                                                                  │

00:00:11 #56 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:11 #57 [Debug] > │     let v43 : string = "a"                                                   │

00:00:11 #58 [Debug] > │     let v44 : string = "b"                                                   │

00:00:11 #59 [Debug] > │     let v45 : string = "c"                                                   │

00:00:11 #60 [Debug] > │     let v46 : string = "d"                                                   │

00:00:11 #61 [Debug] > │     let v47 : UH0 = UH0_1                                                    │

00:00:11 #62 [Debug] > │     let v48 : UH0 = UH0_0(v46, v47)                                          │

00:00:11 #63 [Debug] > │     let v49 : UH0 = UH0_0(v45, v48)                                          │

00:00:11 #64 [Debug] > │     let v50 : UH0 = UH0_0(v44, v49)                                          │

00:00:11 #65 [Debug] > │     let v51 : UH0 = UH0_0(v43, v50)                                          │

00:00:11 #66 [Debug] > │     let v52 : UH0 = UH0_1                                                    │

00:00:11 #67 [Debug] > │     let v53 : UH0 = UH0_0(v46, v52)                                          │

00:00:11 #68 [Debug] > │     let v54 : UH0 = UH0_0(v45, v53)                                          │

00:00:11 #69 [Debug] > │     let v55 : UH0 = UH0_0(v44, v54)                                          │

00:00:11 #70 [Debug] > │     let v56 : UH0 = UH0_0(v43, v55)                                          │

00:00:11 #71 [Debug] > │     let v57 : string = $"_equal / actual: %A{v51} / expected: %A{v56}"       │

00:00:11 #72 [Debug] > │     ()                                                                       │

00:00:11 #73 [Debug] > │ method0()                                                                    │

00:00:11 #74 [Debug] > │                                                                              │

00:00:11 #75 [Debug] > │                                                                              │

00:00:11 #76 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:11 #77 [Debug] >

00:00:11 #78 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:11 #79 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:11 #80 [Debug] > │ ## init_series                                                               │

00:00:11 #81 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:11 #82 [Debug] >

00:00:11 #83 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:11 #84 [Debug] > inl init_series start end inc =

00:00:11 #85 [Debug] >     inl total : f64 = conv ((end - start) / inc) + 1

00:00:11 #86 [Debug] >     listm.init total (conv >> (*) inc >> (+) start)

00:00:11 #87 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-4380-8002-8d63f84c7768\main.spi

00:00:11 #88 [Debug] >

00:00:11 #89 [Debug] > ╭─[ 199.17ms - stdout ]────────────────────────────────────────────────────────╮

00:00:11 #90 [Debug] > │ ()                                                                           │

00:00:11 #91 [Debug] > │                                                                              │

00:00:11 #92 [Debug] > │                                                                              │

00:00:11 #93 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:11 #94 [Debug] >

00:00:11 #95 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:11 #96 [Debug] > // // test

00:00:11 #97 [Debug] >

00:00:11 #98 [Debug] > init_series 0 1 0.5

00:00:11 #99 [Debug] > |> _equal [[ 0f64; 0.5; 1 ]]

00:00:11 #100 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-4399-9997-95ea074eb4f6\main.spi

00:00:11 #101 [Debug] >

00:00:11 #102 [Debug] > ╭─[ 189.21ms - stdout ]────────────────────────────────────────────────────────╮

00:00:11 #103 [Debug] > │ type UH0 =                                                                   │

00:00:11 #104 [Debug] > │     | UH0_0 of float * UH0                                                   │

00:00:11 #105 [Debug] > │     | UH0_1                                                                  │

00:00:11 #106 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:11 #107 [Debug] > │     let v18 : UH0 = UH0_1                                                    │

00:00:11 #108 [Debug] > │     let v19 : UH0 = UH0_0(1.0, v18)                                          │

00:00:11 #109 [Debug] > │     let v20 : UH0 = UH0_0(0.5, v19)                                          │

00:00:11 #110 [Debug] > │     let v21 : UH0 = UH0_0(0.0, v20)                                          │

00:00:11 #111 [Debug] > │     let v22 : UH0 = UH0_1                                                    │

00:00:11 #112 [Debug] > │     let v23 : UH0 = UH0_0(1.0, v22)                                          │

00:00:11 #113 [Debug] > │     let v24 : UH0 = UH0_0(0.5, v23)                                          │

00:00:11 #114 [Debug] > │     let v25 : UH0 = UH0_0(0.0, v24)                                          │

00:00:11 #115 [Debug] > │     let v26 : string = $"_equal / actual: %A{v21} / expected: %A{v25}"       │

00:00:11 #116 [Debug] > │     ()                                                                       │

00:00:11 #117 [Debug] > │ method0()                                                                    │

00:00:11 #118 [Debug] > │                                                                              │

00:00:11 #119 [Debug] > │                                                                              │

00:00:11 #120 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:11 #121 [Debug] >

00:00:11 #122 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:11 #123 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:11 #124 [Debug] > │ ## try_item                                                                  │

00:00:11 #125 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:11 #126 [Debug] >

00:00:11 #127 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:11 #128 [Debug] > inl rec try_item i = function

00:00:11 #129 [Debug] >     | Cons (x, _) when i = 0 => Some x

00:00:11 #130 [Debug] >     | Cons (_, xs) => try_item (i - 1) xs

00:00:11 #131 [Debug] >     | Nil => None

00:00:11 #132 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-4420-2001-226c54fef682\main.spi

00:00:11 #133 [Debug] >

00:00:11 #134 [Debug] > ╭─[ 160.97ms - stdout ]────────────────────────────────────────────────────────╮

00:00:11 #135 [Debug] > │ ()                                                                           │

00:00:11 #136 [Debug] > │                                                                              │

00:00:11 #137 [Debug] > │                                                                              │

00:00:11 #138 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:11 #139 [Debug] >

00:00:11 #140 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:11 #141 [Debug] > // // test

00:00:11 #142 [Debug] >

00:00:11 #143 [Debug] > listm.init 10i32 id

00:00:11 #144 [Debug] > |> try_item 9i32

00:00:11 #145 [Debug] > |> _equal (Some 9)

00:00:12 #146 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-4436-3631-36ffaf924986\main.spi

00:00:12 #147 [Debug] >

00:00:12 #148 [Debug] > ╭─[ 292.64ms - stdout ]────────────────────────────────────────────────────────╮

00:00:12 #149 [Debug] > │ type [<Struct>] US0 =                                                        │

00:00:12 #150 [Debug] > │     | US0_0                                                                  │

00:00:12 #151 [Debug] > │     | US0_1 of f1_0 : int32                                                  │

00:00:12 #152 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:12 #153 [Debug] > │     let v3 : US0 = US0_1(9)                                                  │

00:00:12 #154 [Debug] > │     let v4 : US0 = US0_1(9)                                                  │

00:00:12 #155 [Debug] > │     let v5 : string = $"_equal / actual: %A{v3} / expected: %A{v4}"          │

00:00:12 #156 [Debug] > │     ()                                                                       │

00:00:12 #157 [Debug] > │ method0()                                                                    │

00:00:12 #158 [Debug] > │                                                                              │

00:00:12 #159 [Debug] > │                                                                              │

00:00:12 #160 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:12 #161 [Debug] >

00:00:12 #162 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:12 #163 [Debug] > // // test

00:00:12 #164 [Debug] >

00:00:12 #165 [Debug] > listm.init 10i32 id

00:00:12 #166 [Debug] > |> try_item 10i32

00:00:12 #167 [Debug] > |> _equal None

00:00:12 #168 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-4466-6621-6645396bc7ad\main.spi

00:00:12 #169 [Debug] >

00:00:12 #170 [Debug] > ╭─[ 195.47ms - stdout ]────────────────────────────────────────────────────────╮

00:00:12 #171 [Debug] > │ type [<Struct>] US0 =                                                        │

00:00:12 #172 [Debug] > │     | US0_0                                                                  │

00:00:12 #173 [Debug] > │     | US0_1 of f1_0 : int32                                                  │

00:00:12 #174 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:12 #175 [Debug] > │     let v3 : US0 = US0_0                                                     │

00:00:12 #176 [Debug] > │     let v4 : US0 = US0_0                                                     │

00:00:12 #177 [Debug] > │     let v5 : string = $"_equal / actual: %A{v3} / expected: %A{v4}"          │

00:00:12 #178 [Debug] > │     ()                                                                       │

00:00:12 #179 [Debug] > │ method0()                                                                    │

00:00:12 #180 [Debug] > │                                                                              │

00:00:12 #181 [Debug] > │                                                                              │

00:00:12 #182 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:12 #183 [Debug] >

00:00:12 #184 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:12 #185 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:12 #186 [Debug] > │ ## list_item                                                                 │

00:00:12 #187 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:12 #188 [Debug] >

00:00:12 #189 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:12 #190 [Debug] > inl item i =

00:00:12 #191 [Debug] >     try_item i >> optionm.value

00:00:12 #192 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-4486-8667-805c50251fab\main.spi

00:00:12 #193 [Debug] >

00:00:12 #194 [Debug] > ╭─[ 152.75ms - stdout ]────────────────────────────────────────────────────────╮

00:00:12 #195 [Debug] > │ ()                                                                           │

00:00:12 #196 [Debug] > │                                                                              │

00:00:12 #197 [Debug] > │                                                                              │

00:00:12 #198 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:12 #199 [Debug] >

00:00:12 #200 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:12 #201 [Debug] > // // test

00:00:12 #202 [Debug] >

00:00:12 #203 [Debug] > listm.init 10i32 id

00:00:12 #204 [Debug] > |> item 9i32

00:00:12 #205 [Debug] > |> _equal 9

00:00:12 #206 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-4502-0215-059783091d72\main.spi

00:00:12 #207 [Debug] >

00:00:12 #208 [Debug] > ╭─[ 172.93ms - stdout ]────────────────────────────────────────────────────────╮

00:00:12 #209 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:12 #210 [Debug] > │     let v0 : string = $"_equal / actual: %A{9} / expected: %A{9}"            │

00:00:12 #211 [Debug] > │     ()                                                                       │

00:00:12 #212 [Debug] > │ method0()                                                                    │

00:00:12 #213 [Debug] > │                                                                              │

00:00:12 #214 [Debug] > │                                                                              │

00:00:12 #215 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:12 #216 [Debug] >

00:00:12 #217 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:12 #218 [Debug] > // // test

00:00:12 #219 [Debug] >

00:00:12 #220 [Debug] > fun () =>

00:00:12 #221 [Debug] >     listm.init 10i32 id

00:00:12 #222 [Debug] >     |> item 10i32

00:00:12 #223 [Debug] >     |> ignore

00:00:12 #224 [Debug] > |> _throws

00:00:12 #225 [Debug] > |> _equal (Some "Option does not have a value.")

00:00:12 #226 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-4519-1975-11ae50e98bff\main.spi

00:00:13 #227 [Debug] >

00:00:13 #228 [Debug] > ╭─[ 395.98ms - stdout ]────────────────────────────────────────────────────────╮

00:00:13 #229 [Debug] > │ type [<Struct>] US0 =                                                        │

00:00:13 #230 [Debug] > │     | US0_0                                                                  │

00:00:13 #231 [Debug] > │     | US0_1 of f1_0 : string                                                 │

00:00:13 #232 [Debug] > │ let rec closure0 () () : unit =                                              │

00:00:13 #233 [Debug] > │     let v0 : int32 = failwith<int32> "Option does not have a value."         │

00:00:13 #234 [Debug] > │     ()                                                                       │

00:00:13 #235 [Debug] > │ and closure1 () (v0 : string) : US0 =                                        │

00:00:13 #236 [Debug] > │     US0_1(v0)                                                                │

00:00:13 #237 [Debug] > │ and method0 () : unit =                                                      │

00:00:13 #238 [Debug] > │     let v0 : (unit -> unit) = closure0()                                     │

00:00:13 #239 [Debug] > │     let v1 : US0 = US0_0                                                     │

00:00:13 #240 [Debug] > │     let v2 : (string -> US0) = closure1()                                    │

00:00:13 #241 [Debug] > │     let v3 : US0 = try v0 (); v1 with ex -> v2 ex.Message                    │

00:00:13 #242 [Debug] > │     let v8 : bool =                                                          │

00:00:13 #243 [Debug] > │         match v3 with                                                        │

00:00:13 #244 [Debug] > │         | US0_1(v6) -> (* Some *)                                            │

00:00:13 #245 [Debug] > │             let v7 : bool = v6 = "Option does not have a value."             │

00:00:13 #246 [Debug] > │             v7                                                               │

00:00:13 #247 [Debug] > │         | _ ->                                                               │

00:00:13 #248 [Debug] > │             false                                                            │

00:00:13 #249 [Debug] > │     let v9 : string = "Option does not have a value."                        │

00:00:13 #250 [Debug] > │     let v10 : US0 = US0_1(v9)                                                │

00:00:13 #251 [Debug] > │     let v11 : string = $"_equal / actual: %A{v3} / expected: %A{v10}"        │

00:00:13 #252 [Debug] > │     let v12 : bool = v8 = false                                              │

00:00:13 #253 [Debug] > │     if v12 then                                                              │

00:00:13 #254 [Debug] > │         failwith<unit> v11                                                   │

00:00:13 #255 [Debug] > │ method0()                                                                    │

00:00:13 #256 [Debug] > │                                                                              │

00:00:13 #257 [Debug] > │                                                                              │

00:00:13 #258 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #259 [Debug] >

00:00:13 #260 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:13 #261 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:13 #262 [Debug] > │ ## try_item_                                                                 │

00:00:13 #263 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #264 [Debug] >

00:00:13 #265 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:13 #266 [Debug] > let rec try_item_ i = function

00:00:13 #267 [Debug] >     | Cons (x, _) when i = 0 => Some x

00:00:13 #268 [Debug] >     | Cons (_, xs) => try_item_ (i - 1) xs

00:00:13 #269 [Debug] >     | Nil => None

00:00:13 #270 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-4561-6140-6658c5746a5f\main.spi

00:00:13 #271 [Debug] >

00:00:13 #272 [Debug] > ╭─[ 128.00ms - stdout ]────────────────────────────────────────────────────────╮

00:00:13 #273 [Debug] > │ ()                                                                           │

00:00:13 #274 [Debug] > │                                                                              │

00:00:13 #275 [Debug] > │                                                                              │

00:00:13 #276 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #277 [Debug] >

00:00:13 #278 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:13 #279 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:13 #280 [Debug] > │ ## item_                                                                     │

00:00:13 #281 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #282 [Debug] >

00:00:13 #283 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:13 #284 [Debug] > inl item_ i =

00:00:13 #285 [Debug] >     try_item_ i >> optionm.value

00:00:13 #286 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-4574-7452-7c56ce41ae8b\main.spi

00:00:13 #287 [Debug] >

00:00:13 #288 [Debug] > ╭─[ 154.55ms - stdout ]────────────────────────────────────────────────────────╮

00:00:13 #289 [Debug] > │ ()                                                                           │

00:00:13 #290 [Debug] > │                                                                              │

00:00:13 #291 [Debug] > │                                                                              │

00:00:13 #292 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #293 [Debug] >

00:00:13 #294 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:13 #295 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:13 #296 [Debug] > │ ## sum                                                                       │

00:00:13 #297 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #298 [Debug] >

00:00:13 #299 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:13 #300 [Debug] > inl sum list =

00:00:13 #301 [Debug] >     list |> listm.fold (+) 0

00:00:13 #302 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-4590-9053-9838ecc0b782\main.spi

00:00:13 #303 [Debug] >

00:00:13 #304 [Debug] > ╭─[ 186.73ms - stdout ]────────────────────────────────────────────────────────╮

00:00:13 #305 [Debug] > │ ()                                                                           │

00:00:13 #306 [Debug] > │                                                                              │

00:00:13 #307 [Debug] > │                                                                              │

00:00:13 #308 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #309 [Debug] >

00:00:13 #310 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:13 #311 [Debug] > // // test

00:00:13 #312 [Debug] >

00:00:13 #313 [Debug] > listm.init 10i32 id

00:00:13 #314 [Debug] > |> sum

00:00:13 #315 [Debug] > |> _equal 45

00:00:13 #316 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-4609-0954-0a81c493e5d3\main.spi

00:00:13 #317 [Debug] >

00:00:13 #318 [Debug] > ╭─[ 151.65ms - stdout ]────────────────────────────────────────────────────────╮

00:00:13 #319 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:13 #320 [Debug] > │     let v0 : string = $"_equal / actual: %A{45} / expected: %A{45}"          │

00:00:13 #321 [Debug] > │     ()                                                                       │

00:00:13 #322 [Debug] > │ method0()                                                                    │

00:00:13 #323 [Debug] > │                                                                              │

00:00:13 #324 [Debug] > │                                                                              │

00:00:13 #325 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #326 [Debug] >

00:00:13 #327 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:13 #328 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:13 #329 [Debug] > │ ## unzip                                                                     │

00:00:13 #330 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #331 [Debug] >

00:00:13 #332 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:13 #333 [Debug] > inl unzip list =

00:00:13 #334 [Debug] >     (([[]], [[]]), list)

00:00:13 #335 [Debug] >     ||> listm.fold fun (acc_x, acc_y) (x, y) =>

00:00:13 #336 [Debug] >         x :: acc_x, y :: acc_y

00:00:13 #337 [Debug] >     |> fun x, y =>

00:00:13 #338 [Debug] >         x |> listm.rev, y |> listm.rev

00:00:13 #339 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-4625-2512-231ede24e7cc\main.spi

00:00:13 #340 [Debug] >

00:00:13 #341 [Debug] > ╭─[ 165.46ms - stdout ]────────────────────────────────────────────────────────╮

00:00:13 #342 [Debug] > │ ()                                                                           │

00:00:13 #343 [Debug] > │                                                                              │

00:00:13 #344 [Debug] > │                                                                              │

00:00:13 #345 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #346 [Debug] >

00:00:13 #347 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:13 #348 [Debug] > // // test

00:00:13 #349 [Debug] >

00:00:13 #350 [Debug] > listm.init 10i32 id

00:00:13 #351 [Debug] > |> listm.map (fun x => x, x)

00:00:13 #352 [Debug] > |> unzip

00:00:13 #353 [Debug] > |> fun x, y =>

00:00:13 #354 [Debug] >     x |> sum

00:00:13 #355 [Debug] >     |> _equal 45

00:00:13 #356 [Debug] >

00:00:13 #357 [Debug] >     y |> sum

00:00:13 #358 [Debug] >     |> _equal 45

00:00:14 #359 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-4642-4200-42051344d385\main.spi

00:00:14 #360 [Debug] >

00:00:14 #361 [Debug] > ╭─[ 190.22ms - stdout ]────────────────────────────────────────────────────────╮

00:00:14 #362 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:14 #363 [Debug] > │     let v0 : string = $"_equal / actual: %A{45} / expected: %A{45}"          │

00:00:14 #364 [Debug] > │     let v1 : string = $"_equal / actual: %A{45} / expected: %A{45}"          │

00:00:14 #365 [Debug] > │     ()                                                                       │

00:00:14 #366 [Debug] > │ method0()                                                                    │

00:00:14 #367 [Debug] > │                                                                              │

00:00:14 #368 [Debug] > │                                                                              │

00:00:14 #369 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:14 #370 [Debug] >

00:00:14 #371 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:14 #372 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:14 #373 [Debug] > │ ## try_index_of                                                              │

00:00:14 #374 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:14 #375 [Debug] >

00:00:14 #376 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:14 #377 [Debug] > inl try_index_of item list =

00:00:14 #378 [Debug] >     inl rec loop i = function

00:00:14 #379 [Debug] >         | [[]] => None

00:00:14 #380 [Debug] >         | x :: xs =>

00:00:14 #381 [Debug] >             if x = item

00:00:14 #382 [Debug] >             then Some i

00:00:14 #383 [Debug] >             else loop (i + 1) xs

00:00:14 #384 [Debug] >     loop 0 list

00:00:14 #385 [Debug] >

00:00:14 #386 [Debug] > inl index_of item =

00:00:14 #387 [Debug] >     try_index_of item >> optionm.value

00:00:14 #388 [Debug] >

00:00:14 #389 [Debug] > inl try_index_of_ item list =

00:00:14 #390 [Debug] >     let rec loop i = function

00:00:14 #391 [Debug] >         | [[]] => None

00:00:14 #392 [Debug] >         | x :: xs =>

00:00:14 #393 [Debug] >             if x = item

00:00:14 #394 [Debug] >             then Some i

00:00:14 #395 [Debug] >             else loop (i + 1) xs

00:00:14 #396 [Debug] >     loop 0 list

00:00:14 #397 [Debug] >

00:00:14 #398 [Debug] > inl index_of_ item =

00:00:14 #399 [Debug] >     try_index_of_ item >> optionm.value

00:00:14 #400 [Debug] >

00:00:14 #401 [Debug] > inl try_index_of__ item list =

00:00:14 #402 [Debug] >     inl i = mut 0

00:00:14 #403 [Debug] >     inl list = mut list

00:00:14 #404 [Debug] >     inl result = mut None

00:00:14 #405 [Debug] >     let rec loop () =

00:00:14 #406 [Debug] >         match *list with

00:00:14 #407 [Debug] >         | [[]] => result <- None

00:00:14 #408 [Debug] >         | x :: xs =>

00:00:14 #409 [Debug] >             if x = item

00:00:14 #410 [Debug] >             then result <- Some *i

00:00:14 #411 [Debug] >             else

00:00:14 #412 [Debug] >                 i <- *i + 1

00:00:14 #413 [Debug] >                 list <- xs

00:00:14 #414 [Debug] >                 loop ()

00:00:14 #415 [Debug] >     loop ()

00:00:14 #416 [Debug] >     *result

00:00:14 #417 [Debug] >

00:00:14 #418 [Debug] > inl index_of__ item =

00:00:14 #419 [Debug] >     try_index_of__ item >> optionm.value

00:00:14 #420 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-4661-6194-6c89752c1fe8\main.spi

00:00:14 #421 [Debug] >

00:00:14 #422 [Debug] > ╭─[ 258.15ms - stdout ]────────────────────────────────────────────────────────╮

00:00:14 #423 [Debug] > │ ()                                                                           │

00:00:14 #424 [Debug] > │                                                                              │

00:00:14 #425 [Debug] > │                                                                              │

00:00:14 #426 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:14 #427 [Debug] >

00:00:14 #428 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:14 #429 [Debug] > // // test

00:00:14 #430 [Debug] >

00:00:14 #431 [Debug] > listm.init 10i32 id

00:00:14 #432 [Debug] > |> index_of 5i32

00:00:14 #433 [Debug] > |> _equal 5i32

00:00:14 #434 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-4687-8787-89a054b15c81\main.spi

00:00:14 #435 [Debug] >

00:00:14 #436 [Debug] > ╭─[ 167.53ms - stdout ]────────────────────────────────────────────────────────╮

00:00:14 #437 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:14 #438 [Debug] > │     let v0 : string = $"_equal / actual: %A{5} / expected: %A{5}"            │

00:00:14 #439 [Debug] > │     ()                                                                       │

00:00:14 #440 [Debug] > │ method0()                                                                    │

00:00:14 #441 [Debug] > │                                                                              │

00:00:14 #442 [Debug] > │                                                                              │

00:00:14 #443 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:14 #444 [Debug] >

00:00:14 #445 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:14 #446 [Debug] > // // test

00:00:14 #447 [Debug] >

00:00:14 #448 [Debug] > listm.init 10i32 id

00:00:14 #449 [Debug] > |> try_index_of 10i32

00:00:14 #450 [Debug] > |> _equal (None : option i32)

00:00:14 #451 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-4704-0485-06b2553cdcaa\main.spi

00:00:14 #452 [Debug] >

00:00:14 #453 [Debug] > ╭─[ 206.63ms - stdout ]────────────────────────────────────────────────────────╮

00:00:14 #454 [Debug] > │ type [<Struct>] US0 =                                                        │

00:00:14 #455 [Debug] > │     | US0_0                                                                  │

00:00:14 #456 [Debug] > │     | US0_1 of f1_0 : int32                                                  │

00:00:14 #457 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:14 #458 [Debug] > │     let v3 : US0 = US0_0                                                     │

00:00:14 #459 [Debug] > │     let v4 : US0 = US0_0                                                     │

00:00:14 #460 [Debug] > │     let v5 : string = $"_equal / actual: %A{v3} / expected: %A{v4}"          │

00:00:14 #461 [Debug] > │     ()                                                                       │

00:00:14 #462 [Debug] > │ method0()                                                                    │

00:00:14 #463 [Debug] > │                                                                              │

00:00:14 #464 [Debug] > │                                                                              │

00:00:14 #465 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:14 #466 [Debug] >

00:00:14 #467 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:14 #468 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:14 #469 [Debug] > │ ## try_find                                                                  │

00:00:14 #470 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:14 #471 [Debug] >

00:00:14 #472 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:14 #473 [Debug] > inl try_find fn list =

00:00:14 #474 [Debug] >     inl rec loop = function

00:00:14 #475 [Debug] >         | [[]] => None

00:00:14 #476 [Debug] >         | x :: xs =>

00:00:14 #477 [Debug] >             if fn x

00:00:14 #478 [Debug] >             then Some x

00:00:14 #479 [Debug] >             else loop xs

00:00:14 #480 [Debug] >     loop list

00:00:14 #481 [Debug] >

00:00:14 #482 [Debug] > inl try_find_ fn list =

00:00:14 #483 [Debug] >     let rec loop = function

00:00:14 #484 [Debug] >         | [[]] => None

00:00:14 #485 [Debug] >         | x :: xs =>

00:00:14 #486 [Debug] >             if fn x

00:00:14 #487 [Debug] >             then Some x

00:00:14 #488 [Debug] >             else loop xs

00:00:14 #489 [Debug] >     loop list

00:00:14 #490 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-4726-2632-22fdb268767e\main.spi

00:00:14 #491 [Debug] >

00:00:14 #492 [Debug] > ╭─[ 172.90ms - stdout ]────────────────────────────────────────────────────────╮

00:00:14 #493 [Debug] > │ ()                                                                           │

00:00:14 #494 [Debug] > │                                                                              │

00:00:14 #495 [Debug] > │                                                                              │

00:00:14 #496 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #497 [Debug] >

00:00:15 #498 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:15 #499 [Debug] > // // test

00:00:15 #500 [Debug] >

00:00:15 #501 [Debug] > listm.init 10i32 id

00:00:15 #502 [Debug] > |> try_find ((=) 5i32)

00:00:15 #503 [Debug] > |> _equal (Some 5i32)

00:00:15 #504 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-4743-4383-4c53e2d2e170\main.spi

00:00:15 #505 [Debug] >

00:00:15 #506 [Debug] > ╭─[ 164.62ms - stdout ]────────────────────────────────────────────────────────╮

00:00:15 #507 [Debug] > │ type [<Struct>] US0 =                                                        │

00:00:15 #508 [Debug] > │     | US0_0                                                                  │

00:00:15 #509 [Debug] > │     | US0_1 of f1_0 : int32                                                  │

00:00:15 #510 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:15 #511 [Debug] > │     let v3 : US0 = US0_1(5)                                                  │

00:00:15 #512 [Debug] > │     let v4 : US0 = US0_1(5)                                                  │

00:00:15 #513 [Debug] > │     let v5 : string = $"_equal / actual: %A{v3} / expected: %A{v4}"          │

00:00:15 #514 [Debug] > │     ()                                                                       │

00:00:15 #515 [Debug] > │ method0()                                                                    │

00:00:15 #516 [Debug] > │                                                                              │

00:00:15 #517 [Debug] > │                                                                              │

00:00:15 #518 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #519 [Debug] >

00:00:15 #520 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:15 #521 [Debug] > inl find x =

00:00:15 #522 [Debug] >     try_find x >> optionm.value

00:00:15 #523 [Debug] >

00:00:15 #524 [Debug] > inl find_ x =

00:00:15 #525 [Debug] >     try_find_ x >> optionm.value

00:00:15 #526 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-4761-6102-67c0c88b09e8\main.spi

00:00:15 #527 [Debug] >

00:00:15 #528 [Debug] > ╭─[ 129.58ms - stdout ]────────────────────────────────────────────────────────╮

00:00:15 #529 [Debug] > │ ()                                                                           │

00:00:15 #530 [Debug] > │                                                                              │

00:00:15 #531 [Debug] > │                                                                              │

00:00:15 #532 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #533 [Debug] >

00:00:15 #534 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:15 #535 [Debug] > // // test

00:00:15 #536 [Debug] >

00:00:15 #537 [Debug] > listm.init 10i32 id

00:00:15 #538 [Debug] > |> find ((=) 5i32)

00:00:15 #539 [Debug] > |> _equal 5i32

00:00:15 #540 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-4774-7436-715746c46f4d\main.spi

00:00:15 #541 [Debug] >

00:00:15 #542 [Debug] > ╭─[ 146.02ms - stdout ]────────────────────────────────────────────────────────╮

00:00:15 #543 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:15 #544 [Debug] > │     let v0 : string = $"_equal / actual: %A{5} / expected: %A{5}"            │

00:00:15 #545 [Debug] > │     ()                                                                       │

00:00:15 #546 [Debug] > │ method0()                                                                    │

00:00:15 #547 [Debug] > │                                                                              │

00:00:15 #548 [Debug] > │                                                                              │

00:00:15 #549 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #550 [Debug] >

00:00:15 #551 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:15 #552 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:15 #553 [Debug] > │ ## choose                                                                    │

00:00:15 #554 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #555 [Debug] >

00:00:15 #556 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:15 #557 [Debug] > inl choose f l =

00:00:15 #558 [Debug] >     (l, [[]])

00:00:15 #559 [Debug] >     ||> listm.foldBack fun x acc =>

00:00:15 #560 [Debug] >         match f x with

00:00:15 #561 [Debug] >         | Some y => y :: acc

00:00:15 #562 [Debug] >         | None => acc

00:00:15 #563 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-4789-8965-8a81f10b132d\main.spi

00:00:15 #564 [Debug] >

00:00:15 #565 [Debug] > ╭─[ 128.68ms - stdout ]────────────────────────────────────────────────────────╮

00:00:15 #566 [Debug] > │ ()                                                                           │

00:00:15 #567 [Debug] > │                                                                              │

00:00:15 #568 [Debug] > │                                                                              │

00:00:15 #569 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #570 [Debug] >

00:00:15 #571 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:15 #572 [Debug] > // // test

00:00:15 #573 [Debug] >

00:00:15 #574 [Debug] > listm.init 10i32 id

00:00:15 #575 [Debug] > |> choose (fun x => if x % 2 = 0 then Some x else None)

00:00:15 #576 [Debug] > |> _equal [[ 0; 2; 4; 6; 8 ]]

00:00:15 #577 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-4802-0271-0fa8b083c01d\main.spi

00:00:15 #578 [Debug] >

00:00:15 #579 [Debug] > ╭─[ 207.18ms - stdout ]────────────────────────────────────────────────────────╮

00:00:15 #580 [Debug] > │ type UH0 =                                                                   │

00:00:15 #581 [Debug] > │     | UH0_0 of int32 * UH0                                                   │

00:00:15 #582 [Debug] > │     | UH0_1                                                                  │

00:00:15 #583 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:15 #584 [Debug] > │     let v33 : UH0 = UH0_1                                                    │

00:00:15 #585 [Debug] > │     let v34 : UH0 = UH0_0(8, v33)                                            │

00:00:15 #586 [Debug] > │     let v35 : UH0 = UH0_0(6, v34)                                            │

00:00:15 #587 [Debug] > │     let v36 : UH0 = UH0_0(4, v35)                                            │

00:00:15 #588 [Debug] > │     let v37 : UH0 = UH0_0(2, v36)                                            │

00:00:15 #589 [Debug] > │     let v38 : UH0 = UH0_0(0, v37)                                            │

00:00:15 #590 [Debug] > │     let v39 : UH0 = UH0_1                                                    │

00:00:15 #591 [Debug] > │     let v40 : UH0 = UH0_0(8, v39)                                            │

00:00:15 #592 [Debug] > │     let v41 : UH0 = UH0_0(6, v40)                                            │

00:00:15 #593 [Debug] > │     let v42 : UH0 = UH0_0(4, v41)                                            │

00:00:15 #594 [Debug] > │     let v43 : UH0 = UH0_0(2, v42)                                            │

00:00:15 #595 [Debug] > │     let v44 : UH0 = UH0_0(0, v43)                                            │

00:00:15 #596 [Debug] > │     let v45 : string = $"_equal / actual: %A{v38} / expected: %A{v44}"       │

00:00:15 #597 [Debug] > │     ()                                                                       │

00:00:15 #598 [Debug] > │ method0()                                                                    │

00:00:15 #599 [Debug] > │                                                                              │

00:00:15 #600 [Debug] > │                                                                              │

00:00:15 #601 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #602 [Debug] >

00:00:15 #603 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:15 #604 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:15 #605 [Debug] > │ ## zip_with                                                                  │

00:00:15 #606 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #607 [Debug] >

00:00:15 #608 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:15 #609 [Debug] > inl zip_with fn xs ys =

00:00:15 #610 [Debug] >     inl rec loop acc xs ys =

00:00:15 #611 [Debug] >         match xs, ys with

00:00:15 #612 [Debug] >         | Cons (x, xs), Cons (y, ys) =>

00:00:15 #613 [Debug] >             loop (fn x y :: acc) xs ys

00:00:15 #614 [Debug] >         | _ => listm.rev acc

00:00:15 #615 [Debug] >     loop [[]] xs ys

00:00:15 #616 [Debug] >

00:00:15 #617 [Debug] > inl zip_with_ fn xs ys =

00:00:15 #618 [Debug] >     let rec loop acc xs ys =

00:00:15 #619 [Debug] >         match xs, ys with

00:00:15 #620 [Debug] >         | Cons (x, xs), Cons (y, ys) =>

00:00:15 #621 [Debug] >             loop (fn x y :: acc) xs ys

00:00:15 #622 [Debug] >         | _ => listm.rev acc

00:00:15 #623 [Debug] >     loop [[]] xs ys

00:00:15 #624 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-4824-2451-2e3e5f148517\main.spi

00:00:15 #625 [Debug] >

00:00:15 #626 [Debug] > ╭─[ 157.38ms - stdout ]────────────────────────────────────────────────────────╮

00:00:15 #627 [Debug] > │ ()                                                                           │

00:00:15 #628 [Debug] > │                                                                              │

00:00:15 #629 [Debug] > │                                                                              │

00:00:15 #630 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #631 [Debug] >

00:00:15 #632 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:15 #633 [Debug] > // // test

00:00:15 #634 [Debug] >

00:00:15 #635 [Debug] > ([[ 1i32; 2; 3 ]], [[ 4; 5; 6 ]])

00:00:15 #636 [Debug] > ||> zip_with (+)

00:00:15 #637 [Debug] > |> _equal [[ 5; 7; 9 ]]

00:00:16 #638 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-4840-4043-4c59634d9ace\main.spi

00:00:16 #639 [Debug] >

00:00:16 #640 [Debug] > ╭─[ 157.96ms - stdout ]────────────────────────────────────────────────────────╮

00:00:16 #641 [Debug] > │ type UH0 =                                                                   │

00:00:16 #642 [Debug] > │     | UH0_0 of int32 * UH0                                                   │

00:00:16 #643 [Debug] > │     | UH0_1                                                                  │

00:00:16 #644 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:16 #645 [Debug] > │     let v18 : UH0 = UH0_1                                                    │

00:00:16 #646 [Debug] > │     let v19 : UH0 = UH0_0(9, v18)                                            │

00:00:16 #647 [Debug] > │     let v20 : UH0 = UH0_0(7, v19)                                            │

00:00:16 #648 [Debug] > │     let v21 : UH0 = UH0_0(5, v20)                                            │

00:00:16 #649 [Debug] > │     let v22 : UH0 = UH0_1                                                    │

00:00:16 #650 [Debug] > │     let v23 : UH0 = UH0_0(9, v22)                                            │

00:00:16 #651 [Debug] > │     let v24 : UH0 = UH0_0(7, v23)                                            │

00:00:16 #652 [Debug] > │     let v25 : UH0 = UH0_0(5, v24)                                            │

00:00:16 #653 [Debug] > │     let v26 : string = $"_equal / actual: %A{v21} / expected: %A{v25}"       │

00:00:16 #654 [Debug] > │     ()                                                                       │

00:00:16 #655 [Debug] > │ method0()                                                                    │

00:00:16 #656 [Debug] > │                                                                              │

00:00:16 #657 [Debug] > │                                                                              │

00:00:16 #658 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:16 #659 [Debug] >

00:00:16 #660 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:16 #661 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:16 #662 [Debug] > │ ## zip                                                                       │

00:00:16 #663 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:16 #664 [Debug] >

00:00:16 #665 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:16 #666 [Debug] > inl zip xs ys =

00:00:16 #667 [Debug] >     zip_with pair xs ys

00:00:16 #668 [Debug] >

00:00:16 #669 [Debug] > inl zip_ xs ys =

00:00:16 #670 [Debug] >     zip_with_ pair xs ys

00:00:16 #671 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-4857-5749-50784677d6f8\main.spi

00:00:16 #672 [Debug] >

00:00:16 #673 [Debug] > ╭─[ 125.03ms - stdout ]────────────────────────────────────────────────────────╮

00:00:16 #674 [Debug] > │ ()                                                                           │

00:00:16 #675 [Debug] > │                                                                              │

00:00:16 #676 [Debug] > │                                                                              │

00:00:16 #677 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:16 #678 [Debug] >

00:00:16 #679 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:16 #680 [Debug] > // // test

00:00:16 #681 [Debug] >

00:00:16 #682 [Debug] > ([[ 1i32; 2; 3 ]], [[ 4i32; 5; 6 ]])

00:00:16 #683 [Debug] > ||> zip

00:00:16 #684 [Debug] > |> _equal [[ 1, 4; 2, 5; 3, 6 ]]

00:00:16 #685 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-4870-7016-7cccf12b225c\main.spi

00:00:16 #686 [Debug] >

00:00:16 #687 [Debug] > ╭─[ 214.64ms - stdout ]────────────────────────────────────────────────────────╮

00:00:16 #688 [Debug] > │ type UH0 =                                                                   │

00:00:16 #689 [Debug] > │     | UH0_0 of int32 * int32 * UH0                                           │

00:00:16 #690 [Debug] > │     | UH0_1                                                                  │

00:00:16 #691 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:16 #692 [Debug] > │     let v18 : UH0 = UH0_1                                                    │

00:00:16 #693 [Debug] > │     let v19 : UH0 = UH0_0(3, 6, v18)                                         │

00:00:16 #694 [Debug] > │     let v20 : UH0 = UH0_0(2, 5, v19)                                         │

00:00:16 #695 [Debug] > │     let v21 : UH0 = UH0_0(1, 4, v20)                                         │

00:00:16 #696 [Debug] > │     let v22 : UH0 = UH0_1                                                    │

00:00:16 #697 [Debug] > │     let v23 : UH0 = UH0_0(3, 6, v22)                                         │

00:00:16 #698 [Debug] > │     let v24 : UH0 = UH0_0(2, 5, v23)                                         │

00:00:16 #699 [Debug] > │     let v25 : UH0 = UH0_0(1, 4, v24)                                         │

00:00:16 #700 [Debug] > │     let v26 : string = $"_equal / actual: %A{v21} / expected: %A{v25}"       │

00:00:16 #701 [Debug] > │     ()                                                                       │

00:00:16 #702 [Debug] > │ method0()                                                                    │

00:00:16 #703 [Debug] > │                                                                              │

00:00:16 #704 [Debug] > │                                                                              │

00:00:16 #705 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:16 #706 [Debug] >

00:00:16 #707 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:16 #708 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:16 #709 [Debug] > │ ## indexed                                                                   │

00:00:16 #710 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:16 #711 [Debug] >

00:00:16 #712 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:16 #713 [Debug] > inl indexed list =

00:00:16 #714 [Debug] >     (([[]], 0), list)

00:00:16 #715 [Debug] >     ||> listm.fold fun (acc, i) x =>

00:00:16 #716 [Debug] >         (i, x) :: acc, i + 1

00:00:16 #717 [Debug] >     |> fst

00:00:16 #718 [Debug] >     |> listm.rev

00:00:16 #719 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-4892-9263-96517491d5df\main.spi

00:00:16 #720 [Debug] >

00:00:16 #721 [Debug] > ╭─[ 164.99ms - stdout ]────────────────────────────────────────────────────────╮

00:00:16 #722 [Debug] > │ ()                                                                           │

00:00:16 #723 [Debug] > │                                                                              │

00:00:16 #724 [Debug] > │                                                                              │

00:00:16 #725 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:16 #726 [Debug] >

00:00:16 #727 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:16 #728 [Debug] > // // test

00:00:16 #729 [Debug] >

00:00:16 #730 [Debug] > listm.init 5i32 ((*) 2)

00:00:16 #731 [Debug] > |> indexed

00:00:16 #732 [Debug] > |> _equal [[ 0i32, 0; 1, 2; 2, 4; 3, 6; 4, 8 ]]

00:00:16 #733 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-4909-0937-03b8dbe14b5d\main.spi

00:00:16 #734 [Debug] >

00:00:16 #735 [Debug] > ╭─[ 260.15ms - stdout ]────────────────────────────────────────────────────────╮

00:00:16 #736 [Debug] > │ type UH0 =                                                                   │

00:00:16 #737 [Debug] > │     | UH0_0 of int32 * int32 * UH0                                           │

00:00:16 #738 [Debug] > │     | UH0_1                                                                  │

00:00:16 #739 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:16 #740 [Debug] > │     let v33 : UH0 = UH0_1                                                    │

00:00:16 #741 [Debug] > │     let v34 : UH0 = UH0_0(4, 8, v33)                                         │

00:00:16 #742 [Debug] > │     let v35 : UH0 = UH0_0(3, 6, v34)                                         │

00:00:16 #743 [Debug] > │     let v36 : UH0 = UH0_0(2, 4, v35)                                         │

00:00:16 #744 [Debug] > │     let v37 : UH0 = UH0_0(1, 2, v36)                                         │

00:00:16 #745 [Debug] > │     let v38 : UH0 = UH0_0(0, 0, v37)                                         │

00:00:16 #746 [Debug] > │     let v39 : UH0 = UH0_1                                                    │

00:00:16 #747 [Debug] > │     let v40 : UH0 = UH0_0(4, 8, v39)                                         │

00:00:16 #748 [Debug] > │     let v41 : UH0 = UH0_0(3, 6, v40)                                         │

00:00:16 #749 [Debug] > │     let v42 : UH0 = UH0_0(2, 4, v41)                                         │

00:00:16 #750 [Debug] > │     let v43 : UH0 = UH0_0(1, 2, v42)                                         │

00:00:16 #751 [Debug] > │     let v44 : UH0 = UH0_0(0, 0, v43)                                         │

00:00:16 #752 [Debug] > │     let v45 : string = $"_equal / actual: %A{v38} / expected: %A{v44}"       │

00:00:16 #753 [Debug] > │     ()                                                                       │

00:00:16 #754 [Debug] > │ method0()                                                                    │

00:00:16 #755 [Debug] > │                                                                              │

00:00:16 #756 [Debug] > │                                                                              │

00:00:16 #757 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:16 #758 [Debug] >

00:00:16 #759 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:16 #760 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:16 #761 [Debug] > │ ## group_by                                                                  │

00:00:16 #762 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:16 #763 [Debug] >

00:00:16 #764 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:16 #765 [Debug] > inl group_by fn list =

00:00:16 #766 [Debug] >     (list, [[]])

00:00:16 #767 [Debug] >     ||> listm.foldBack fun x acc =>

00:00:16 #768 [Debug] >         inl xk = fn x

00:00:16 #769 [Debug] >         inl found, new_acc =

00:00:16 #770 [Debug] >             ((false, [[]]), acc)

00:00:16 #771 [Debug] >             ||> listm.fold fun (found, acc') (k, xs) =>

00:00:16 #772 [Debug] >                 if k = xk

00:00:16 #773 [Debug] >                 then true, (k, x :: xs) :: acc'

00:00:16 #774 [Debug] >                 else found, (k, xs) :: acc'

00:00:16 #775 [Debug] >         if found

00:00:16 #776 [Debug] >         then new_acc

00:00:16 #777 [Debug] >         else (xk, [[ x ]]) :: new_acc

00:00:17 #778 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-4936-3674-3315df9dc821\main.spi

00:00:17 #779 [Debug] >

00:00:17 #780 [Debug] > ╭─[ 165.47ms - stdout ]────────────────────────────────────────────────────────╮

00:00:17 #781 [Debug] > │ ()                                                                           │

00:00:17 #782 [Debug] > │                                                                              │

00:00:17 #783 [Debug] > │                                                                              │

00:00:17 #784 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:17 #785 [Debug] >

00:00:17 #786 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:17 #787 [Debug] > // // test

00:00:17 #788 [Debug] >

00:00:17 #789 [Debug] > listm.init 10i32 id

00:00:17 #790 [Debug] > |> group_by (fun x => x % 2 = 0)

00:00:17 #791 [Debug] > |> _equal [[ true, [[ 0; 2; 4; 6; 8 ]]; false, [[ 1; 3; 5; 7; 9 ]] ]]

00:00:17 #792 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-4953-5356-599443091c13\main.spi

00:00:17 #793 [Debug] >

00:00:17 #794 [Debug] > ╭─[ 280.79ms - stdout ]────────────────────────────────────────────────────────╮

00:00:17 #795 [Debug] > │ type UH0 =                                                                   │

00:00:17 #796 [Debug] > │     | UH0_0 of int32 * UH0                                                   │

00:00:17 #797 [Debug] > │     | UH0_1                                                                  │

00:00:17 #798 [Debug] > │ and UH1 =                                                                    │

00:00:17 #799 [Debug] > │     | UH1_0 of bool * UH0 * UH1                                              │

00:00:17 #800 [Debug] > │     | UH1_1                                                                  │

00:00:17 #801 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:17 #802 [Debug] > │     let v96 : UH0 = UH0_1                                                    │

00:00:17 #803 [Debug] > │     let v97 : UH0 = UH0_0(8, v96)                                            │

00:00:17 #804 [Debug] > │     let v98 : UH0 = UH0_0(6, v97)                                            │

00:00:17 #805 [Debug] > │     let v99 : UH0 = UH0_0(4, v98)                                            │

00:00:17 #806 [Debug] > │     let v100 : UH0 = UH0_0(2, v99)                                           │

00:00:17 #807 [Debug] > │     let v101 : UH0 = UH0_0(0, v100)                                          │

00:00:17 #808 [Debug] > │     let v102 : UH0 = UH0_1                                                   │

00:00:17 #809 [Debug] > │     let v103 : UH0 = UH0_0(9, v102)                                          │

00:00:17 #810 [Debug] > │     let v104 : UH0 = UH0_0(7, v103)                                          │

00:00:17 #811 [Debug] > │     let v105 : UH0 = UH0_0(5, v104)                                          │

00:00:17 #812 [Debug] > │     let v106 : UH0 = UH0_0(3, v105)                                          │

00:00:17 #813 [Debug] > │     let v107 : UH0 = UH0_0(1, v106)                                          │

00:00:17 #814 [Debug] > │     let v108 : UH1 = UH1_1                                                   │

00:00:17 #815 [Debug] > │     let v109 : UH1 = UH1_0(false, v107, v108)                                │

00:00:17 #816 [Debug] > │     let v110 : UH1 = UH1_0(true, v101, v109)                                 │

00:00:17 #817 [Debug] > │     let v111 : UH0 = UH0_1                                                   │

00:00:17 #818 [Debug] > │     let v112 : UH0 = UH0_0(8, v111)                                          │

00:00:17 #819 [Debug] > │     let v113 : UH0 = UH0_0(6, v112)                                          │

00:00:17 #820 [Debug] > │     let v114 : UH0 = UH0_0(4, v113)                                          │

00:00:17 #821 [Debug] > │     let v115 : UH0 = UH0_0(2, v114)                                          │

00:00:17 #822 [Debug] > │     let v116 : UH0 = UH0_0(0, v115)                                          │

00:00:17 #823 [Debug] > │     let v117 : UH0 = UH0_1                                                   │

00:00:17 #824 [Debug] > │     let v118 : UH0 = UH0_0(9, v117)                                          │

00:00:17 #825 [Debug] > │     let v119 : UH0 = UH0_0(7, v118)                                          │

00:00:17 #826 [Debug] > │     let v120 : UH0 = UH0_0(5, v119)                                          │

00:00:17 #827 [Debug] > │     let v121 : UH0 = UH0_0(3, v120)                                          │

00:00:17 #828 [Debug] > │     let v122 : UH0 = UH0_0(1, v121)                                          │

00:00:17 #829 [Debug] > │     let v123 : UH1 = UH1_1                                                   │

00:00:17 #830 [Debug] > │     let v124 : UH1 = UH1_0(false, v122, v123)                                │

00:00:17 #831 [Debug] > │     let v125 : UH1 = UH1_0(true, v116, v124)                                 │

00:00:17 #832 [Debug] > │     let v126 : string = $"_equal / actual: %A{v110} / expected: %A{v125}"    │

00:00:17 #833 [Debug] > │     ()                                                                       │

00:00:17 #834 [Debug] > │ method0()                                                                    │

00:00:17 #835 [Debug] > │                                                                              │

00:00:17 #836 [Debug] > │                                                                              │

00:00:17 #837 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:17 #838 [Debug] >

00:00:17 #839 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:17 #840 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:17 #841 [Debug] > │ ## forall'                                                                   │

00:00:17 #842 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:17 #843 [Debug] >

00:00:17 #844 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:17 #845 [Debug] > inl forall' fn (head :: tail) =

00:00:17 #846 [Debug] >     (true, tail)

00:00:17 #847 [Debug] >     ||> listm.fold fun acc x =>

00:00:17 #848 [Debug] >         acc && x = head

00:00:17 #849 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-4984-8415-8830e15a2b7f\main.spi

00:00:17 #850 [Debug] >

00:00:17 #851 [Debug] > ╭─[ 166.36ms - stdout ]────────────────────────────────────────────────────────╮

00:00:17 #852 [Debug] > │ ()                                                                           │

00:00:17 #853 [Debug] > │                                                                              │

00:00:17 #854 [Debug] > │                                                                              │

00:00:17 #855 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:17 #856 [Debug] >

00:00:17 #857 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:17 #858 [Debug] > // // test

00:00:17 #859 [Debug] >

00:00:17 #860 [Debug] > [[ 1i32; 1; 1; 1; 1 ]]

00:00:17 #861 [Debug] > |> forall' ((=) 1i32)

00:00:17 #862 [Debug] > |> _equal true

00:00:17 #863 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-5000-0050-0080ee8b63d2\main.spi

00:00:17 #864 [Debug] >

00:00:17 #865 [Debug] > ╭─[ 157.42ms - stdout ]────────────────────────────────────────────────────────╮

00:00:17 #866 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:17 #867 [Debug] > │     let v0 : string = $"_equal / actual: %A{true} / expected: %A{true}"      │

00:00:17 #868 [Debug] > │     ()                                                                       │

00:00:17 #869 [Debug] > │ method0()                                                                    │

00:00:17 #870 [Debug] > │                                                                              │

00:00:17 #871 [Debug] > │                                                                              │

00:00:17 #872 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:17 #873 [Debug] >

00:00:17 #874 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:17 #875 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:17 #876 [Debug] > │ ## last                                                                      │

00:00:17 #877 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:17 #878 [Debug] >

00:00:17 #879 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:17 #880 [Debug] > inl last list =

00:00:17 #881 [Debug] >     list

00:00:17 #882 [Debug] >     |> listm.rev

00:00:17 #883 [Debug] >     |> item 0i32

00:00:17 #884 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-5016-1684-158d451f5643\main.spi

00:00:17 #885 [Debug] >

00:00:17 #886 [Debug] > ╭─[ 148.75ms - stdout ]────────────────────────────────────────────────────────╮

00:00:17 #887 [Debug] > │ ()                                                                           │

00:00:17 #888 [Debug] > │                                                                              │

00:00:17 #889 [Debug] > │                                                                              │

00:00:17 #890 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:17 #891 [Debug] >

00:00:17 #892 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:17 #893 [Debug] > // // test

00:00:17 #894 [Debug] >

00:00:17 #895 [Debug] > listm.init 10i32 id

00:00:17 #896 [Debug] > |> last

00:00:17 #897 [Debug] > |> _equal 9

00:00:18 #898 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1409-5032-3209-3836c5e184c7\main.spi

00:00:18 #899 [Debug] >

00:00:18 #900 [Debug] > ╭─[ 171.27ms - stdout ]────────────────────────────────────────────────────────╮

00:00:18 #901 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:18 #902 [Debug] > │     let v0 : string = $"_equal / actual: %A{9} / expected: %A{9}"            │

00:00:18 #903 [Debug] > │     ()                                                                       │

00:00:18 #904 [Debug] > │ method0()                                                                    │

00:00:18 #905 [Debug] > │                                                                              │

00:00:18 #906 [Debug] > │                                                                              │

00:00:18 #907 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:19 #908 [Debug] > [NbConvertApp] Converting notebook listm'.dib.ipynb to html

00:00:19 #909 [Debug] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

00:00:19 #910 [Debug] >   validate(nb)

00:00:20 #911 [Debug] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:72: UserWarning: IPython3 lexer unavailable, falling back on Python 3

00:00:20 #912 [Debug] >   return _pygments_highlight(

00:00:20 #913 [Debug] > [NbConvertApp] Writing 354401 bytes to listm'.dib.html

00:00:21 #914 [Debug] executeAsync / exitCode: 0 / output.Length: 47863

00:00:21 #915 [Debug] main / executeCommand / exitCode: 0

00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60

00:00:00 #2 [Debug] executeAsync / options: { Command =

   "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" port=13805"

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = Some <fun:main@450-1020> }

00:00:00 #3 [Debug] > pwd: C:\home\git\polyglot\lib\spiral

00:00:00 #4 [Debug] > dll_path: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release

00:00:00 #5 [Debug] runWithTimeoutAsync / timeout: 500

00:00:00 #6 [Verbose] waitForPortAccess / port: 13805 / retry: 0

00:00:01 #7 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:

00:00:01 #8 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0

00:00:01 #9 [Debug] > Server bound to: http://localhost:13805

00:00:01 #10 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 benchmark.dib""

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = None }

00:00:04 #11 [Debug] >

00:00:04 #12 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:04 #13 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:04 #14 [Debug] > │ ## benchmark (Polyglot)                                                      │

00:00:04 #15 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:04 #16 [Debug] >

00:00:04 #17 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:04 #18 [Debug] > // // test

00:00:04 #19 [Debug] >

00:00:04 #20 [Debug] > open testing

00:00:07 #21 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-0132-3260-32e6fc901de6\main.spi

00:00:09 #22 [Debug] >

00:00:09 #23 [Debug] > ╭─[ 5.28s - stdout ]───────────────────────────────────────────────────────────╮

00:00:09 #24 [Debug] > │ ()                                                                           │

00:00:09 #25 [Debug] > │                                                                              │

00:00:09 #26 [Debug] > │                                                                              │

00:00:09 #27 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:09 #28 [Debug] >

00:00:09 #29 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:09 #30 [Debug] > inl (/@) x = listm'.(/@) x

00:00:09 #31 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-0432-3234-30b7a4ea8fea\main.spi

00:00:09 #32 [Debug] >

00:00:09 #33 [Debug] > ╭─[ 215.56ms - stdout ]────────────────────────────────────────────────────────╮

00:00:09 #34 [Debug] > │ ()                                                                           │

00:00:09 #35 [Debug] > │                                                                              │

00:00:09 #36 [Debug] > │                                                                              │

00:00:09 #37 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:09 #38 [Debug] >

00:00:09 #39 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:09 #40 [Debug] > inl am'_average forall el {number}. (array : a _ el) : el =

00:00:09 #41 [Debug] >     $"!array |> Array.average"

00:00:09 #42 [Debug] >

00:00:09 #43 [Debug] > inl am'_parallel_map forall dim el el'. (fn : el -> el') (array : a dim el) : a

00:00:09 #44 [Debug] > dim el' =

00:00:09 #45 [Debug] >     $"!array |> Array.Parallel.map !fn"

00:00:09 #46 [Debug] >

00:00:09 #47 [Debug] > inl am'_sort_by forall dim el. (fn : el -> _) (array : a dim el) : a dim el =

00:00:09 #48 [Debug] >     $"!array |> Array.sortBy !fn"

00:00:09 #49 [Debug] >

00:00:09 #50 [Debug] > inl am'_sort_descending forall dim el. (array : a dim el) : a dim el =

00:00:09 #51 [Debug] >     $"!array |> Array.sortDescending"

00:00:09 #52 [Debug] >

00:00:09 #53 [Debug] > inl am'_transpose forall dim el. (array : a dim (a dim el)) : a dim (a dim el) =

00:00:09 #54 [Debug] >     $"!array |> Array.transpose"

00:00:09 #55 [Debug] >

00:00:09 #56 [Debug] > inl am'_try_item forall dim el. (i : i32) (array : a dim el) : option el =

00:00:09 #57 [Debug] >     $"!array |> Array.tryItem !i" |> optionm'.from_fsharp

00:00:09 #58 [Debug] >

00:00:09 #59 [Debug] > nominal console_color = $"System.ConsoleColor"

00:00:09 #60 [Debug] >

00:00:09 #61 [Debug] > inl console_reset_color () : () =

00:00:09 #62 [Debug] >     run_target function

00:00:09 #63 [Debug] >         | Fsharp => fun () => $"System.Console.ResetColor ()"

00:00:09 #64 [Debug] >         | _ => fun () => ()

00:00:09 #65 [Debug] >

00:00:09 #66 [Debug] > inl console_set_foreground_color (color : console_color) : () =

00:00:09 #67 [Debug] >     run_target function

00:00:09 #68 [Debug] >         | Fsharp => fun () => $"System.Console.ForegroundColor <- !color"

00:00:09 #69 [Debug] >         | _ => fun () => ()

00:00:09 #70 [Debug] >

00:00:09 #71 [Debug] > inl gc_collect () =

00:00:09 #72 [Debug] >     run_target function

00:00:09 #73 [Debug] >         | Fsharp => fun () => $"System.GC.Collect ()"

00:00:09 #74 [Debug] >         | _ => fun () => ()

00:00:09 #75 [Debug] >

00:00:09 #76 [Debug] > nominal map k v = $"Map<`k, `v>"

00:00:09 #77 [Debug] >

00:00:09 #78 [Debug] > inl map_item forall k v. (k : k) (map : map k v) : v =

00:00:09 #79 [Debug] >     $"!map.[[!k]]"

00:00:09 #80 [Debug] >

00:00:09 #81 [Debug] > inl map_of_array forall k v. (array : a _ (k * v)) : map k v =

00:00:09 #82 [Debug] >     $"!array |> Array.map (fun (struct (a, b)) -> a, b) |> Map.ofArray"

00:00:09 #83 [Debug] >

00:00:09 #84 [Debug] > inl printfn x =

00:00:09 #85 [Debug] >     console.write_line x

00:00:09 #86 [Debug] >

00:00:09 #87 [Debug] > nominal stopwatch = $"System.Diagnostics.Stopwatch"

00:00:09 #88 [Debug] >

00:00:09 #89 [Debug] > inl stopwatch () : stopwatch =

00:00:09 #90 [Debug] >     $"`stopwatch" ()

00:00:09 #91 [Debug] >

00:00:09 #92 [Debug] > inl stopwatch_elapsed_milliseconds (stopwatch : stopwatch) : i64 =

00:00:09 #93 [Debug] >     $"!stopwatch.ElapsedMilliseconds"

00:00:09 #94 [Debug] >

00:00:09 #95 [Debug] > inl stopwatch_start (stopwatch : stopwatch) : () =

00:00:09 #96 [Debug] >     $"!stopwatch.Start ()"

00:00:09 #97 [Debug] >

00:00:09 #98 [Debug] > inl string_concat (a : string) (b : a _ _) : string =

00:00:09 #99 [Debug] >     $"!b |> String.concat !a"

00:00:09 #100 [Debug] >

00:00:09 #101 [Debug] > inl string_join (concat : string) (s : a _ string) : string =

00:00:09 #102 [Debug] >     $"System.String.Join (!concat, !s)"

00:00:09 #103 [Debug] >

00:00:09 #104 [Debug] >

00:00:09 #105 [Debug] > inl string_pad_right (pad : i32) (s : string) : string =

00:00:09 #106 [Debug] >     $"!s.PadRight !pad"

00:00:09 #107 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-0454-5410-5a9bf2f419b2\main.spi

00:00:10 #108 [Debug] >

00:00:10 #109 [Debug] > ╭─[ 152.57ms - stdout ]────────────────────────────────────────────────────────╮

00:00:10 #110 [Debug] > │ ()                                                                           │

00:00:10 #111 [Debug] > │                                                                              │

00:00:10 #112 [Debug] > │                                                                              │

00:00:10 #113 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:10 #114 [Debug] >

00:00:10 #115 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:10 #116 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:10 #117 [Debug] > │ ## test_case_result                                                          │

00:00:10 #118 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:10 #119 [Debug] >

00:00:10 #120 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:10 #121 [Debug] > type test_case_result =

00:00:10 #122 [Debug] >     {

00:00:10 #123 [Debug] >         Input : string

00:00:10 #124 [Debug] >         Expected : string

00:00:10 #125 [Debug] >         Result : string

00:00:10 #126 [Debug] >         TimeList : a u64 i64

00:00:10 #127 [Debug] >     }

00:00:10 #128 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-0469-6940-6d7f4001667b\main.spi

00:00:10 #129 [Debug] >

00:00:10 #130 [Debug] > ╭─[ 193.43ms - stdout ]────────────────────────────────────────────────────────╮

00:00:10 #131 [Debug] > │ ()                                                                           │

00:00:10 #132 [Debug] > │                                                                              │

00:00:10 #133 [Debug] > │                                                                              │

00:00:10 #134 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:10 #135 [Debug] >

00:00:10 #136 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:10 #137 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:10 #138 [Debug] > │ ## run                                                                       │

00:00:10 #139 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:10 #140 [Debug] >

00:00:10 #141 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:10 #142 [Debug] > inl run forall input expected.

00:00:10 #143 [Debug] >     count

00:00:10 #144 [Debug] >     (solutions : list (string * (input -> expected)))

00:00:10 #145 [Debug] >     ((input, expected) : (input * expected))

00:00:10 #146 [Debug] >     : test_case_result

00:00:10 #147 [Debug] >     =

00:00:10 #148 [Debug] >     inl input_str = input |> format_debug

00:00:10 #149 [Debug] >

00:00:10 #150 [Debug] >     printfn ""

00:00:10 #151 [Debug] >     printfn ($"$\"Solution: {!input_str}  \"" : string)

00:00:10 #152 [Debug] >

00:00:10 #153 [Debug] >     inl performance_invoke (fn : () -> expected) =

00:00:10 #154 [Debug] >         gc_collect ()

00:00:10 #155 [Debug] >         inl stopwatch = stopwatch ()

00:00:10 #156 [Debug] >         stopwatch |> stopwatch_start

00:00:10 #157 [Debug] >         inl time1 = stopwatch |> stopwatch_elapsed_milliseconds

00:00:10 #158 [Debug] >         inl result : expected =

00:00:10 #159 [Debug] >             am'.init_series 0 count 1i32

00:00:10 #160 [Debug] >             |> am'_parallel_map fun _n => fn ()

00:00:10 #161 [Debug] >             |> am'.last

00:00:10 #162 [Debug] >         inl time2 = (stopwatch |> stopwatch_elapsed_milliseconds) - time1

00:00:10 #163 [Debug] >         result, time2

00:00:10 #164 [Debug] >

00:00:10 #165 [Debug] >     inl results_with_time : a u64 _ =

00:00:10 #166 [Debug] >         solutions

00:00:10 #167 [Debug] >         |> listm'.indexed

00:00:10 #168 [Debug] >         |> listm.toArray

00:00:10 #169 [Debug] >         |> am.map fun ((i : i32), (test_name, solution)) =>

00:00:10 #170 [Debug] >             inl result, time = performance_invoke fun () => solution input

00:00:10 #171 [Debug] >             printfn ($"$\"Test case {!i + 1}. {!test_name}. Time: {!time}  \"" :

00:00:10 #172 [Debug] > string)

00:00:10 #173 [Debug] >             result, time

00:00:10 #174 [Debug] >

00:00:10 #175 [Debug] >     match results_with_time |> am.map fst with

00:00:10 #176 [Debug] >     | array when length array <= 1 => ()

00:00:10 #177 [Debug] >     | array when array |> am.forall' ((=) (index array 0)) => ()

00:00:10 #178 [Debug] >     | results => failwith ($"$\"Challenge error: {!results}\"" : string)

00:00:10 #179 [Debug] >

00:00:10 #180 [Debug] >     {

00:00:10 #181 [Debug] >         Input = input_str

00:00:10 #182 [Debug] >         Expected = expected |> format_debug

00:00:10 #183 [Debug] >         Result = results_with_time |> am.map fst |> fun array => index array 0

00:00:10 #184 [Debug] > |> format_debug

00:00:10 #185 [Debug] >         TimeList = results_with_time |> am.map snd

00:00:10 #186 [Debug] >     }

00:00:10 #187 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-0489-8940-8d5853c0d1b2\main.spi

00:00:10 #188 [Debug] >

00:00:10 #189 [Debug] > ╭─[ 156.83ms - stdout ]────────────────────────────────────────────────────────╮

00:00:10 #190 [Debug] > │ ()                                                                           │

00:00:10 #191 [Debug] > │                                                                              │

00:00:10 #192 [Debug] > │                                                                              │

00:00:10 #193 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:10 #194 [Debug] >

00:00:10 #195 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:10 #196 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:10 #197 [Debug] > │ ## run_all                                                                   │

00:00:10 #198 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:10 #199 [Debug] >

00:00:10 #200 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:10 #201 [Debug] > inl run_all forall input expected.

00:00:10 #202 [Debug] >     test_name

00:00:10 #203 [Debug] >     count

00:00:10 #204 [Debug] >     (solutions : list (string * (input -> expected)))

00:00:10 #205 [Debug] >     test_cases

00:00:10 #206 [Debug] >     =

00:00:10 #207 [Debug] >     printfn ""

00:00:10 #208 [Debug] >     printfn ""

00:00:10 #209 [Debug] >     printfn ($"$\"Test: {!test_name}\"" : string)

00:00:10 #210 [Debug] >     test_cases

00:00:10 #211 [Debug] >     |> listm.toArray

00:00:10 #212 [Debug] >     |> am.map (run count solutions)

00:00:10 #213 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-0505-0534-0cfc202ef6ae\main.spi

00:00:10 #214 [Debug] >

00:00:10 #215 [Debug] > ╭─[ 185.47ms - stdout ]────────────────────────────────────────────────────────╮

00:00:10 #216 [Debug] > │ ()                                                                           │

00:00:10 #217 [Debug] > │                                                                              │

00:00:10 #218 [Debug] > │                                                                              │

00:00:10 #219 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:10 #220 [Debug] >

00:00:10 #221 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:10 #222 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:10 #223 [Debug] > │ ## sort_result_list                                                          │

00:00:10 #224 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:10 #225 [Debug] >

00:00:10 #226 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:10 #227 [Debug] > inl sort_result_list results =

00:00:10 #228 [Debug] >     inl table =

00:00:10 #229 [Debug] >         inl rows =

00:00:10 #230 [Debug] >             results

00:00:10 #231 [Debug] >             |> am.map fun (result : test_case_result) =>

00:00:10 #232 [Debug] >                 inl best =

00:00:10 #233 [Debug] >                     result.TimeList

00:00:10 #234 [Debug] >                     |> am'.indexed

00:00:10 #235 [Debug] >                     |> am.map fun (i, time) =>

00:00:10 #236 [Debug] >                         i + 1i64, time

00:00:10 #237 [Debug] >                     |> am'_sort_by snd

00:00:10 #238 [Debug] >                     |> fun array => index array 0i32

00:00:10 #239 [Debug] >                     |> format_debug

00:00:10 #240 [Debug] >                 inl row =

00:00:10 #241 [Debug] >                     [[

00:00:10 #242 [Debug] >                         result.Input

00:00:10 #243 [Debug] >                         result.Expected

00:00:10 #244 [Debug] >                         result.Result

00:00:10 #245 [Debug] >                         best

00:00:10 #246 [Debug] >                     ]]

00:00:10 #247 [Debug] >                 inl color : option console_color =

00:00:10 #248 [Debug] >                     match result.Expected = result.Result with

00:00:10 #249 [Debug] >                     | true => Some $"`console_color.DarkGreen"

00:00:10 #250 [Debug] >                     | false => Some $"`console_color.DarkRed"

00:00:10 #251 [Debug] >                 row, color

00:00:10 #252 [Debug] >

00:00:10 #253 [Debug] >         inl header =

00:00:10 #254 [Debug] >             [[

00:00:10 #255 [Debug] >                 [[

00:00:10 #256 [Debug] >                     "Input"

00:00:10 #257 [Debug] >                     "Expected"

00:00:10 #258 [Debug] >                     "Result"

00:00:10 #259 [Debug] >                     "Best"

00:00:10 #260 [Debug] >                 ]]

00:00:10 #261 [Debug] >                 [[

00:00:10 #262 [Debug] >                     "---"

00:00:10 #263 [Debug] >                     "---"

00:00:10 #264 [Debug] >                     "---"

00:00:10 #265 [Debug] >                     "---"

00:00:10 #266 [Debug] >                 ]]

00:00:10 #267 [Debug] >             ]]

00:00:10 #268 [Debug] >             |> listm.map fun row => row, None

00:00:10 #269 [Debug] >             |> listm.toArray

00:00:10 #270 [Debug] >         rows |> am.append header

00:00:10 #271 [Debug] >

00:00:10 #272 [Debug] >     inl formattedTable =

00:00:10 #273 [Debug] >         inl lengthMap : map i32 i64 =

00:00:10 #274 [Debug] >             table

00:00:10 #275 [Debug] >             |> am.map (fst >> listm.toArray)

00:00:10 #276 [Debug] >             |> am'_transpose

00:00:10 #277 [Debug] >             |> am.map fun column =>

00:00:10 #278 [Debug] >                 column

00:00:10 #279 [Debug] >                 |> am.map sm.length

00:00:10 #280 [Debug] >                 |> am'_sort_descending

00:00:10 #281 [Debug] >                 |> am'_try_item 0i32

00:00:10 #282 [Debug] >                 |> optionm'.default_value 0i64

00:00:10 #283 [Debug] >             |> am'.indexed

00:00:10 #284 [Debug] >             |> fun (x : a i32 _) => x

00:00:10 #285 [Debug] >             |> map_of_array

00:00:10 #286 [Debug] >         table

00:00:10 #287 [Debug] >         |> am.map fun (row, color) =>

00:00:10 #288 [Debug] >             inl newRow =

00:00:10 #289 [Debug] >                 row

00:00:10 #290 [Debug] >                 |> listm'.indexed

00:00:10 #291 [Debug] >                 |> listm.map fun (i, cell) =>

00:00:10 #292 [Debug] >                     cell |> string_pad_right (lengthMap |> map_item i |> conv)

00:00:10 #293 [Debug] >                 |> listm.toArray

00:00:10 #294 [Debug] >             newRow, color

00:00:10 #295 [Debug] >

00:00:10 #296 [Debug] >     printfn ""

00:00:10 #297 [Debug] >     formattedTable

00:00:10 #298 [Debug] >     |> am.iter fun ((row : a i32 string), color) =>

00:00:10 #299 [Debug] >         match color with

00:00:10 #300 [Debug] >         | Some color => color |> console_set_foreground_color

00:00:10 #301 [Debug] >         | None => console_reset_color ()

00:00:10 #302 [Debug] >

00:00:10 #303 [Debug] >         printfn (row |> string_join "\t| ")

00:00:10 #304 [Debug] >

00:00:10 #305 [Debug] >         console_reset_color ()

00:00:10 #306 [Debug] >

00:00:10 #307 [Debug] >     inl averages : a u64 _ =

00:00:10 #308 [Debug] >         results

00:00:10 #309 [Debug] >         |> am.map fun result =>

00:00:10 #310 [Debug] >             result.TimeList

00:00:10 #311 [Debug] >             |> am.map ($"float" : i64 -> f64)

00:00:10 #312 [Debug] >         |> am'_transpose

00:00:10 #313 [Debug] >         |> am.map am'_average

00:00:10 #314 [Debug] >         |> am.map ($"int64" : f64 -> i64)

00:00:10 #315 [Debug] >         |> am'.indexed

00:00:10 #316 [Debug] >

00:00:10 #317 [Debug] >     printfn ""

00:00:10 #318 [Debug] >     printfn "Average Ranking  "

00:00:10 #319 [Debug] >     averages

00:00:10 #320 [Debug] >     |> am'_sort_by snd

00:00:10 #321 [Debug] >     |> am.iter fun ((i : i32), avg) =>

00:00:10 #322 [Debug] >         printfn ($"$\"Test case %d{!i + 1}. Average Time: %A{!avg}  \"" :

00:00:10 #323 [Debug] > string)

00:00:10 #324 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-0524-2472-2f3640919443\main.spi

00:00:10 #325 [Debug] >

00:00:10 #326 [Debug] > ╭─[ 166.30ms - stdout ]────────────────────────────────────────────────────────╮

00:00:10 #327 [Debug] > │ ()                                                                           │

00:00:10 #328 [Debug] > │                                                                              │

00:00:10 #329 [Debug] > │                                                                              │

00:00:10 #330 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:10 #331 [Debug] >

00:00:10 #332 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:10 #333 [Debug] > // // test

00:00:10 #334 [Debug] >

00:00:10 #335 [Debug] > inl is_fast () =

00:00:10 #336 [Debug] >     false

00:00:10 #337 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-0541-4168-4cfe0fcb4853\main.spi

00:00:10 #338 [Debug] >

00:00:10 #339 [Debug] > ╭─[ 186.45ms - stdout ]────────────────────────────────────────────────────────╮

00:00:10 #340 [Debug] > │ ()                                                                           │

00:00:10 #341 [Debug] > │                                                                              │

00:00:10 #342 [Debug] > │                                                                              │

00:00:10 #343 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:10 #344 [Debug] >

00:00:10 #345 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:10 #346 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:10 #347 [Debug] > │ ## empty2Tests                                                               │

00:00:10 #348 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:10 #349 [Debug] >

00:00:10 #350 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:10 #351 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:10 #352 [Debug] > │ Test: Empty2                                                                 │

00:00:10 #353 [Debug] > │                                                                              │

00:00:10 #354 [Debug] > │ Solution: (a, a)                                                             │

00:00:10 #355 [Debug] > │ Test case 1. A. Time: 59L                                                    │

00:00:10 #356 [Debug] > │                                                                              │

00:00:10 #357 [Debug] > │ Solution: (a, a)                                                             │

00:00:10 #358 [Debug] > │ Test case 1. A. Time: 53L                                                    │

00:00:10 #359 [Debug] > │                                                                              │

00:00:10 #360 [Debug] > │ Input   | Expected        | Result  | Best                                   │

00:00:10 #361 [Debug] > │ ---     | ---             | ---     | ---                                    │

00:00:10 #362 [Debug] > │ (a, a)  | a               | a       | (1, 59)                                │

00:00:10 #363 [Debug] > │ (a, a)  | a               | a       | (1, 53)                                │

00:00:10 #364 [Debug] > │                                                                              │

00:00:10 #365 [Debug] > │ Averages                                                                     │

00:00:10 #366 [Debug] > │ Test case 1. Average Time: 56L                                               │

00:00:10 #367 [Debug] > │                                                                              │

00:00:10 #368 [Debug] > │ Ranking                                                                      │

00:00:10 #369 [Debug] > │ Test case 1. Average Time: 56L                                               │

00:00:10 #370 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:10 #371 [Debug] >

00:00:10 #372 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:10 #373 [Debug] > // // test

00:00:10 #374 [Debug] >

00:00:10 #375 [Debug] > inl get_solutions () =

00:00:10 #376 [Debug] >     [[

00:00:10 #377 [Debug] >         "A",

00:00:10 #378 [Debug] >         fun (a, _b) =>

00:00:10 #379 [Debug] >             a

00:00:10 #380 [Debug] >

00:00:10 #381 [Debug] >         "B",

00:00:10 #382 [Debug] >         fun (_a, b) =>

00:00:10 #383 [Debug] >             b

00:00:10 #384 [Debug] >     ]]

00:00:10 #385 [Debug] >

00:00:10 #386 [Debug] > inl rec empty_2_tests () =

00:00:10 #387 [Debug] >     inl test_cases = [[

00:00:10 #388 [Debug] >         ("a", "a"), "a"

00:00:10 #389 [Debug] >         ("b", "b"), "b"

00:00:10 #390 [Debug] >     ]]

00:00:10 #391 [Debug] >

00:00:10 #392 [Debug] >     inl solutions = get_solutions ()

00:00:10 #393 [Debug] >

00:00:10 #394 [Debug] >     // inl is_fast () = true

00:00:10 #395 [Debug] >

00:00:10 #396 [Debug] >     inl count =

00:00:10 #397 [Debug] >         if is_fast ()

00:00:10 #398 [Debug] >         then 1000i32

00:00:10 #399 [Debug] >         else 2000000i32

00:00:10 #400 [Debug] >

00:00:10 #401 [Debug] >     run_all (nameof empty_2_tests) count solutions test_cases

00:00:10 #402 [Debug] >     |> sort_result_list

00:00:10 #403 [Debug] >

00:00:10 #404 [Debug] > empty_2_tests ()

00:00:11 #405 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-0562-6216-6595711096a5\main.spi

00:00:21 #406 [Debug] >

00:00:21 #407 [Debug] > ╭─[ 10.66s - stdout ]──────────────────────────────────────────────────────────╮

00:00:21 #408 [Debug] > │ type UH0 =                                                                   │

00:00:21 #409 [Debug] > │     | UH0_0 of string * string * string * UH0                                │

00:00:21 #410 [Debug] > │     | UH0_1                                                                  │

00:00:21 #411 [Debug] > │ and Mut0 = {mutable l0 : uint64}                                             │

00:00:21 #412 [Debug] > │ and UH1 =                                                                    │

00:00:21 #413 [Debug] > │     | UH1_0 of int32 * string * (struct (string * string) -> string) * UH1   │

00:00:21 #414 [Debug] > │     | UH1_1                                                                  │

00:00:21 #415 [Debug] > │ and Mut1 = {mutable l0 : int32}                                              │

00:00:21 #416 [Debug] > │ and UH2 =                                                                    │

00:00:21 #417 [Debug] > │     | UH2_0 of string * UH2                                                  │

00:00:21 #418 [Debug] > │     | UH2_1                                                                  │

00:00:21 #419 [Debug] > │ and [<Struct>] US0 =                                                         │

00:00:21 #420 [Debug] > │     | US0_0                                                                  │

00:00:21 #421 [Debug] > │     | US0_1 of f1_0 : System.ConsoleColor                                    │

00:00:21 #422 [Debug] > │ and UH3 =                                                                    │

00:00:21 #423 [Debug] > │     | UH3_0 of int64 * int64 * UH3                                           │

00:00:21 #424 [Debug] > │     | UH3_1                                                                  │

00:00:21 #425 [Debug] > │ and Mut2 = {mutable l0 : uint64; mutable l1 : UH3; mutable l2 : int64}       │

00:00:21 #426 [Debug] > │ and UH4 =                                                                    │

00:00:21 #427 [Debug] > │     | UH4_0 of UH2 * US0 * UH4                                               │

00:00:21 #428 [Debug] > │     | UH4_1                                                                  │

00:00:21 #429 [Debug] > │ and [<Struct>] US1 =                                                         │

00:00:21 #430 [Debug] > │     | US1_0                                                                  │

00:00:21 #431 [Debug] > │     | US1_1 of f1_0 : int64                                                  │

00:00:21 #432 [Debug] > │ and UH5 =                                                                    │

00:00:21 #433 [Debug] > │     | UH5_0 of int32 * int64 * UH5                                           │

00:00:21 #434 [Debug] > │     | UH5_1                                                                  │

00:00:21 #435 [Debug] > │ and Mut3 = {mutable l0 : uint64; mutable l1 : UH5; mutable l2 : int32}       │

00:00:21 #436 [Debug] > │ and UH6 =                                                                    │

00:00:21 #437 [Debug] > │     | UH6_0 of int32 * string * UH6                                          │

00:00:21 #438 [Debug] > │     | UH6_1                                                                  │

00:00:21 #439 [Debug] > │ let rec method2 (v0 : UH0, v1 : uint64) : uint64 =                           │

00:00:21 #440 [Debug] > │     match v0 with                                                            │

00:00:21 #441 [Debug] > │     | UH0_0(v2, v3, v4, v5) -> (* Cons *)                                    │

00:00:21 #442 [Debug] > │         let v6 : uint64 = v1 + 1UL                                           │

00:00:21 #443 [Debug] > │         method2(v5, v6)                                                      │

00:00:21 #444 [Debug] > │     | UH0_1 -> (* Nil *)                                                     │

00:00:21 #445 [Debug] > │         v1                                                                   │

00:00:21 #446 [Debug] > │ and method3 (v0 : (struct (string * string * string) []), v1 : UH0, v2 :     │

00:00:21 #447 [Debug] > │ uint64) : uint64 =                                                           │

00:00:21 #448 [Debug] > │     match v1 with                                                            │

00:00:21 #449 [Debug] > │     | UH0_0(v3, v4, v5, v6) -> (* Cons *)                                    │

00:00:21 #450 [Debug] > │         v0.[int v2] <- struct (v3, v4, v5)                                   │

00:00:21 #451 [Debug] > │         let v7 : uint64 = v2 + 1UL                                           │

00:00:21 #452 [Debug] > │         method3(v0, v6, v7)                                                  │

00:00:21 #453 [Debug] > │     | UH0_1 -> (* Nil *)                                                     │

00:00:21 #454 [Debug] > │         v2                                                                   │

00:00:21 #455 [Debug] > │ and method1 (v0 : UH0) : (struct (string * string * string) []) =            │

00:00:21 #456 [Debug] > │     let v1 : uint64 = 0UL                                                    │

00:00:21 #457 [Debug] > │     let v2 : uint64 = method2(v0, v1)                                        │

00:00:21 #458 [Debug] > │     let v3 : (struct (string * string * string) []) =                        │

00:00:21 #459 [Debug] > │ Array.zeroCreate<struct (string * string * string)>                          │

00:00:21 #460 [Debug] > │ (System.Convert.ToInt32(v2))                                                 │

00:00:21 #461 [Debug] > │     let v4 : uint64 = 0UL                                                    │

00:00:21 #462 [Debug] > │     let v5 : uint64 = method3(v3, v0, v4)                                    │

00:00:21 #463 [Debug] > │     v3                                                                       │

00:00:21 #464 [Debug] > │ and method4 (v0 : uint64, v1 : Mut0) : bool =                                │

00:00:21 #465 [Debug] > │     let v2 : uint64 = v1.l0                                                  │

00:00:21 #466 [Debug] > │     let v3 : bool = v2 < v0                                                  │

00:00:21 #467 [Debug] > │     v3                                                                       │

00:00:21 #468 [Debug] > │ and closure1 () struct (v0 : string, v1 : string) : string =                 │

00:00:21 #469 [Debug] > │     v0                                                                       │

00:00:21 #470 [Debug] > │ and closure2 () struct (v0 : string, v1 : string) : string =                 │

00:00:21 #471 [Debug] > │     v1                                                                       │

00:00:21 #472 [Debug] > │ and method6 (v0 : UH1, v1 : uint64) : uint64 =                               │

00:00:21 #473 [Debug] > │     match v0 with                                                            │

00:00:21 #474 [Debug] > │     | UH1_0(v2, v3, v4, v5) -> (* Cons *)                                    │

00:00:21 #475 [Debug] > │         let v6 : uint64 = v1 + 1UL                                           │

00:00:21 #476 [Debug] > │         method6(v5, v6)                                                      │

00:00:21 #477 [Debug] > │     | UH1_1 -> (* Nil *)                                                     │

00:00:21 #478 [Debug] > │         v1                                                                   │

00:00:21 #479 [Debug] > │ and method7 (v0 : (struct (int32 * string * (struct (string * string) ->     │

00:00:21 #480 [Debug] > │ string)) []), v1 : UH1, v2 : uint64) : uint64 =                              │

00:00:21 #481 [Debug] > │     match v1 with                                                            │

00:00:21 #482 [Debug] > │     | UH1_0(v3, v4, v5, v6) -> (* Cons *)                                    │

00:00:21 #483 [Debug] > │         v0.[int v2] <- struct (v3, v4, v5)                                   │

00:00:21 #484 [Debug] > │         let v7 : uint64 = v2 + 1UL                                           │

00:00:21 #485 [Debug] > │         method7(v0, v6, v7)                                                  │

00:00:21 #486 [Debug] > │     | UH1_1 -> (* Nil *)                                                     │

00:00:21 #487 [Debug] > │         v2                                                                   │

00:00:21 #488 [Debug] > │ and method5 (v0 : UH1) : (struct (int32 * string * (struct (string * string) │

00:00:21 #489 [Debug] > │ -> string)) []) =                                                            │

00:00:21 #490 [Debug] > │     let v1 : uint64 = 0UL                                                    │

00:00:21 #491 [Debug] > │     let v2 : uint64 = method6(v0, v1)                                        │

00:00:21 #492 [Debug] > │     let v3 : (struct (int32 * string * (struct (string * string) -> string)) │

00:00:21 #493 [Debug] > │ []) = Array.zeroCreate<struct (int32 * string * (struct (string * string) -> │

00:00:21 #494 [Debug] > │ string))> (System.Convert.ToInt32(v2))                                       │

00:00:21 #495 [Debug] > │     let v4 : uint64 = 0UL                                                    │

00:00:21 #496 [Debug] > │     let v5 : uint64 = method7(v3, v0, v4)                                    │

00:00:21 #497 [Debug] > │     v3                                                                       │

00:00:21 #498 [Debug] > │ and closure3 () () : unit =                                                  │

00:00:21 #499 [Debug] > │     ()                                                                       │

00:00:21 #500 [Debug] > │ and closure4 () () : unit =                                                  │

00:00:21 #501 [Debug] > │     System.GC.Collect ()                                                     │

00:00:21 #502 [Debug] > │     ()                                                                       │

00:00:21 #503 [Debug] > │ and method8 (v0 : Mut1) : bool =                                             │

00:00:21 #504 [Debug] > │     let v1 : int32 = v0.l0                                                   │

00:00:21 #505 [Debug] > │     let v2 : bool = v1 < 2000001                                             │

00:00:21 #506 [Debug] > │     v2                                                                       │

00:00:21 #507 [Debug] > │ and closure5 (v0 : string, v1 : string, v2 : (struct (string * string) ->    │

00:00:21 #508 [Debug] > │ string)) (v3 : int32) : string =                                             │

00:00:21 #509 [Debug] > │     v2 struct (v0, v1)                                                       │

00:00:21 #510 [Debug] > │ and method9 (v0 : string, v1 : (string []), v2 : uint64) : bool =            │

00:00:21 #511 [Debug] > │     let v3 : uint64 = System.Convert.ToUInt64 v1.Length                      │

00:00:21 #512 [Debug] > │     let v4 : bool = v2 < v3                                                  │

00:00:21 #513 [Debug] > │     if v4 then                                                               │

00:00:21 #514 [Debug] > │         let v5 : string = v1.[int v2]                                        │

00:00:21 #515 [Debug] > │         let v6 : bool = v0 = v5                                              │

00:00:21 #516 [Debug] > │         if v6 then                                                           │

00:00:21 #517 [Debug] > │             let v7 : uint64 = v2 + 1UL                                       │

00:00:21 #518 [Debug] > │             method9(v0, v1, v7)                                              │

00:00:21 #519 [Debug] > │         else                                                                 │

00:00:21 #520 [Debug] > │             false                                                            │

00:00:21 #521 [Debug] > │     else                                                                     │

00:00:21 #522 [Debug] > │         true                                                                 │

00:00:21 #523 [Debug] > │ and method10 (v0 : uint64, v1 : Mut2) : bool =                               │

00:00:21 #524 [Debug] > │     let v2 : uint64 = v1.l0                                                  │

00:00:21 #525 [Debug] > │     let v3 : bool = v2 < v0                                                  │

00:00:21 #526 [Debug] > │     v3                                                                       │

00:00:21 #527 [Debug] > │ and method11 (v0 : UH3, v1 : UH3) : UH3 =                                    │

00:00:21 #528 [Debug] > │     match v0 with                                                            │

00:00:21 #529 [Debug] > │     | UH3_0(v2, v3, v4) -> (* Cons *)                                        │

00:00:21 #530 [Debug] > │         let v5 : UH3 = UH3_0(v2, v3, v1)                                     │

00:00:21 #531 [Debug] > │         method11(v4, v5)                                                     │

00:00:21 #532 [Debug] > │     | UH3_1 -> (* Nil *)                                                     │

00:00:21 #533 [Debug] > │         v1                                                                   │

00:00:21 #534 [Debug] > │ and method13 (v0 : UH3, v1 : int32) : int32 =                                │

00:00:21 #535 [Debug] > │     match v0 with                                                            │

00:00:21 #536 [Debug] > │     | UH3_0(v2, v3, v4) -> (* Cons *)                                        │

00:00:21 #537 [Debug] > │         let v5 : int32 = v1 + 1                                              │

00:00:21 #538 [Debug] > │         method13(v4, v5)                                                     │

00:00:21 #539 [Debug] > │     | UH3_1 -> (* Nil *)                                                     │

00:00:21 #540 [Debug] > │         v1                                                                   │

00:00:21 #541 [Debug] > │ and method14 (v0 : (struct (int64 * int64) []), v1 : UH3, v2 : int32) :      │

00:00:21 #542 [Debug] > │ int32 =                                                                      │

00:00:21 #543 [Debug] > │     match v1 with                                                            │

00:00:21 #544 [Debug] > │     | UH3_0(v3, v4, v5) -> (* Cons *)                                        │

00:00:21 #545 [Debug] > │         v0.[int v2] <- struct (v3, v4)                                       │

00:00:21 #546 [Debug] > │         let v6 : int32 = v2 + 1                                              │

00:00:21 #547 [Debug] > │         method14(v0, v5, v6)                                                 │

00:00:21 #548 [Debug] > │     | UH3_1 -> (* Nil *)                                                     │

00:00:21 #549 [Debug] > │         v2                                                                   │

00:00:21 #550 [Debug] > │ and method12 (v0 : UH3) : (struct (int64 * int64) []) =                      │

00:00:21 #551 [Debug] > │     let v1 : int32 = 0                                                       │

00:00:21 #552 [Debug] > │     let v2 : int32 = method13(v0, v1)                                        │

00:00:21 #553 [Debug] > │     let v3 : (struct (int64 * int64) []) = Array.zeroCreate<struct (int64 *  │

00:00:21 #554 [Debug] > │ int64)> (v2)                                                                 │

00:00:21 #555 [Debug] > │     let v4 : int32 = 0                                                       │

00:00:21 #556 [Debug] > │     let v5 : int32 = method14(v3, v0, v4)                                    │

00:00:21 #557 [Debug] > │     v3                                                                       │

00:00:21 #558 [Debug] > │ and method15 (v0 : int32, v1 : Mut1) : bool =                                │

00:00:21 #559 [Debug] > │     let v2 : int32 = v1.l0                                                   │

00:00:21 #560 [Debug] > │     let v3 : bool = v2 < v0                                                  │

00:00:21 #561 [Debug] > │     v3                                                                       │

00:00:21 #562 [Debug] > │ and closure6 () struct (v0 : int64, v1 : int64) : int64 =                    │

00:00:21 #563 [Debug] > │     v1                                                                       │

00:00:21 #564 [Debug] > │ and method17 (v0 : UH4, v1 : uint64) : uint64 =                              │

00:00:21 #565 [Debug] > │     match v0 with                                                            │

00:00:21 #566 [Debug] > │     | UH4_0(v2, v3, v4) -> (* Cons *)                                        │

00:00:21 #567 [Debug] > │         let v5 : uint64 = v1 + 1UL                                           │

00:00:21 #568 [Debug] > │         method17(v4, v5)                                                     │

00:00:21 #569 [Debug] > │     | UH4_1 -> (* Nil *)                                                     │

00:00:21 #570 [Debug] > │         v1                                                                   │

00:00:21 #571 [Debug] > │ and method18 (v0 : (struct (UH2 * US0) []), v1 : UH4, v2 : uint64) : uint64  │

00:00:21 #572 [Debug] > │ =                                                                            │

00:00:21 #573 [Debug] > │     match v1 with                                                            │

00:00:21 #574 [Debug] > │     | UH4_0(v3, v4, v5) -> (* Cons *)                                        │

00:00:21 #575 [Debug] > │         v0.[int v2] <- struct (v3, v4)                                       │

00:00:21 #576 [Debug] > │         let v6 : uint64 = v2 + 1UL                                           │

00:00:21 #577 [Debug] > │         method18(v0, v5, v6)                                                 │

00:00:21 #578 [Debug] > │     | UH4_1 -> (* Nil *)                                                     │

00:00:21 #579 [Debug] > │         v2                                                                   │

00:00:21 #580 [Debug] > │ and method16 (v0 : UH4) : (struct (UH2 * US0) []) =                          │

00:00:21 #581 [Debug] > │     let v1 : uint64 = 0UL                                                    │

00:00:21 #582 [Debug] > │     let v2 : uint64 = method17(v0, v1)                                       │

00:00:21 #583 [Debug] > │     let v3 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * US0)>  │

00:00:21 #584 [Debug] > │ (System.Convert.ToInt32(v2))                                                 │

00:00:21 #585 [Debug] > │     let v4 : uint64 = 0UL                                                    │

00:00:21 #586 [Debug] > │     let v5 : uint64 = method18(v3, v0, v4)                                   │

00:00:21 #587 [Debug] > │     v3                                                                       │

00:00:21 #588 [Debug] > │ and method20 (v0 : UH2, v1 : uint64) : uint64 =                              │

00:00:21 #589 [Debug] > │     match v0 with                                                            │

00:00:21 #590 [Debug] > │     | UH2_0(v2, v3) -> (* Cons *)                                            │

00:00:21 #591 [Debug] > │         let v4 : uint64 = v1 + 1UL                                           │

00:00:21 #592 [Debug] > │         method20(v3, v4)                                                     │

00:00:21 #593 [Debug] > │     | UH2_1 -> (* Nil *)                                                     │

00:00:21 #594 [Debug] > │         v1                                                                   │

00:00:21 #595 [Debug] > │ and method21 (v0 : (string []), v1 : UH2, v2 : uint64) : uint64 =            │

00:00:21 #596 [Debug] > │     match v1 with                                                            │

00:00:21 #597 [Debug] > │     | UH2_0(v3, v4) -> (* Cons *)                                            │

00:00:21 #598 [Debug] > │         v0.[int v2] <- v3                                                    │

00:00:21 #599 [Debug] > │         let v5 : uint64 = v2 + 1UL                                           │

00:00:21 #600 [Debug] > │         method21(v0, v4, v5)                                                 │

00:00:21 #601 [Debug] > │     | UH2_1 -> (* Nil *)                                                     │

00:00:21 #602 [Debug] > │         v2                                                                   │

00:00:21 #603 [Debug] > │ and method19 (v0 : UH2) : (string []) =                                      │

00:00:21 #604 [Debug] > │     let v1 : uint64 = 0UL                                                    │

00:00:21 #605 [Debug] > │     let v2 : uint64 = method20(v0, v1)                                       │

00:00:21 #606 [Debug] > │     let v3 : (string []) = Array.zeroCreate<string>                          │

00:00:21 #607 [Debug] > │ (System.Convert.ToInt32(v2))                                                 │

00:00:21 #608 [Debug] > │     let v4 : uint64 = 0UL                                                    │

00:00:21 #609 [Debug] > │     let v5 : uint64 = method21(v3, v0, v4)                                   │

00:00:21 #610 [Debug] > │     v3                                                                       │

00:00:21 #611 [Debug] > │ and closure7 () (v0 : int64) : US1 =                                         │

00:00:21 #612 [Debug] > │     US1_1(v0)                                                                │

00:00:21 #613 [Debug] > │ and method22 (v0 : uint64, v1 : Mut3) : bool =                               │

00:00:21 #614 [Debug] > │     let v2 : uint64 = v1.l0                                                  │

00:00:21 #615 [Debug] > │     let v3 : bool = v2 < v0                                                  │

00:00:21 #616 [Debug] > │     v3                                                                       │

00:00:21 #617 [Debug] > │ and method23 (v0 : UH5, v1 : UH5) : UH5 =                                    │

00:00:21 #618 [Debug] > │     match v0 with                                                            │

00:00:21 #619 [Debug] > │     | UH5_0(v2, v3, v4) -> (* Cons *)                                        │

00:00:21 #620 [Debug] > │         let v5 : UH5 = UH5_0(v2, v3, v1)                                     │

00:00:21 #621 [Debug] > │         method23(v4, v5)                                                     │

00:00:21 #622 [Debug] > │     | UH5_1 -> (* Nil *)                                                     │

00:00:21 #623 [Debug] > │         v1                                                                   │

00:00:21 #624 [Debug] > │ and method25 (v0 : UH5, v1 : int32) : int32 =                                │

00:00:21 #625 [Debug] > │     match v0 with                                                            │

00:00:21 #626 [Debug] > │     | UH5_0(v2, v3, v4) -> (* Cons *)                                        │

00:00:21 #627 [Debug] > │         let v5 : int32 = v1 + 1                                              │

00:00:21 #628 [Debug] > │         method25(v4, v5)                                                     │

00:00:21 #629 [Debug] > │     | UH5_1 -> (* Nil *)                                                     │

00:00:21 #630 [Debug] > │         v1                                                                   │

00:00:21 #631 [Debug] > │ and method26 (v0 : (struct (int32 * int64) []), v1 : UH5, v2 : int32) :      │

00:00:21 #632 [Debug] > │ int32 =                                                                      │

00:00:21 #633 [Debug] > │     match v1 with                                                            │

00:00:21 #634 [Debug] > │     | UH5_0(v3, v4, v5) -> (* Cons *)                                        │

00:00:21 #635 [Debug] > │         v0.[int v2] <- struct (v3, v4)                                       │

00:00:21 #636 [Debug] > │         let v6 : int32 = v2 + 1                                              │

00:00:21 #637 [Debug] > │         method26(v0, v5, v6)                                                 │

00:00:21 #638 [Debug] > │     | UH5_1 -> (* Nil *)                                                     │

00:00:21 #639 [Debug] > │         v2                                                                   │

00:00:21 #640 [Debug] > │ and method24 (v0 : UH5) : (struct (int32 * int64) []) =                      │

00:00:21 #641 [Debug] > │     let v1 : int32 = 0                                                       │

00:00:21 #642 [Debug] > │     let v2 : int32 = method25(v0, v1)                                        │

00:00:21 #643 [Debug] > │     let v3 : (struct (int32 * int64) []) = Array.zeroCreate<struct (int32 *  │

00:00:21 #644 [Debug] > │ int64)> (v2)                                                                 │

00:00:21 #645 [Debug] > │     let v4 : int32 = 0                                                       │

00:00:21 #646 [Debug] > │     let v5 : int32 = method26(v3, v0, v4)                                    │

00:00:21 #647 [Debug] > │     v3                                                                       │

00:00:21 #648 [Debug] > │ and method27 (v0 : UH2, v1 : UH6, v2 : int32) : struct (UH6 * int32) =       │

00:00:21 #649 [Debug] > │     match v0 with                                                            │

00:00:21 #650 [Debug] > │     | UH2_0(v3, v4) -> (* Cons *)                                            │

00:00:21 #651 [Debug] > │         let v5 : int32 = v2 + 1                                              │

00:00:21 #652 [Debug] > │         let v6 : UH6 = UH6_0(v2, v3, v1)                                     │

00:00:21 #653 [Debug] > │         method27(v4, v6, v5)                                                 │

00:00:21 #654 [Debug] > │     | UH2_1 -> (* Nil *)                                                     │

00:00:21 #655 [Debug] > │         struct (v1, v2)                                                      │

00:00:21 #656 [Debug] > │ and method28 (v0 : UH6, v1 : UH6) : UH6 =                                    │

00:00:21 #657 [Debug] > │     match v0 with                                                            │

00:00:21 #658 [Debug] > │     | UH6_0(v2, v3, v4) -> (* Cons *)                                        │

00:00:21 #659 [Debug] > │         let v5 : UH6 = UH6_0(v2, v3, v1)                                     │

00:00:21 #660 [Debug] > │         method28(v4, v5)                                                     │

00:00:21 #661 [Debug] > │     | UH6_1 -> (* Nil *)                                                     │

00:00:21 #662 [Debug] > │         v1                                                                   │

00:00:21 #663 [Debug] > │ and method29 (v0 : Map<int32, int64>, v1 : UH6, v2 : UH2) : UH2 =            │

00:00:21 #664 [Debug] > │     match v1 with                                                            │

00:00:21 #665 [Debug] > │     | UH6_0(v3, v4, v5) -> (* Cons *)                                        │

00:00:21 #666 [Debug] > │         let v6 : UH2 = method29(v0, v5, v2)                                  │

00:00:21 #667 [Debug] > │         let v7 : int64 = v0.[v3]                                             │

00:00:21 #668 [Debug] > │         let v8 : int32 = int32 v7                                            │

00:00:21 #669 [Debug] > │         let v9 : string = v4.PadRight v8                                     │

00:00:21 #670 [Debug] > │         UH2_0(v9, v6)                                                        │

00:00:21 #671 [Debug] > │     | UH6_1 -> (* Nil *)                                                     │

00:00:21 #672 [Debug] > │         v2                                                                   │

00:00:21 #673 [Debug] > │ and method31 (v0 : UH2, v1 : int32) : int32 =                                │

00:00:21 #674 [Debug] > │     match v0 with                                                            │

00:00:21 #675 [Debug] > │     | UH2_0(v2, v3) -> (* Cons *)                                            │

00:00:21 #676 [Debug] > │         let v4 : int32 = v1 + 1                                              │

00:00:21 #677 [Debug] > │         method31(v3, v4)                                                     │

00:00:21 #678 [Debug] > │     | UH2_1 -> (* Nil *)                                                     │

00:00:21 #679 [Debug] > │         v1                                                                   │

00:00:21 #680 [Debug] > │ and method32 (v0 : (string []), v1 : UH2, v2 : int32) : int32 =              │

00:00:21 #681 [Debug] > │     match v1 with                                                            │

00:00:21 #682 [Debug] > │     | UH2_0(v3, v4) -> (* Cons *)                                            │

00:00:21 #683 [Debug] > │         v0.[int v2] <- v3                                                    │

00:00:21 #684 [Debug] > │         let v5 : int32 = v2 + 1                                              │

00:00:21 #685 [Debug] > │         method32(v0, v4, v5)                                                 │

00:00:21 #686 [Debug] > │     | UH2_1 -> (* Nil *)                                                     │

00:00:21 #687 [Debug] > │         v2                                                                   │

00:00:21 #688 [Debug] > │ and method30 (v0 : UH2) : (string []) =                                      │

00:00:21 #689 [Debug] > │     let v1 : int32 = 0                                                       │

00:00:21 #690 [Debug] > │     let v2 : int32 = method31(v0, v1)                                        │

00:00:21 #691 [Debug] > │     let v3 : (string []) = Array.zeroCreate<string> (v2)                     │

00:00:21 #692 [Debug] > │     let v4 : int32 = 0                                                       │

00:00:21 #693 [Debug] > │     let v5 : int32 = method32(v3, v0, v4)                                    │

00:00:21 #694 [Debug] > │     v3                                                                       │

00:00:21 #695 [Debug] > │ and closure8 () () : unit =                                                  │

00:00:21 #696 [Debug] > │     ()                                                                       │

00:00:21 #697 [Debug] > │ and closure9 () () : unit =                                                  │

00:00:21 #698 [Debug] > │     System.Console.ResetColor ()                                             │

00:00:21 #699 [Debug] > │     ()                                                                       │

00:00:21 #700 [Debug] > │ and closure10 () () : unit =                                                 │

00:00:21 #701 [Debug] > │     ()                                                                       │

00:00:21 #702 [Debug] > │ and closure11 (v0 : System.ConsoleColor) () : unit =                         │

00:00:21 #703 [Debug] > │     System.Console.ForegroundColor <- v0                                     │

00:00:21 #704 [Debug] > │     ()                                                                       │

00:00:21 #705 [Debug] > │ and method34 (v0 : UH5, v1 : uint64) : uint64 =                              │

00:00:21 #706 [Debug] > │     match v0 with                                                            │

00:00:21 #707 [Debug] > │     | UH5_0(v2, v3, v4) -> (* Cons *)                                        │

00:00:21 #708 [Debug] > │         let v5 : uint64 = v1 + 1UL                                           │

00:00:21 #709 [Debug] > │         method34(v4, v5)                                                     │

00:00:21 #710 [Debug] > │     | UH5_1 -> (* Nil *)                                                     │

00:00:21 #711 [Debug] > │         v1                                                                   │

00:00:21 #712 [Debug] > │ and method35 (v0 : (struct (int32 * int64) []), v1 : UH5, v2 : uint64) :     │

00:00:21 #713 [Debug] > │ uint64 =                                                                     │

00:00:21 #714 [Debug] > │     match v1 with                                                            │

00:00:21 #715 [Debug] > │     | UH5_0(v3, v4, v5) -> (* Cons *)                                        │

00:00:21 #716 [Debug] > │         v0.[int v2] <- struct (v3, v4)                                       │

00:00:21 #717 [Debug] > │         let v6 : uint64 = v2 + 1UL                                           │

00:00:21 #718 [Debug] > │         method35(v0, v5, v6)                                                 │

00:00:21 #719 [Debug] > │     | UH5_1 -> (* Nil *)                                                     │

00:00:21 #720 [Debug] > │         v2                                                                   │

00:00:21 #721 [Debug] > │ and method33 (v0 : UH5) : (struct (int32 * int64) []) =                      │

00:00:21 #722 [Debug] > │     let v1 : uint64 = 0UL                                                    │

00:00:21 #723 [Debug] > │     let v2 : uint64 = method34(v0, v1)                                       │

00:00:21 #724 [Debug] > │     let v3 : (struct (int32 * int64) []) = Array.zeroCreate<struct (int32 *  │

00:00:21 #725 [Debug] > │ int64)> (System.Convert.ToInt32(v2))                                         │

00:00:21 #726 [Debug] > │     let v4 : uint64 = 0UL                                                    │

00:00:21 #727 [Debug] > │     let v5 : uint64 = method35(v3, v0, v4)                                   │

00:00:21 #728 [Debug] > │     v3                                                                       │

00:00:21 #729 [Debug] > │ and closure12 () struct (v0 : int32, v1 : int64) : int64 =                   │

00:00:21 #730 [Debug] > │     v1                                                                       │

00:00:21 #731 [Debug] > │ and closure0 () () : unit =                                                  │

00:00:21 #732 [Debug] > │     let v0 : (unit -> unit) = closure0()                                     │

00:00:21 #733 [Debug] > │     let v1 : string = nameof v0                                              │

00:00:21 #734 [Debug] > │     let v2 : string = ""                                                     │

00:00:21 #735 [Debug] > │     System.Console.WriteLine v2                                              │

00:00:21 #736 [Debug] > │     System.Console.WriteLine v2                                              │

00:00:21 #737 [Debug] > │     let v3 : string = $"Test: {v1}"                                          │

00:00:21 #738 [Debug] > │     System.Console.WriteLine v3                                              │

00:00:21 #739 [Debug] > │     let v4 : string = "a"                                                    │

00:00:21 #740 [Debug] > │     let v5 : string = "b"                                                    │

00:00:21 #741 [Debug] > │     let v6 : UH0 = UH0_1                                                     │

00:00:21 #742 [Debug] > │     let v7 : UH0 = UH0_0(v5, v5, v5, v6)                                     │

00:00:21 #743 [Debug] > │     let v8 : UH0 = UH0_0(v4, v4, v4, v7)                                     │

00:00:21 #744 [Debug] > │     let v9 : (struct (string * string * string) []) = method1(v8)            │

00:00:21 #745 [Debug] > │     let v10 : uint64 = System.Convert.ToUInt64 v9.Length                     │

00:00:21 #746 [Debug] > │     let v11 : (struct (string * string * string * (int64 [])) []) =          │

00:00:21 #747 [Debug] > │ Array.zeroCreate<struct (string * string * string * (int64 []))>             │

00:00:21 #748 [Debug] > │ (System.Convert.ToInt32(v10))                                                │

00:00:21 #749 [Debug] > │     let v12 : Mut0 = {l0 = 0UL} : Mut0                                       │

00:00:21 #750 [Debug] > │     while method4(v10, v12) do                                               │

00:00:21 #751 [Debug] > │         let v14 : uint64 = v12.l0                                            │

00:00:21 #752 [Debug] > │         let struct (v15 : string, v16 : string, v17 : string) = v9.[int v14] │

00:00:21 #753 [Debug] > │         let v18 : string = $"%A{struct (v15, v16)}"                          │

00:00:21 #754 [Debug] > │         System.Console.WriteLine v2                                          │

00:00:21 #755 [Debug] > │         let v19 : string = $"Solution: {v18}  "                              │

00:00:21 #756 [Debug] > │         System.Console.WriteLine v19                                         │

00:00:21 #757 [Debug] > │         let v20 : int32 = 0                                                  │

00:00:21 #758 [Debug] > │         let v21 : string = "A"                                               │

00:00:21 #759 [Debug] > │         let v22 : (struct (string * string) -> string) = closure1()          │

00:00:21 #760 [Debug] > │         let v23 : int32 = 1                                                  │

00:00:21 #761 [Debug] > │         let v24 : string = "B"                                               │

00:00:21 #762 [Debug] > │         let v25 : (struct (string * string) -> string) = closure2()          │

00:00:21 #763 [Debug] > │         let v26 : UH1 = UH1_1                                                │

00:00:21 #764 [Debug] > │         let v27 : UH1 = UH1_0(v23, v24, v25, v26)                            │

00:00:21 #765 [Debug] > │         let v28 : UH1 = UH1_0(v20, v21, v22, v27)                            │

00:00:21 #766 [Debug] > │         let v29 : (struct (int32 * string * (struct (string * string) ->     │

00:00:21 #767 [Debug] > │ string)) []) = method5(v28)                                                  │

00:00:21 #768 [Debug] > │         let v30 : uint64 = System.Convert.ToUInt64 v29.Length                │

00:00:21 #769 [Debug] > │         let v31 : (struct (string * int64) []) = Array.zeroCreate<struct     │

00:00:21 #770 [Debug] > │ (string * int64)> (System.Convert.ToInt32(v30))                              │

00:00:21 #771 [Debug] > │         let v32 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:00:21 #772 [Debug] > │         while method4(v30, v32) do                                           │

00:00:21 #773 [Debug] > │             let v34 : uint64 = v32.l0                                        │

00:00:21 #774 [Debug] > │             let struct (v35 : int32, v36 : string, v37 : (struct (string *   │

00:00:21 #775 [Debug] > │ string) -> string)) = v29.[int v34]                                          │

00:00:21 #776 [Debug] > │             #if FABLE_COMPILER_RUST                                          │

00:00:21 #777 [Debug] > │             let v38 : (unit -> unit) = closure3()                            │

00:00:21 #778 [Debug] > │             v38 ()                                                           │

00:00:21 #779 [Debug] > │             #else                                                            │

00:00:21 #780 [Debug] > │             let v39 : (unit -> unit) = closure4()                            │

00:00:21 #781 [Debug] > │             v39 ()                                                           │

00:00:21 #782 [Debug] > │             #endif                                                           │

00:00:21 #783 [Debug] > │             let v40 : (unit -> System.Diagnostics.Stopwatch) =               │

00:00:21 #784 [Debug] > │ System.Diagnostics.Stopwatch                                                 │

00:00:21 #785 [Debug] > │             let v41 : System.Diagnostics.Stopwatch = v40 ()                  │

00:00:21 #786 [Debug] > │             v41.Start ()                                                     │

00:00:21 #787 [Debug] > │             let v42 : int64 = v41.ElapsedMilliseconds                        │

00:00:21 #788 [Debug] > │             let v43 : (int32 []) = Array.zeroCreate<int32> (2000001)         │

00:00:21 #789 [Debug] > │             let v44 : Mut1 = {l0 = 0} : Mut1                                 │

00:00:21 #790 [Debug] > │             while method8(v44) do                                            │

00:00:21 #791 [Debug] > │                 let v46 : int32 = v44.l0                                     │

00:00:21 #792 [Debug] > │                 v43.[int v46] <- v46                                         │

00:00:21 #793 [Debug] > │                 let v47 : int32 = v46 + 1                                    │

00:00:21 #794 [Debug] > │                 v44.l0 <- v47                                                │

00:00:21 #795 [Debug] > │                 ()                                                           │

00:00:21 #796 [Debug] > │             let v48 : (int32 -> string) = closure5(v15, v16, v37)            │

00:00:21 #797 [Debug] > │             let v49 : (string []) = v43 |> Array.Parallel.map v48            │

00:00:21 #798 [Debug] > │             let v50 : int32 = v49.Length                                     │

00:00:21 #799 [Debug] > │             let v51 : int32 = v50 - 1                                        │

00:00:21 #800 [Debug] > │             let v52 : string = v49.[int v51]                                 │

00:00:21 #801 [Debug] > │             let v53 : int64 = v41.ElapsedMilliseconds                        │

00:00:21 #802 [Debug] > │             let v54 : int64 = v53 - v42                                      │

00:00:21 #803 [Debug] > │             let v55 : string = $"Test case {v35 + 1}. {v36}. Time: {v54}  "  │

00:00:21 #804 [Debug] > │             System.Console.WriteLine v55                                     │

00:00:21 #805 [Debug] > │             v31.[int v34] <- struct (v52, v54)                               │

00:00:21 #806 [Debug] > │             let v56 : uint64 = v34 + 1UL                                     │

00:00:21 #807 [Debug] > │             v32.l0 <- v56                                                    │

00:00:21 #808 [Debug] > │             ()                                                               │

00:00:21 #809 [Debug] > │         let v57 : uint64 = System.Convert.ToUInt64 v31.Length                │

00:00:21 #810 [Debug] > │         let v58 : (string []) = Array.zeroCreate<string>                     │

00:00:21 #811 [Debug] > │ (System.Convert.ToInt32(v57))                                                │

00:00:21 #812 [Debug] > │         let v59 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:00:21 #813 [Debug] > │         while method4(v57, v59) do                                           │

00:00:21 #814 [Debug] > │             let v61 : uint64 = v59.l0                                        │

00:00:21 #815 [Debug] > │             let struct (v62 : string, v63 : int64) = v31.[int v61]           │

00:00:21 #816 [Debug] > │             v58.[int v61] <- v62                                             │

00:00:21 #817 [Debug] > │             let v64 : uint64 = v61 + 1UL                                     │

00:00:21 #818 [Debug] > │             v59.l0 <- v64                                                    │

00:00:21 #819 [Debug] > │             ()                                                               │

00:00:21 #820 [Debug] > │         let v65 : uint64 = System.Convert.ToUInt64 v58.Length                │

00:00:21 #821 [Debug] > │         let v66 : bool = v65 <= 1UL                                          │

00:00:21 #822 [Debug] > │         if v66 then                                                          │

00:00:21 #823 [Debug] > │             ()                                                               │

00:00:21 #824 [Debug] > │         else                                                                 │

00:00:21 #825 [Debug] > │             let v67 : string = v58.[int 0UL]                                 │

00:00:21 #826 [Debug] > │             let v68 : uint64 = 0UL                                           │

00:00:21 #827 [Debug] > │             let v69 : bool = method9(v67, v58, v68)                          │

00:00:21 #828 [Debug] > │             if v69 then                                                      │

00:00:21 #829 [Debug] > │                 ()                                                           │

00:00:21 #830 [Debug] > │             else                                                             │

00:00:21 #831 [Debug] > │                 let v70 : string = $"Challenge error: {v58}"                 │

00:00:21 #832 [Debug] > │                 failwith<unit> v70                                           │

00:00:21 #833 [Debug] > │         let v71 : string = $"%A{v17}"                                        │

00:00:21 #834 [Debug] > │         let v72 : (string []) = Array.zeroCreate<string>                     │

00:00:21 #835 [Debug] > │ (System.Convert.ToInt32(v57))                                                │

00:00:21 #836 [Debug] > │         let v73 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:00:21 #837 [Debug] > │         while method4(v57, v73) do                                           │

00:00:21 #838 [Debug] > │             let v75 : uint64 = v73.l0                                        │

00:00:21 #839 [Debug] > │             let struct (v76 : string, v77 : int64) = v31.[int v75]           │

00:00:21 #840 [Debug] > │             v72.[int v75] <- v76                                             │

00:00:21 #841 [Debug] > │             let v78 : uint64 = v75 + 1UL                                     │

00:00:21 #842 [Debug] > │             v73.l0 <- v78                                                    │

00:00:21 #843 [Debug] > │             ()                                                               │

00:00:21 #844 [Debug] > │         let v79 : string = v72.[int 0UL]                                     │

00:00:21 #845 [Debug] > │         let v80 : string = $"%A{v79}"                                        │

00:00:21 #846 [Debug] > │         let v81 : (int64 []) = Array.zeroCreate<int64>                       │

00:00:21 #847 [Debug] > │ (System.Convert.ToInt32(v57))                                                │

00:00:21 #848 [Debug] > │         let v82 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:00:21 #849 [Debug] > │         while method4(v57, v82) do                                           │

00:00:21 #850 [Debug] > │             let v84 : uint64 = v82.l0                                        │

00:00:21 #851 [Debug] > │             let struct (v85 : string, v86 : int64) = v31.[int v84]           │

00:00:21 #852 [Debug] > │             v81.[int v84] <- v86                                             │

00:00:21 #853 [Debug] > │             let v87 : uint64 = v84 + 1UL                                     │

00:00:21 #854 [Debug] > │             v82.l0 <- v87                                                    │

00:00:21 #855 [Debug] > │             ()                                                               │

00:00:21 #856 [Debug] > │         v11.[int v14] <- struct (v71, v18, v80, v81)                         │

00:00:21 #857 [Debug] > │         let v88 : uint64 = v14 + 1UL                                         │

00:00:21 #858 [Debug] > │         v12.l0 <- v88                                                        │

00:00:21 #859 [Debug] > │         ()                                                                   │

00:00:21 #860 [Debug] > │     let v89 : uint64 = System.Convert.ToUInt64 v11.Length                    │

00:00:21 #861 [Debug] > │     let v90 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * US0)> │

00:00:21 #862 [Debug] > │ (System.Convert.ToInt32(v89))                                                │

00:00:21 #863 [Debug] > │     let v91 : Mut0 = {l0 = 0UL} : Mut0                                       │

00:00:21 #864 [Debug] > │     while method4(v89, v91) do                                               │

00:00:21 #865 [Debug] > │         let v93 : uint64 = v91.l0                                            │

00:00:21 #866 [Debug] > │         let struct (v94 : string, v95 : string, v96 : string, v97 : (int64 [ │

00:00:21 #867 [Debug] > │ ])) = v11.[int v93]                                                          │

00:00:21 #868 [Debug] > │         let v98 : uint64 = System.Convert.ToUInt64 v97.Length                │

00:00:21 #869 [Debug] > │         let v99 : UH3 = UH3_1                                                │

00:00:21 #870 [Debug] > │         let v100 : Mut2 = {l0 = 0UL; l1 = v99; l2 = 0L} : Mut2               │

00:00:21 #871 [Debug] > │         while method10(v98, v100) do                                         │

00:00:21 #872 [Debug] > │             let v102 : uint64 = v100.l0                                      │

00:00:21 #873 [Debug] > │             let struct (v103 : UH3, v104 : int64) = v100.l1, v100.l2         │

00:00:21 #874 [Debug] > │             let v105 : int64 = v97.[int v102]                                │

00:00:21 #875 [Debug] > │             let v106 : int64 = v104 + 1L                                     │

00:00:21 #876 [Debug] > │             let v107 : uint64 = v102 + 1UL                                   │

00:00:21 #877 [Debug] > │             let v108 : UH3 = UH3_0(v104, v105, v103)                         │

00:00:21 #878 [Debug] > │             v100.l0 <- v107                                                  │

00:00:21 #879 [Debug] > │             v100.l1 <- v108                                                  │

00:00:21 #880 [Debug] > │             v100.l2 <- v106                                                  │

00:00:21 #881 [Debug] > │             ()                                                               │

00:00:21 #882 [Debug] > │         let struct (v109 : UH3, v110 : int64) = v100.l1, v100.l2             │

00:00:21 #883 [Debug] > │         let v111 : UH3 = UH3_1                                               │

00:00:21 #884 [Debug] > │         let v112 : UH3 = method11(v109, v111)                                │

00:00:21 #885 [Debug] > │         let v113 : (struct (int64 * int64) []) = method12(v112)              │

00:00:21 #886 [Debug] > │         let v114 : int32 = v113.Length                                       │

00:00:21 #887 [Debug] > │         let v115 : (struct (int64 * int64) []) = Array.zeroCreate<struct     │

00:00:21 #888 [Debug] > │ (int64 * int64)> (v114)                                                      │

00:00:21 #889 [Debug] > │         let v116 : Mut1 = {l0 = 0} : Mut1                                    │

00:00:21 #890 [Debug] > │         while method15(v114, v116) do                                        │

00:00:21 #891 [Debug] > │             let v118 : int32 = v116.l0                                       │

00:00:21 #892 [Debug] > │             let struct (v119 : int64, v120 : int64) = v113.[int v118]        │

00:00:21 #893 [Debug] > │             let v121 : int64 = v119 + 1L                                     │

00:00:21 #894 [Debug] > │             v115.[int v118] <- struct (v121, v120)                           │

00:00:21 #895 [Debug] > │             let v122 : int32 = v118 + 1                                      │

00:00:21 #896 [Debug] > │             v116.l0 <- v122                                                  │

00:00:21 #897 [Debug] > │             ()                                                               │

00:00:21 #898 [Debug] > │         let v123 : (struct (int64 * int64) -> int64) = closure6()            │

00:00:21 #899 [Debug] > │         let v124 : (struct (int64 * int64) []) = v115 |> Array.sortBy v123   │

00:00:21 #900 [Debug] > │         let struct (v125 : int64, v126 : int64) = v124.[int 0]               │

00:00:21 #901 [Debug] > │         let v127 : string = $"%A{struct (v125, v126)}"                       │

00:00:21 #902 [Debug] > │         let v128 : bool = v94 = v96                                          │

00:00:21 #903 [Debug] > │         let v133 : US0 =                                                     │

00:00:21 #904 [Debug] > │             if v128 then                                                     │

00:00:21 #905 [Debug] > │                 let v129 : System.ConsoleColor =                             │

00:00:21 #906 [Debug] > │ System.ConsoleColor.DarkGreen                                                │

00:00:21 #907 [Debug] > │                 US0_1(v129)                                                  │

00:00:21 #908 [Debug] > │             else                                                             │

00:00:21 #909 [Debug] > │                 let v131 : System.ConsoleColor = System.ConsoleColor.DarkRed │

00:00:21 #910 [Debug] > │                 US0_1(v131)                                                  │

00:00:21 #911 [Debug] > │         let v134 : UH2 = UH2_1                                               │

00:00:21 #912 [Debug] > │         let v135 : UH2 = UH2_0(v127, v134)                                   │

00:00:21 #913 [Debug] > │         let v136 : UH2 = UH2_0(v96, v135)                                    │

00:00:21 #914 [Debug] > │         let v137 : UH2 = UH2_0(v94, v136)                                    │

00:00:21 #915 [Debug] > │         let v138 : UH2 = UH2_0(v95, v137)                                    │

00:00:21 #916 [Debug] > │         v90.[int v93] <- struct (v138, v133)                                 │

00:00:21 #917 [Debug] > │         let v139 : uint64 = v93 + 1UL                                        │

00:00:21 #918 [Debug] > │         v91.l0 <- v139                                                       │

00:00:21 #919 [Debug] > │         ()                                                                   │

00:00:21 #920 [Debug] > │     let v140 : string = "Input"                                              │

00:00:21 #921 [Debug] > │     let v141 : string = "Expected"                                           │

00:00:21 #922 [Debug] > │     let v142 : string = "Result"                                             │

00:00:21 #923 [Debug] > │     let v143 : string = "Best"                                               │

00:00:21 #924 [Debug] > │     let v144 : UH2 = UH2_1                                                   │

00:00:21 #925 [Debug] > │     let v145 : UH2 = UH2_0(v143, v144)                                       │

00:00:21 #926 [Debug] > │     let v146 : UH2 = UH2_0(v142, v145)                                       │

00:00:21 #927 [Debug] > │     let v147 : UH2 = UH2_0(v141, v146)                                       │

00:00:21 #928 [Debug] > │     let v148 : UH2 = UH2_0(v140, v147)                                       │

00:00:21 #929 [Debug] > │     let v149 : US0 = US0_0                                                   │

00:00:21 #930 [Debug] > │     let v150 : string = "---"                                                │

00:00:21 #931 [Debug] > │     let v151 : UH2 = UH2_1                                                   │

00:00:21 #932 [Debug] > │     let v152 : UH2 = UH2_0(v150, v151)                                       │

00:00:21 #933 [Debug] > │     let v153 : UH2 = UH2_0(v150, v152)                                       │

00:00:21 #934 [Debug] > │     let v154 : UH2 = UH2_0(v150, v153)                                       │

00:00:21 #935 [Debug] > │     let v155 : UH2 = UH2_0(v150, v154)                                       │

00:00:21 #936 [Debug] > │     let v156 : US0 = US0_0                                                   │

00:00:21 #937 [Debug] > │     let v157 : UH4 = UH4_1                                                   │

00:00:21 #938 [Debug] > │     let v158 : UH4 = UH4_0(v155, v156, v157)                                 │

00:00:21 #939 [Debug] > │     let v159 : UH4 = UH4_0(v148, v149, v158)                                 │

00:00:21 #940 [Debug] > │     let v160 : (struct (UH2 * US0) []) = method16(v159)                      │

00:00:21 #941 [Debug] > │     let v161 : uint64 = System.Convert.ToUInt64 v160.Length                  │

00:00:21 #942 [Debug] > │     let v162 : uint64 = System.Convert.ToUInt64 v90.Length                   │

00:00:21 #943 [Debug] > │     let v163 : uint64 = v161 + v162                                          │

00:00:21 #944 [Debug] > │     let v164 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 *      │

00:00:21 #945 [Debug] > │ US0)> (System.Convert.ToInt32(v163))                                         │

00:00:21 #946 [Debug] > │     let v165 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:21 #947 [Debug] > │     while method4(v163, v165) do                                             │

00:00:21 #948 [Debug] > │         let v167 : uint64 = v165.l0                                          │

00:00:21 #949 [Debug] > │         let v168 : bool = v167 < v161                                        │

00:00:21 #950 [Debug] > │         let struct (v174 : UH2, v175 : US0) =                                │

00:00:21 #951 [Debug] > │             if v168 then                                                     │

00:00:21 #952 [Debug] > │                 let struct (v169 : UH2, v170 : US0) = v160.[int v167]        │

00:00:21 #953 [Debug] > │                 struct (v169, v170)                                          │

00:00:21 #954 [Debug] > │             else                                                             │

00:00:21 #955 [Debug] > │                 let v171 : uint64 = v167 - v161                              │

00:00:21 #956 [Debug] > │                 let struct (v172 : UH2, v173 : US0) = v90.[int v171]         │

00:00:21 #957 [Debug] > │                 struct (v172, v173)                                          │

00:00:21 #958 [Debug] > │         v164.[int v167] <- struct (v174, v175)                               │

00:00:21 #959 [Debug] > │         let v176 : uint64 = v167 + 1UL                                       │

00:00:21 #960 [Debug] > │         v165.l0 <- v176                                                      │

00:00:21 #961 [Debug] > │         ()                                                                   │

00:00:21 #962 [Debug] > │     let v177 : uint64 = System.Convert.ToUInt64 v164.Length                  │

00:00:21 #963 [Debug] > │     let v178 : ((string []) []) = Array.zeroCreate<(string [])>              │

00:00:21 #964 [Debug] > │ (System.Convert.ToInt32(v177))                                               │

00:00:21 #965 [Debug] > │     let v179 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:21 #966 [Debug] > │     while method4(v177, v179) do                                             │

00:00:21 #967 [Debug] > │         let v181 : uint64 = v179.l0                                          │

00:00:21 #968 [Debug] > │         let struct (v182 : UH2, v183 : US0) = v164.[int v181]                │

00:00:21 #969 [Debug] > │         let v184 : (string []) = method19(v182)                              │

00:00:21 #970 [Debug] > │         v178.[int v181] <- v184                                              │

00:00:21 #971 [Debug] > │         let v185 : uint64 = v181 + 1UL                                       │

00:00:21 #972 [Debug] > │         v179.l0 <- v185                                                      │

00:00:21 #973 [Debug] > │         ()                                                                   │

00:00:21 #974 [Debug] > │     let v186 : ((string []) []) = v178 |> Array.transpose                    │

00:00:21 #975 [Debug] > │     let v187 : uint64 = System.Convert.ToUInt64 v186.Length                  │

00:00:21 #976 [Debug] > │     let v188 : (int64 []) = Array.zeroCreate<int64>                          │

00:00:21 #977 [Debug] > │ (System.Convert.ToInt32(v187))                                               │

00:00:21 #978 [Debug] > │     let v189 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:21 #979 [Debug] > │     while method4(v187, v189) do                                             │

00:00:21 #980 [Debug] > │         let v191 : uint64 = v189.l0                                          │

00:00:21 #981 [Debug] > │         let v192 : (string []) = v186.[int v191]                             │

00:00:21 #982 [Debug] > │         let v193 : uint64 = System.Convert.ToUInt64 v192.Length              │

00:00:21 #983 [Debug] > │         let v194 : (int64 []) = Array.zeroCreate<int64>                      │

00:00:21 #984 [Debug] > │ (System.Convert.ToInt32(v193))                                               │

00:00:21 #985 [Debug] > │         let v195 : Mut0 = {l0 = 0UL} : Mut0                                  │

00:00:21 #986 [Debug] > │         while method4(v193, v195) do                                         │

00:00:21 #987 [Debug] > │             let v197 : uint64 = v195.l0                                      │

00:00:21 #988 [Debug] > │             let v198 : string = v192.[int v197]                              │

00:00:21 #989 [Debug] > │             let v199 : int64 = System.Convert.ToInt64 v198.Length            │

00:00:21 #990 [Debug] > │             v194.[int v197] <- v199                                          │

00:00:21 #991 [Debug] > │             let v200 : uint64 = v197 + 1UL                                   │

00:00:21 #992 [Debug] > │             v195.l0 <- v200                                                  │

00:00:21 #993 [Debug] > │             ()                                                               │

00:00:21 #994 [Debug] > │         let v201 : (int64 []) = v194 |> Array.sortDescending                 │

00:00:21 #995 [Debug] > │         let v202 : int64 option = v201 |> Array.tryItem 0                    │

00:00:21 #996 [Debug] > │         let v203 : (int64 -> US1) = closure7()                               │

00:00:21 #997 [Debug] > │         let v204 : US1 = US1_0                                               │

00:00:21 #998 [Debug] > │         let v205 : US1 = v202 |> Option.map v203 |> Option.defaultValue v204 │

00:00:21 #999 [Debug] > │         let v208 : int64 =                                                   │

00:00:21 #1000 [Debug] > │             match v205 with                                                  │

00:00:21 #1001 [Debug] > │             | US1_0 -> (* None *)                                            │

00:00:21 #1002 [Debug] > │                 0L                                                           │

00:00:21 #1003 [Debug] > │             | US1_1(v206) -> (* Some *)                                      │

00:00:21 #1004 [Debug] > │                 v206                                                         │

00:00:21 #1005 [Debug] > │         v188.[int v191] <- v208                                              │

00:00:21 #1006 [Debug] > │         let v209 : uint64 = v191 + 1UL                                       │

00:00:21 #1007 [Debug] > │         v189.l0 <- v209                                                      │

00:00:21 #1008 [Debug] > │         ()                                                                   │

00:00:21 #1009 [Debug] > │     let v210 : uint64 = System.Convert.ToUInt64 v188.Length                  │

00:00:21 #1010 [Debug] > │     let v211 : UH5 = UH5_1                                                   │

00:00:21 #1011 [Debug] > │     let v212 : Mut3 = {l0 = 0UL; l1 = v211; l2 = 0} : Mut3                   │

00:00:21 #1012 [Debug] > │     while method22(v210, v212) do                                            │

00:00:21 #1013 [Debug] > │         let v214 : uint64 = v212.l0                                          │

00:00:21 #1014 [Debug] > │         let struct (v215 : UH5, v216 : int32) = v212.l1, v212.l2             │

00:00:21 #1015 [Debug] > │         let v217 : int64 = v188.[int v214]                                   │

00:00:21 #1016 [Debug] > │         let v218 : int32 = v216 + 1                                          │

00:00:21 #1017 [Debug] > │         let v219 : uint64 = v214 + 1UL                                       │

00:00:21 #1018 [Debug] > │         let v220 : UH5 = UH5_0(v216, v217, v215)                             │

00:00:21 #1019 [Debug] > │         v212.l0 <- v219                                                      │

00:00:21 #1020 [Debug] > │         v212.l1 <- v220                                                      │

00:00:21 #1021 [Debug] > │         v212.l2 <- v218                                                      │

00:00:21 #1022 [Debug] > │         ()                                                                   │

00:00:21 #1023 [Debug] > │     let struct (v221 : UH5, v222 : int32) = v212.l1, v212.l2                 │

00:00:21 #1024 [Debug] > │     let v223 : UH5 = UH5_1                                                   │

00:00:21 #1025 [Debug] > │     let v224 : UH5 = method23(v221, v223)                                    │

00:00:21 #1026 [Debug] > │     let v225 : (struct (int32 * int64) []) = method24(v224)                  │

00:00:21 #1027 [Debug] > │     let v226 : Map<int32, int64> = v225 |> Array.map (fun (struct (a, b)) -> │

00:00:21 #1028 [Debug] > │ a, b) |> Map.ofArray                                                         │

00:00:21 #1029 [Debug] > │     let v227 : (struct ((string []) * US0) []) = Array.zeroCreate<struct     │

00:00:21 #1030 [Debug] > │ ((string []) * US0)> (System.Convert.ToInt32(v177))                          │

00:00:21 #1031 [Debug] > │     let v228 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:21 #1032 [Debug] > │     while method4(v177, v228) do                                             │

00:00:21 #1033 [Debug] > │         let v230 : uint64 = v228.l0                                          │

00:00:21 #1034 [Debug] > │         let struct (v231 : UH2, v232 : US0) = v164.[int v230]                │

00:00:21 #1035 [Debug] > │         let v233 : UH6 = UH6_1                                               │

00:00:21 #1036 [Debug] > │         let v234 : int32 = 0                                                 │

00:00:21 #1037 [Debug] > │         let struct (v235 : UH6, v236 : int32) = method27(v231, v233, v234)   │

00:00:21 #1038 [Debug] > │         let v237 : UH6 = UH6_1                                               │

00:00:21 #1039 [Debug] > │         let v238 : UH6 = method28(v235, v237)                                │

00:00:21 #1040 [Debug] > │         let v239 : UH2 = UH2_1                                               │

00:00:21 #1041 [Debug] > │         let v240 : UH2 = method29(v226, v238, v239)                          │

00:00:21 #1042 [Debug] > │         let v241 : (string []) = method30(v240)                              │

00:00:21 #1043 [Debug] > │         v227.[int v230] <- struct (v241, v232)                               │

00:00:21 #1044 [Debug] > │         let v242 : uint64 = v230 + 1UL                                       │

00:00:21 #1045 [Debug] > │         v228.l0 <- v242                                                      │

00:00:21 #1046 [Debug] > │         ()                                                                   │

00:00:21 #1047 [Debug] > │     System.Console.WriteLine v2                                              │

00:00:21 #1048 [Debug] > │     let v243 : uint64 = System.Convert.ToUInt64 v227.Length                  │

00:00:21 #1049 [Debug] > │     let v244 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:21 #1050 [Debug] > │     while method4(v243, v244) do                                             │

00:00:21 #1051 [Debug] > │         let v246 : uint64 = v244.l0                                          │

00:00:21 #1052 [Debug] > │         let struct (v247 : (string []), v248 : US0) = v227.[int v246]        │

00:00:21 #1053 [Debug] > │         match v248 with                                                      │

00:00:21 #1054 [Debug] > │         | US0_0 -> (* None *)                                                │

00:00:21 #1055 [Debug] > │             #if FABLE_COMPILER_RUST                                          │

00:00:21 #1056 [Debug] > │             let v252 : (unit -> unit) = closure8()                           │

00:00:21 #1057 [Debug] > │             v252 ()                                                          │

00:00:21 #1058 [Debug] > │             #else                                                            │

00:00:21 #1059 [Debug] > │             let v253 : (unit -> unit) = closure9()                           │

00:00:21 #1060 [Debug] > │             v253 ()                                                          │

00:00:21 #1061 [Debug] > │             #endif                                                           │

00:00:21 #1062 [Debug] > │             ()                                                               │

00:00:21 #1063 [Debug] > │         | US0_1(v249) -> (* Some *)                                          │

00:00:21 #1064 [Debug] > │             #if FABLE_COMPILER_RUST                                          │

00:00:21 #1065 [Debug] > │             let v250 : (unit -> unit) = closure10()                          │

00:00:21 #1066 [Debug] > │             v250 ()                                                          │

00:00:21 #1067 [Debug] > │             #else                                                            │

00:00:21 #1068 [Debug] > │             let v251 : (unit -> unit) = closure11(v249)                      │

00:00:21 #1069 [Debug] > │             v251 ()                                                          │

00:00:21 #1070 [Debug] > │             #endif                                                           │

00:00:21 #1071 [Debug] > │             ()                                                               │

00:00:21 #1072 [Debug] > │         let v254 : string = "\t| "                                           │

00:00:21 #1073 [Debug] > │         let v255 : string = System.String.Join (v254, v247)                  │

00:00:21 #1074 [Debug] > │         System.Console.WriteLine v255                                        │

00:00:21 #1075 [Debug] > │         #if FABLE_COMPILER_RUST                                              │

00:00:21 #1076 [Debug] > │         let v256 : (unit -> unit) = closure8()                               │

00:00:21 #1077 [Debug] > │         v256 ()                                                              │

00:00:21 #1078 [Debug] > │         #else                                                                │

00:00:21 #1079 [Debug] > │         let v257 : (unit -> unit) = closure9()                               │

00:00:21 #1080 [Debug] > │         v257 ()                                                              │

00:00:21 #1081 [Debug] > │         #endif                                                               │

00:00:21 #1082 [Debug] > │         let v258 : uint64 = v246 + 1UL                                       │

00:00:21 #1083 [Debug] > │         v244.l0 <- v258                                                      │

00:00:21 #1084 [Debug] > │         ()                                                                   │

00:00:21 #1085 [Debug] > │     let v259 : ((float []) []) = Array.zeroCreate<(float [])>                │

00:00:21 #1086 [Debug] > │ (System.Convert.ToInt32(v89))                                                │

00:00:21 #1087 [Debug] > │     let v260 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:21 #1088 [Debug] > │     while method4(v89, v260) do                                              │

00:00:21 #1089 [Debug] > │         let v262 : uint64 = v260.l0                                          │

00:00:21 #1090 [Debug] > │         let struct (v263 : string, v264 : string, v265 : string, v266 :      │

00:00:21 #1091 [Debug] > │ (int64 [])) = v11.[int v262]                                                 │

00:00:21 #1092 [Debug] > │         let v267 : (int64 -> float) = float                                  │

00:00:21 #1093 [Debug] > │         let v268 : uint64 = System.Convert.ToUInt64 v266.Length              │

00:00:21 #1094 [Debug] > │         let v269 : (float []) = Array.zeroCreate<float>                      │

00:00:21 #1095 [Debug] > │ (System.Convert.ToInt32(v268))                                               │

00:00:21 #1096 [Debug] > │         let v270 : Mut0 = {l0 = 0UL} : Mut0                                  │

00:00:21 #1097 [Debug] > │         while method4(v268, v270) do                                         │

00:00:21 #1098 [Debug] > │             let v272 : uint64 = v270.l0                                      │

00:00:21 #1099 [Debug] > │             let v273 : int64 = v266.[int v272]                               │

00:00:21 #1100 [Debug] > │             let v274 : float = v267 v273                                     │

00:00:21 #1101 [Debug] > │             v269.[int v272] <- v274                                          │

00:00:21 #1102 [Debug] > │             let v275 : uint64 = v272 + 1UL                                   │

00:00:21 #1103 [Debug] > │             v270.l0 <- v275                                                  │

00:00:21 #1104 [Debug] > │             ()                                                               │

00:00:21 #1105 [Debug] > │         v259.[int v262] <- v269                                              │

00:00:22 #1106 [Debug] > │         let v276 : uint64 = v262 + 1UL                                       │

00:00:22 #1107 [Debug] > │         v260.l0 <- v276                                                      │

00:00:22 #1108 [Debug] > │         ()                                                                   │

00:00:22 #1109 [Debug] > │     let v277 : ((float []) []) = v259 |> Array.transpose                     │

00:00:22 #1110 [Debug] > │     let v278 : uint64 = System.Convert.ToUInt64 v277.Length                  │

00:00:22 #1111 [Debug] > │     let v279 : (float []) = Array.zeroCreate<float>                          │

00:00:22 #1112 [Debug] > │ (System.Convert.ToInt32(v278))                                               │

00:00:22 #1113 [Debug] > │     let v280 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:22 #1114 [Debug] > │     while method4(v278, v280) do                                             │

00:00:22 #1115 [Debug] > │         let v282 : uint64 = v280.l0                                          │

00:00:22 #1116 [Debug] > │         let v283 : (float []) = v277.[int v282]                              │

00:00:22 #1117 [Debug] > │         let v284 : float = v283 |> Array.average                             │

00:00:22 #1118 [Debug] > │         v279.[int v282] <- v284                                              │

00:00:22 #1119 [Debug] > │         let v285 : uint64 = v282 + 1UL                                       │

00:00:22 #1120 [Debug] > │         v280.l0 <- v285                                                      │

00:00:22 #1121 [Debug] > │         ()                                                                   │

00:00:22 #1122 [Debug] > │     let v286 : (float -> int64) = int64                                      │

00:00:22 #1123 [Debug] > │     let v287 : uint64 = System.Convert.ToUInt64 v279.Length                  │

00:00:22 #1124 [Debug] > │     let v288 : (int64 []) = Array.zeroCreate<int64>                          │

00:00:22 #1125 [Debug] > │ (System.Convert.ToInt32(v287))                                               │

00:00:22 #1126 [Debug] > │     let v289 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:22 #1127 [Debug] > │     while method4(v287, v289) do                                             │

00:00:22 #1128 [Debug] > │         let v291 : uint64 = v289.l0                                          │

00:00:22 #1129 [Debug] > │         let v292 : float = v279.[int v291]                                   │

00:00:22 #1130 [Debug] > │         let v293 : int64 = v286 v292                                         │

00:00:22 #1131 [Debug] > │         v288.[int v291] <- v293                                              │

00:00:22 #1132 [Debug] > │         let v294 : uint64 = v291 + 1UL                                       │

00:00:22 #1133 [Debug] > │         v289.l0 <- v294                                                      │

00:00:22 #1134 [Debug] > │         ()                                                                   │

00:00:22 #1135 [Debug] > │     let v295 : uint64 = System.Convert.ToUInt64 v288.Length                  │

00:00:22 #1136 [Debug] > │     let v296 : UH5 = UH5_1                                                   │

00:00:22 #1137 [Debug] > │     let v297 : Mut3 = {l0 = 0UL; l1 = v296; l2 = 0} : Mut3                   │

00:00:22 #1138 [Debug] > │     while method22(v295, v297) do                                            │

00:00:22 #1139 [Debug] > │         let v299 : uint64 = v297.l0                                          │

00:00:22 #1140 [Debug] > │         let struct (v300 : UH5, v301 : int32) = v297.l1, v297.l2             │

00:00:22 #1141 [Debug] > │         let v302 : int64 = v288.[int v299]                                   │

00:00:22 #1142 [Debug] > │         let v303 : int32 = v301 + 1                                          │

00:00:22 #1143 [Debug] > │         let v304 : uint64 = v299 + 1UL                                       │

00:00:22 #1144 [Debug] > │         let v305 : UH5 = UH5_0(v301, v302, v300)                             │

00:00:22 #1145 [Debug] > │         v297.l0 <- v304                                                      │

00:00:22 #1146 [Debug] > │         v297.l1 <- v305                                                      │

00:00:22 #1147 [Debug] > │         v297.l2 <- v303                                                      │

00:00:22 #1148 [Debug] > │         ()                                                                   │

00:00:22 #1149 [Debug] > │     let struct (v306 : UH5, v307 : int32) = v297.l1, v297.l2                 │

00:00:22 #1150 [Debug] > │     let v308 : UH5 = UH5_1                                                   │

00:00:22 #1151 [Debug] > │     let v309 : UH5 = method23(v306, v308)                                    │

00:00:22 #1152 [Debug] > │     let v310 : (struct (int32 * int64) []) = method33(v309)                  │

00:00:22 #1153 [Debug] > │     System.Console.WriteLine v2                                              │

00:00:22 #1154 [Debug] > │     let v311 : string = "Average Ranking  "                                  │

00:00:22 #1155 [Debug] > │     System.Console.WriteLine v311                                            │

00:00:22 #1156 [Debug] > │     let v312 : (struct (int32 * int64) -> int64) = closure12()               │

00:00:22 #1157 [Debug] > │     let v313 : (struct (int32 * int64) []) = v310 |> Array.sortBy v312       │

00:00:22 #1158 [Debug] > │     let v314 : uint64 = System.Convert.ToUInt64 v313.Length                  │

00:00:22 #1159 [Debug] > │     let v315 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:22 #1160 [Debug] > │     while method4(v314, v315) do                                             │

00:00:22 #1161 [Debug] > │         let v317 : uint64 = v315.l0                                          │

00:00:22 #1162 [Debug] > │         let struct (v318 : int32, v319 : int64) = v313.[int v317]            │

00:00:22 #1163 [Debug] > │         let v320 : string = $"Test case %d{v318 + 1}. Average Time: %A{v319} │

00:00:22 #1164 [Debug] > │ "                                                                            │

00:00:22 #1165 [Debug] > │         System.Console.WriteLine v320                                        │

00:00:22 #1166 [Debug] > │         let v321 : uint64 = v317 + 1UL                                       │

00:00:22 #1167 [Debug] > │         v315.l0 <- v321                                                      │

00:00:22 #1168 [Debug] > │         ()                                                                   │

00:00:22 #1169 [Debug] > │     ()                                                                       │

00:00:22 #1170 [Debug] > │ and method0 () : unit =                                                      │

00:00:22 #1171 [Debug] > │     let v0 : (unit -> unit) = closure0()                                     │

00:00:22 #1172 [Debug] > │     let v1 : string = nameof v0                                              │

00:00:22 #1173 [Debug] > │     let v2 : string = ""                                                     │

00:00:22 #1174 [Debug] > │     System.Console.WriteLine v2                                              │

00:00:22 #1175 [Debug] > │     System.Console.WriteLine v2                                              │

00:00:22 #1176 [Debug] > │     let v3 : string = $"Test: {v1}"                                          │

00:00:22 #1177 [Debug] > │     System.Console.WriteLine v3                                              │

00:00:22 #1178 [Debug] > │     let v4 : string = "a"                                                    │

00:00:22 #1179 [Debug] > │     let v5 : string = "b"                                                    │

00:00:22 #1180 [Debug] > │     let v6 : UH0 = UH0_1                                                     │

00:00:22 #1181 [Debug] > │     let v7 : UH0 = UH0_0(v5, v5, v5, v6)                                     │

00:00:22 #1182 [Debug] > │     let v8 : UH0 = UH0_0(v4, v4, v4, v7)                                     │

00:00:22 #1183 [Debug] > │     let v9 : (struct (string * string * string) []) = method1(v8)            │

00:00:22 #1184 [Debug] > │     let v10 : uint64 = System.Convert.ToUInt64 v9.Length                     │

00:00:22 #1185 [Debug] > │     let v11 : (struct (string * string * string * (int64 [])) []) =          │

00:00:22 #1186 [Debug] > │ Array.zeroCreate<struct (string * string * string * (int64 []))>             │

00:00:22 #1187 [Debug] > │ (System.Convert.ToInt32(v10))                                                │

00:00:22 #1188 [Debug] > │     let v12 : Mut0 = {l0 = 0UL} : Mut0                                       │

00:00:22 #1189 [Debug] > │     while method4(v10, v12) do                                               │

00:00:22 #1190 [Debug] > │         let v14 : uint64 = v12.l0                                            │

00:00:22 #1191 [Debug] > │         let struct (v15 : string, v16 : string, v17 : string) = v9.[int v14] │

00:00:22 #1192 [Debug] > │         let v18 : string = $"%A{struct (v15, v16)}"                          │

00:00:22 #1193 [Debug] > │         System.Console.WriteLine v2                                          │

00:00:22 #1194 [Debug] > │         let v19 : string = $"Solution: {v18}  "                              │

00:00:22 #1195 [Debug] > │         System.Console.WriteLine v19                                         │

00:00:22 #1196 [Debug] > │         let v20 : int32 = 0                                                  │

00:00:22 #1197 [Debug] > │         let v21 : string = "A"                                               │

00:00:22 #1198 [Debug] > │         let v22 : (struct (string * string) -> string) = closure1()          │

00:00:22 #1199 [Debug] > │         let v23 : int32 = 1                                                  │

00:00:22 #1200 [Debug] > │         let v24 : string = "B"                                               │

00:00:22 #1201 [Debug] > │         let v25 : (struct (string * string) -> string) = closure2()          │

00:00:22 #1202 [Debug] > │         let v26 : UH1 = UH1_1                                                │

00:00:22 #1203 [Debug] > │         let v27 : UH1 = UH1_0(v23, v24, v25, v26)                            │

00:00:22 #1204 [Debug] > │         let v28 : UH1 = UH1_0(v20, v21, v22, v27)                            │

00:00:22 #1205 [Debug] > │         let v29 : (struct (int32 * string * (struct (string * string) ->     │

00:00:22 #1206 [Debug] > │ string)) []) = method5(v28)                                                  │

00:00:22 #1207 [Debug] > │         let v30 : uint64 = System.Convert.ToUInt64 v29.Length                │

00:00:22 #1208 [Debug] > │         let v31 : (struct (string * int64) []) = Array.zeroCreate<struct     │

00:00:22 #1209 [Debug] > │ (string * int64)> (System.Convert.ToInt32(v30))                              │

00:00:22 #1210 [Debug] > │         let v32 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:00:22 #1211 [Debug] > │         while method4(v30, v32) do                                           │

00:00:22 #1212 [Debug] > │             let v34 : uint64 = v32.l0                                        │

00:00:22 #1213 [Debug] > │             let struct (v35 : int32, v36 : string, v37 : (struct (string *   │

00:00:22 #1214 [Debug] > │ string) -> string)) = v29.[int v34]                                          │

00:00:22 #1215 [Debug] > │             #if FABLE_COMPILER_RUST                                          │

00:00:22 #1216 [Debug] > │             let v38 : (unit -> unit) = closure3()                            │

00:00:22 #1217 [Debug] > │             v38 ()                                                           │

00:00:22 #1218 [Debug] > │             #else                                                            │

00:00:22 #1219 [Debug] > │             let v39 : (unit -> unit) = closure4()                            │

00:00:22 #1220 [Debug] > │             v39 ()                                                           │

00:00:22 #1221 [Debug] > │             #endif                                                           │

00:00:22 #1222 [Debug] > │             let v40 : (unit -> System.Diagnostics.Stopwatch) =               │

00:00:22 #1223 [Debug] > │ System.Diagnostics.Stopwatch                                                 │

00:00:22 #1224 [Debug] > │             let v41 : System.Diagnostics.Stopwatch = v40 ()                  │

00:00:22 #1225 [Debug] > │             v41.Start ()                                                     │

00:00:22 #1226 [Debug] > │             let v42 : int64 = v41.ElapsedMilliseconds                        │

00:00:22 #1227 [Debug] > │             let v43 : (int32 []) = Array.zeroCreate<int32> (2000001)         │

00:00:22 #1228 [Debug] > │             let v44 : Mut1 = {l0 = 0} : Mut1                                 │

00:00:22 #1229 [Debug] > │             while method8(v44) do                                            │

00:00:22 #1230 [Debug] > │                 let v46 : int32 = v44.l0                                     │

00:00:22 #1231 [Debug] > │                 v43.[int v46] <- v46                                         │

00:00:22 #1232 [Debug] > │                 let v47 : int32 = v46 + 1                                    │

00:00:22 #1233 [Debug] > │                 v44.l0 <- v47                                                │

00:00:22 #1234 [Debug] > │                 ()                                                           │

00:00:22 #1235 [Debug] > │             let v48 : (int32 -> string) = closure5(v15, v16, v37)            │

00:00:22 #1236 [Debug] > │             let v49 : (string []) = v43 |> Array.Parallel.map v48            │

00:00:22 #1237 [Debug] > │             let v50 : int32 = v49.Length                                     │

00:00:22 #1238 [Debug] > │             let v51 : int32 = v50 - 1                                        │

00:00:22 #1239 [Debug] > │             let v52 : string = v49.[int v51]                                 │

00:00:22 #1240 [Debug] > │             let v53 : int64 = v41.ElapsedMilliseconds                        │

00:00:22 #1241 [Debug] > │             let v54 : int64 = v53 - v42                                      │

00:00:22 #1242 [Debug] > │             let v55 : string = $"Test case {v35 + 1}. {v36}. Time: {v54}  "  │

00:00:22 #1243 [Debug] > │             System.Console.WriteLine v55                                     │

00:00:22 #1244 [Debug] > │             v31.[int v34] <- struct (v52, v54)                               │

00:00:22 #1245 [Debug] > │             let v56 : uint64 = v34 + 1UL                                     │

00:00:22 #1246 [Debug] > │             v32.l0 <- v56                                                    │

00:00:22 #1247 [Debug] > │             ()                                                               │

00:00:22 #1248 [Debug] > │         let v57 : uint64 = System.Convert.ToUInt64 v31.Length                │

00:00:22 #1249 [Debug] > │         let v58 : (string []) = Array.zeroCreate<string>                     │

00:00:22 #1250 [Debug] > │ (System.Convert.ToInt32(v57))                                                │

00:00:22 #1251 [Debug] > │         let v59 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:00:22 #1252 [Debug] > │         while method4(v57, v59) do                                           │

00:00:22 #1253 [Debug] > │             let v61 : uint64 = v59.l0                                        │

00:00:22 #1254 [Debug] > │             let struct (v62 : string, v63 : int64) = v31.[int v61]           │

00:00:22 #1255 [Debug] > │             v58.[int v61] <- v62                                             │

00:00:22 #1256 [Debug] > │             let v64 : uint64 = v61 + 1UL                                     │

00:00:22 #1257 [Debug] > │             v59.l0 <- v64                                                    │

00:00:22 #1258 [Debug] > │             ()                                                               │

00:00:22 #1259 [Debug] > │         let v65 : uint64 = System.Convert.ToUInt64 v58.Length                │

00:00:22 #1260 [Debug] > │         let v66 : bool = v65 <= 1UL                                          │

00:00:22 #1261 [Debug] > │         if v66 then                                                          │

00:00:22 #1262 [Debug] > │             ()                                                               │

00:00:22 #1263 [Debug] > │         else                                                                 │

00:00:22 #1264 [Debug] > │             let v67 : string = v58.[int 0UL]                                 │

00:00:22 #1265 [Debug] > │             let v68 : uint64 = 0UL                                           │

00:00:22 #1266 [Debug] > │             let v69 : bool = method9(v67, v58, v68)                          │

00:00:22 #1267 [Debug] > │             if v69 then                                                      │

00:00:22 #1268 [Debug] > │                 ()                                                           │

00:00:22 #1269 [Debug] > │             else                                                             │

00:00:22 #1270 [Debug] > │                 let v70 : string = $"Challenge error: {v58}"                 │

00:00:22 #1271 [Debug] > │                 failwith<unit> v70                                           │

00:00:22 #1272 [Debug] > │         let v71 : string = $"%A{v17}"                                        │

00:00:22 #1273 [Debug] > │         let v72 : (string []) = Array.zeroCreate<string>                     │

00:00:22 #1274 [Debug] > │ (System.Convert.ToInt32(v57))                                                │

00:00:22 #1275 [Debug] > │         let v73 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:00:22 #1276 [Debug] > │         while method4(v57, v73) do                                           │

00:00:22 #1277 [Debug] > │             let v75 : uint64 = v73.l0                                        │

00:00:22 #1278 [Debug] > │             let struct (v76 : string, v77 : int64) = v31.[int v75]           │

00:00:22 #1279 [Debug] > │             v72.[int v75] <- v76                                             │

00:00:22 #1280 [Debug] > │             let v78 : uint64 = v75 + 1UL                                     │

00:00:22 #1281 [Debug] > │             v73.l0 <- v78                                                    │

00:00:22 #1282 [Debug] > │             ()                                                               │

00:00:22 #1283 [Debug] > │         let v79 : string = v72.[int 0UL]                                     │

00:00:22 #1284 [Debug] > │         let v80 : string = $"%A{v79}"                                        │

00:00:22 #1285 [Debug] > │         let v81 : (int64 []) = Array.zeroCreate<int64>                       │

00:00:22 #1286 [Debug] > │ (System.Convert.ToInt32(v57))                                                │

00:00:22 #1287 [Debug] > │         let v82 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:00:22 #1288 [Debug] > │         while method4(v57, v82) do                                           │

00:00:22 #1289 [Debug] > │             let v84 : uint64 = v82.l0                                        │

00:00:22 #1290 [Debug] > │             let struct (v85 : string, v86 : int64) = v31.[int v84]           │

00:00:22 #1291 [Debug] > │             v81.[int v84] <- v86                                             │

00:00:22 #1292 [Debug] > │             let v87 : uint64 = v84 + 1UL                                     │

00:00:22 #1293 [Debug] > │             v82.l0 <- v87                                                    │

00:00:22 #1294 [Debug] > │             ()                                                               │

00:00:22 #1295 [Debug] > │         v11.[int v14] <- struct (v71, v18, v80, v81)                         │

00:00:22 #1296 [Debug] > │         let v88 : uint64 = v14 + 1UL                                         │

00:00:22 #1297 [Debug] > │         v12.l0 <- v88                                                        │

00:00:22 #1298 [Debug] > │         ()                                                                   │

00:00:22 #1299 [Debug] > │     let v89 : uint64 = System.Convert.ToUInt64 v11.Length                    │

00:00:22 #1300 [Debug] > │     let v90 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * US0)> │

00:00:22 #1301 [Debug] > │ (System.Convert.ToInt32(v89))                                                │

00:00:22 #1302 [Debug] > │     let v91 : Mut0 = {l0 = 0UL} : Mut0                                       │

00:00:22 #1303 [Debug] > │     while method4(v89, v91) do                                               │

00:00:22 #1304 [Debug] > │         let v93 : uint64 = v91.l0                                            │

00:00:22 #1305 [Debug] > │         let struct (v94 : string, v95 : string, v96 : string, v97 : (int64 [ │

00:00:22 #1306 [Debug] > │ ])) = v11.[int v93]                                                          │

00:00:22 #1307 [Debug] > │         let v98 : uint64 = System.Convert.ToUInt64 v97.Length                │

00:00:22 #1308 [Debug] > │         let v99 : UH3 = UH3_1                                                │

00:00:22 #1309 [Debug] > │         let v100 : Mut2 = {l0 = 0UL; l1 = v99; l2 = 0L} : Mut2               │

00:00:22 #1310 [Debug] > │         while method10(v98, v100) do                                         │

00:00:22 #1311 [Debug] > │             let v102 : uint64 = v100.l0                                      │

00:00:22 #1312 [Debug] > │             let struct (v103 : UH3, v104 : int64) = v100.l1, v100.l2         │

00:00:22 #1313 [Debug] > │             let v105 : int64 = v97.[int v102]                                │

00:00:22 #1314 [Debug] > │             let v106 : int64 = v104 + 1L                                     │

00:00:22 #1315 [Debug] > │             let v107 : uint64 = v102 + 1UL                                   │

00:00:22 #1316 [Debug] > │             let v108 : UH3 = UH3_0(v104, v105, v103)                         │

00:00:22 #1317 [Debug] > │             v100.l0 <- v107                                                  │

00:00:22 #1318 [Debug] > │             v100.l1 <- v108                                                  │

00:00:22 #1319 [Debug] > │             v100.l2 <- v106                                                  │

00:00:22 #1320 [Debug] > │             ()                                                               │

00:00:22 #1321 [Debug] > │         let struct (v109 : UH3, v110 : int64) = v100.l1, v100.l2             │

00:00:22 #1322 [Debug] > │         let v111 : UH3 = UH3_1                                               │

00:00:22 #1323 [Debug] > │         let v112 : UH3 = method11(v109, v111)                                │

00:00:22 #1324 [Debug] > │         let v113 : (struct (int64 * int64) []) = method12(v112)              │

00:00:22 #1325 [Debug] > │         let v114 : int32 = v113.Length                                       │

00:00:22 #1326 [Debug] > │         let v115 : (struct (int64 * int64) []) = Array.zeroCreate<struct     │

00:00:22 #1327 [Debug] > │ (int64 * int64)> (v114)                                                      │

00:00:22 #1328 [Debug] > │         let v116 : Mut1 = {l0 = 0} : Mut1                                    │

00:00:22 #1329 [Debug] > │         while method15(v114, v116) do                                        │

00:00:22 #1330 [Debug] > │             let v118 : int32 = v116.l0                                       │

00:00:22 #1331 [Debug] > │             let struct (v119 : int64, v120 : int64) = v113.[int v118]        │

00:00:22 #1332 [Debug] > │             let v121 : int64 = v119 + 1L                                     │

00:00:22 #1333 [Debug] > │             v115.[int v118] <- struct (v121, v120)                           │

00:00:22 #1334 [Debug] > │             let v122 : int32 = v118 + 1                                      │

00:00:22 #1335 [Debug] > │             v116.l0 <- v122                                                  │

00:00:22 #1336 [Debug] > │             ()                                                               │

00:00:22 #1337 [Debug] > │         let v123 : (struct (int64 * int64) -> int64) = closure6()            │

00:00:22 #1338 [Debug] > │         let v124 : (struct (int64 * int64) []) = v115 |> Array.sortBy v123   │

00:00:22 #1339 [Debug] > │         let struct (v125 : int64, v126 : int64) = v124.[int 0]               │

00:00:22 #1340 [Debug] > │         let v127 : string = $"%A{struct (v125, v126)}"                       │

00:00:22 #1341 [Debug] > │         let v128 : bool = v94 = v96                                          │

00:00:22 #1342 [Debug] > │         let v133 : US0 =                                                     │

00:00:22 #1343 [Debug] > │             if v128 then                                                     │

00:00:22 #1344 [Debug] > │                 let v129 : System.ConsoleColor =                             │

00:00:22 #1345 [Debug] > │ System.ConsoleColor.DarkGreen                                                │

00:00:22 #1346 [Debug] > │                 US0_1(v129)                                                  │

00:00:22 #1347 [Debug] > │             else                                                             │

00:00:22 #1348 [Debug] > │                 let v131 : System.ConsoleColor = System.ConsoleColor.DarkRed │

00:00:22 #1349 [Debug] > │                 US0_1(v131)                                                  │

00:00:22 #1350 [Debug] > │         let v134 : UH2 = UH2_1                                               │

00:00:22 #1351 [Debug] > │         let v135 : UH2 = UH2_0(v127, v134)                                   │

00:00:22 #1352 [Debug] > │         let v136 : UH2 = UH2_0(v96, v135)                                    │

00:00:22 #1353 [Debug] > │         let v137 : UH2 = UH2_0(v94, v136)                                    │

00:00:22 #1354 [Debug] > │         let v138 : UH2 = UH2_0(v95, v137)                                    │

00:00:22 #1355 [Debug] > │         v90.[int v93] <- struct (v138, v133)                                 │

00:00:22 #1356 [Debug] > │         let v139 : uint64 = v93 + 1UL                                        │

00:00:22 #1357 [Debug] > │         v91.l0 <- v139                                                       │

00:00:22 #1358 [Debug] > │         ()                                                                   │

00:00:22 #1359 [Debug] > │     let v140 : string = "Input"                                              │

00:00:22 #1360 [Debug] > │     let v141 : string = "Expected"                                           │

00:00:22 #1361 [Debug] > │     let v142 : string = "Result"                                             │

00:00:22 #1362 [Debug] > │     let v143 : string = "Best"                                               │

00:00:22 #1363 [Debug] > │     let v144 : UH2 = UH2_1                                                   │

00:00:22 #1364 [Debug] > │     let v145 : UH2 = UH2_0(v143, v144)                                       │

00:00:22 #1365 [Debug] > │     let v146 : UH2 = UH2_0(v142, v145)                                       │

00:00:22 #1366 [Debug] > │     let v147 : UH2 = UH2_0(v141, v146)                                       │

00:00:22 #1367 [Debug] > │     let v148 : UH2 = UH2_0(v140, v147)                                       │

00:00:22 #1368 [Debug] > │     let v149 : US0 = US0_0                                                   │

00:00:22 #1369 [Debug] > │     let v150 : string = "---"                                                │

00:00:22 #1370 [Debug] > │     let v151 : UH2 = UH2_1                                                   │

00:00:22 #1371 [Debug] > │     let v152 : UH2 = UH2_0(v150, v151)                                       │

00:00:22 #1372 [Debug] > │     let v153 : UH2 = UH2_0(v150, v152)                                       │

00:00:22 #1373 [Debug] > │     let v154 : UH2 = UH2_0(v150, v153)                                       │

00:00:22 #1374 [Debug] > │     let v155 : UH2 = UH2_0(v150, v154)                                       │

00:00:22 #1375 [Debug] > │     let v156 : US0 = US0_0                                                   │

00:00:22 #1376 [Debug] > │     let v157 : UH4 = UH4_1                                                   │

00:00:22 #1377 [Debug] > │     let v158 : UH4 = UH4_0(v155, v156, v157)                                 │

00:00:22 #1378 [Debug] > │     let v159 : UH4 = UH4_0(v148, v149, v158)                                 │

00:00:22 #1379 [Debug] > │     let v160 : (struct (UH2 * US0) []) = method16(v159)                      │

00:00:22 #1380 [Debug] > │     let v161 : uint64 = System.Convert.ToUInt64 v160.Length                  │

00:00:22 #1381 [Debug] > │     let v162 : uint64 = System.Convert.ToUInt64 v90.Length                   │

00:00:22 #1382 [Debug] > │     let v163 : uint64 = v161 + v162                                          │

00:00:22 #1383 [Debug] > │     let v164 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 *      │

00:00:22 #1384 [Debug] > │ US0)> (System.Convert.ToInt32(v163))                                         │

00:00:22 #1385 [Debug] > │     let v165 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:22 #1386 [Debug] > │     while method4(v163, v165) do                                             │

00:00:22 #1387 [Debug] > │         let v167 : uint64 = v165.l0                                          │

00:00:22 #1388 [Debug] > │         let v168 : bool = v167 < v161                                        │

00:00:22 #1389 [Debug] > │         let struct (v174 : UH2, v175 : US0) =                                │

00:00:22 #1390 [Debug] > │             if v168 then                                                     │

00:00:22 #1391 [Debug] > │                 let struct (v169 : UH2, v170 : US0) = v160.[int v167]        │

00:00:22 #1392 [Debug] > │                 struct (v169, v170)                                          │

00:00:22 #1393 [Debug] > │             else                                                             │

00:00:22 #1394 [Debug] > │                 let v171 : uint64 = v167 - v161                              │

00:00:22 #1395 [Debug] > │                 let struct (v172 : UH2, v173 : US0) = v90.[int v171]         │

00:00:22 #1396 [Debug] > │                 struct (v172, v173)                                          │

00:00:22 #1397 [Debug] > │         v164.[int v167] <- struct (v174, v175)                               │

00:00:22 #1398 [Debug] > │         let v176 : uint64 = v167 + 1UL                                       │

00:00:22 #1399 [Debug] > │         v165.l0 <- v176                                                      │

00:00:22 #1400 [Debug] > │         ()                                                                   │

00:00:22 #1401 [Debug] > │     let v177 : uint64 = System.Convert.ToUInt64 v164.Length                  │

00:00:22 #1402 [Debug] > │     let v178 : ((string []) []) = Array.zeroCreate<(string [])>              │

00:00:22 #1403 [Debug] > │ (System.Convert.ToInt32(v177))                                               │

00:00:22 #1404 [Debug] > │     let v179 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:22 #1405 [Debug] > │     while method4(v177, v179) do                                             │

00:00:22 #1406 [Debug] > │         let v181 : uint64 = v179.l0                                          │

00:00:22 #1407 [Debug] > │         let struct (v182 : UH2, v183 : US0) = v164.[int v181]                │

00:00:22 #1408 [Debug] > │         let v184 : (string []) = method19(v182)                              │

00:00:22 #1409 [Debug] > │         v178.[int v181] <- v184                                              │

00:00:22 #1410 [Debug] > │         let v185 : uint64 = v181 + 1UL                                       │

00:00:22 #1411 [Debug] > │         v179.l0 <- v185                                                      │

00:00:22 #1412 [Debug] > │         ()                                                                   │

00:00:22 #1413 [Debug] > │     let v186 : ((string []) []) = v178 |> Array.transpose                    │

00:00:22 #1414 [Debug] > │     let v187 : uint64 = System.Convert.ToUInt64 v186.Length                  │

00:00:22 #1415 [Debug] > │     let v188 : (int64 []) = Array.zeroCreate<int64>                          │

00:00:22 #1416 [Debug] > │ (System.Convert.ToInt32(v187))                                               │

00:00:22 #1417 [Debug] > │     let v189 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:22 #1418 [Debug] > │     while method4(v187, v189) do                                             │

00:00:22 #1419 [Debug] > │         let v191 : uint64 = v189.l0                                          │

00:00:22 #1420 [Debug] > │         let v192 : (string []) = v186.[int v191]                             │

00:00:22 #1421 [Debug] > │         let v193 : uint64 = System.Convert.ToUInt64 v192.Length              │

00:00:22 #1422 [Debug] > │         let v194 : (int64 []) = Array.zeroCreate<int64>                      │

00:00:22 #1423 [Debug] > │ (System.Convert.ToInt32(v193))                                               │

00:00:22 #1424 [Debug] > │         let v195 : Mut0 = {l0 = 0UL} : Mut0                                  │

00:00:22 #1425 [Debug] > │         while method4(v193, v195) do                                         │

00:00:22 #1426 [Debug] > │             let v197 : uint64 = v195.l0                                      │

00:00:22 #1427 [Debug] > │             let v198 : string = v192.[int v197]                              │

00:00:22 #1428 [Debug] > │             let v199 : int64 = System.Convert.ToInt64 v198.Length            │

00:00:22 #1429 [Debug] > │             v194.[int v197] <- v199                                          │

00:00:22 #1430 [Debug] > │             let v200 : uint64 = v197 + 1UL                                   │

00:00:22 #1431 [Debug] > │             v195.l0 <- v200                                                  │

00:00:22 #1432 [Debug] > │             ()                                                               │

00:00:22 #1433 [Debug] > │         let v201 : (int64 []) = v194 |> Array.sortDescending                 │

00:00:22 #1434 [Debug] > │         let v202 : int64 option = v201 |> Array.tryItem 0                    │

00:00:22 #1435 [Debug] > │         let v203 : (int64 -> US1) = closure7()                               │

00:00:22 #1436 [Debug] > │         let v204 : US1 = US1_0                                               │

00:00:22 #1437 [Debug] > │         let v205 : US1 = v202 |> Option.map v203 |> Option.defaultValue v204 │

00:00:22 #1438 [Debug] > │         let v208 : int64 =                                                   │

00:00:22 #1439 [Debug] > │             match v205 with                                                  │

00:00:22 #1440 [Debug] > │             | US1_0 -> (* None *)                                            │

00:00:22 #1441 [Debug] > │                 0L                                                           │

00:00:22 #1442 [Debug] > │             | US1_1(v206) -> (* Some *)                                      │

00:00:22 #1443 [Debug] > │                 v206                                                         │

00:00:22 #1444 [Debug] > │         v188.[int v191] <- v208                                              │

00:00:22 #1445 [Debug] > │         let v209 : uint64 = v191 + 1UL                                       │

00:00:22 #1446 [Debug] > │         v189.l0 <- v209                                                      │

00:00:22 #1447 [Debug] > │         ()                                                                   │

00:00:22 #1448 [Debug] > │     let v210 : uint64 = System.Convert.ToUInt64 v188.Length                  │

00:00:22 #1449 [Debug] > │     let v211 : UH5 = UH5_1                                                   │

00:00:22 #1450 [Debug] > │     let v212 : Mut3 = {l0 = 0UL; l1 = v211; l2 = 0} : Mut3                   │

00:00:22 #1451 [Debug] > │     while method22(v210, v212) do                                            │

00:00:22 #1452 [Debug] > │         let v214 : uint64 = v212.l0                                          │

00:00:22 #1453 [Debug] > │         let struct (v215 : UH5, v216 : int32) = v212.l1, v212.l2             │

00:00:22 #1454 [Debug] > │         let v217 : int64 = v188.[int v214]                                   │

00:00:22 #1455 [Debug] > │         let v218 : int32 = v216 + 1                                          │

00:00:22 #1456 [Debug] > │         let v219 : uint64 = v214 + 1UL                                       │

00:00:22 #1457 [Debug] > │         let v220 : UH5 = UH5_0(v216, v217, v215)                             │

00:00:22 #1458 [Debug] > │         v212.l0 <- v219                                                      │

00:00:22 #1459 [Debug] > │         v212.l1 <- v220                                                      │

00:00:22 #1460 [Debug] > │         v212.l2 <- v218                                                      │

00:00:22 #1461 [Debug] > │         ()                                                                   │

00:00:22 #1462 [Debug] > │     let struct (v221 : UH5, v222 : int32) = v212.l1, v212.l2                 │

00:00:22 #1463 [Debug] > │     let v223 : UH5 = UH5_1                                                   │

00:00:22 #1464 [Debug] > │     let v224 : UH5 = method23(v221, v223)                                    │

00:00:22 #1465 [Debug] > │     let v225 : (struct (int32 * int64) []) = method24(v224)                  │

00:00:22 #1466 [Debug] > │     let v226 : Map<int32, int64> = v225 |> Array.map (fun (struct (a, b)) -> │

00:00:22 #1467 [Debug] > │ a, b) |> Map.ofArray                                                         │

00:00:22 #1468 [Debug] > │     let v227 : (struct ((string []) * US0) []) = Array.zeroCreate<struct     │

00:00:22 #1469 [Debug] > │ ((string []) * US0)> (System.Convert.ToInt32(v177))                          │

00:00:22 #1470 [Debug] > │     let v228 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:22 #1471 [Debug] > │     while method4(v177, v228) do                                             │

00:00:22 #1472 [Debug] > │         let v230 : uint64 = v228.l0                                          │

00:00:22 #1473 [Debug] > │         let struct (v231 : UH2, v232 : US0) = v164.[int v230]                │

00:00:22 #1474 [Debug] > │         let v233 : UH6 = UH6_1                                               │

00:00:22 #1475 [Debug] > │         let v234 : int32 = 0                                                 │

00:00:22 #1476 [Debug] > │         let struct (v235 : UH6, v236 : int32) = method27(v231, v233, v234)   │

00:00:22 #1477 [Debug] > │         let v237 : UH6 = UH6_1                                               │

00:00:22 #1478 [Debug] > │         let v238 : UH6 = method28(v235, v237)                                │

00:00:22 #1479 [Debug] > │         let v239 : UH2 = UH2_1                                               │

00:00:22 #1480 [Debug] > │         let v240 : UH2 = method29(v226, v238, v239)                          │

00:00:22 #1481 [Debug] > │         let v241 : (string []) = method30(v240)                              │

00:00:22 #1482 [Debug] > │         v227.[int v230] <- struct (v241, v232)                               │

00:00:22 #1483 [Debug] > │         let v242 : uint64 = v230 + 1UL                                       │

00:00:22 #1484 [Debug] > │         v228.l0 <- v242                                                      │

00:00:22 #1485 [Debug] > │         ()                                                                   │

00:00:22 #1486 [Debug] > │     System.Console.WriteLine v2                                              │

00:00:22 #1487 [Debug] > │     let v243 : uint64 = System.Convert.ToUInt64 v227.Length                  │

00:00:22 #1488 [Debug] > │     let v244 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:22 #1489 [Debug] > │     while method4(v243, v244) do                                             │

00:00:22 #1490 [Debug] > │         let v246 : uint64 = v244.l0                                          │

00:00:22 #1491 [Debug] > │         let struct (v247 : (string []), v248 : US0) = v227.[int v246]        │

00:00:22 #1492 [Debug] > │         match v248 with                                                      │

00:00:22 #1493 [Debug] > │         | US0_0 -> (* None *)                                                │

00:00:22 #1494 [Debug] > │             #if FABLE_COMPILER_RUST                                          │

00:00:22 #1495 [Debug] > │             let v252 : (unit -> unit) = closure8()                           │

00:00:22 #1496 [Debug] > │             v252 ()                                                          │

00:00:22 #1497 [Debug] > │             #else                                                            │

00:00:22 #1498 [Debug] > │             let v253 : (unit -> unit) = closure9()                           │

00:00:22 #1499 [Debug] > │             v253 ()                                                          │

00:00:22 #1500 [Debug] > │             #endif                                                           │

00:00:22 #1501 [Debug] > │             ()                                                               │

00:00:22 #1502 [Debug] > │         | US0_1(v249) -> (* Some *)                                          │

00:00:22 #1503 [Debug] > │             #if FABLE_COMPILER_RUST                                          │

00:00:22 #1504 [Debug] > │             let v250 : (unit -> unit) = closure10()                          │

00:00:22 #1505 [Debug] > │             v250 ()                                                          │

00:00:22 #1506 [Debug] > │             #else                                                            │

00:00:22 #1507 [Debug] > │             let v251 : (unit -> unit) = closure11(v249)                      │

00:00:22 #1508 [Debug] > │             v251 ()                                                          │

00:00:22 #1509 [Debug] > │             #endif                                                           │

00:00:22 #1510 [Debug] > │             ()                                                               │

00:00:22 #1511 [Debug] > │         let v254 : string = "\t| "                                           │

00:00:22 #1512 [Debug] > │         let v255 : string = System.String.Join (v254, v247)                  │

00:00:22 #1513 [Debug] > │         System.Console.WriteLine v255                                        │

00:00:22 #1514 [Debug] > │         #if FABLE_COMPILER_RUST                                              │

00:00:22 #1515 [Debug] > │         let v256 : (unit -> unit) = closure8()                               │

00:00:22 #1516 [Debug] > │         v256 ()                                                              │

00:00:22 #1517 [Debug] > │         #else                                                                │

00:00:22 #1518 [Debug] > │         let v257 : (unit -> unit) = closure9()                               │

00:00:22 #1519 [Debug] > │         v257 ()                                                              │

00:00:22 #1520 [Debug] > │         #endif                                                               │

00:00:22 #1521 [Debug] > │         let v258 : uint64 = v246 + 1UL                                       │

00:00:22 #1522 [Debug] > │         v244.l0 <- v258                                                      │

00:00:22 #1523 [Debug] > │         ()                                                                   │

00:00:22 #1524 [Debug] > │     let v259 : ((float []) []) = Array.zeroCreate<(float [])>                │

00:00:22 #1525 [Debug] > │ (System.Convert.ToInt32(v89))                                                │

00:00:22 #1526 [Debug] > │     let v260 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:22 #1527 [Debug] > │     while method4(v89, v260) do                                              │

00:00:22 #1528 [Debug] > │         let v262 : uint64 = v260.l0                                          │

00:00:22 #1529 [Debug] > │         let struct (v263 : string, v264 : string, v265 : string, v266 :      │

00:00:22 #1530 [Debug] > │ (int64 [])) = v11.[int v262]                                                 │

00:00:22 #1531 [Debug] > │         let v267 : (int64 -> float) = float                                  │

00:00:22 #1532 [Debug] > │         let v268 : uint64 = System.Convert.ToUInt64 v266.Length              │

00:00:22 #1533 [Debug] > │         let v269 : (float []) = Array.zeroCreate<float>                      │

00:00:22 #1534 [Debug] > │ (System.Convert.ToInt32(v268))                                               │

00:00:22 #1535 [Debug] > │         let v270 : Mut0 = {l0 = 0UL} : Mut0                                  │

00:00:22 #1536 [Debug] > │         while method4(v268, v270) do                                         │

00:00:22 #1537 [Debug] > │             let v272 : uint64 = v270.l0                                      │

00:00:22 #1538 [Debug] > │             let v273 : int64 = v266.[int v272]                               │

00:00:22 #1539 [Debug] > │             let v274 : float = v267 v273                                     │

00:00:22 #1540 [Debug] > │             v269.[int v272] <- v274                                          │

00:00:22 #1541 [Debug] > │             let v275 : uint64 = v272 + 1UL                                   │

00:00:22 #1542 [Debug] > │             v270.l0 <- v275                                                  │

00:00:22 #1543 [Debug] > │             ()                                                               │

00:00:22 #1544 [Debug] > │         v259.[int v262] <- v269                                              │

00:00:22 #1545 [Debug] > │         let v276 : uint64 = v262 + 1UL                                       │

00:00:22 #1546 [Debug] > │         v260.l0 <- v276                                                      │

00:00:22 #1547 [Debug] > │         ()                                                                   │

00:00:22 #1548 [Debug] > │     let v277 : ((float []) []) = v259 |> Array.transpose                     │

00:00:22 #1549 [Debug] > │     let v278 : uint64 = System.Convert.ToUInt64 v277.Length                  │

00:00:22 #1550 [Debug] > │     let v279 : (float []) = Array.zeroCreate<float>                          │

00:00:22 #1551 [Debug] > │ (System.Convert.ToInt32(v278))                                               │

00:00:22 #1552 [Debug] > │     let v280 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:22 #1553 [Debug] > │     while method4(v278, v280) do                                             │

00:00:22 #1554 [Debug] > │         let v282 : uint64 = v280.l0                                          │

00:00:22 #1555 [Debug] > │         let v283 : (float []) = v277.[int v282]                              │

00:00:22 #1556 [Debug] > │         let v284 : float = v283 |> Array.average                             │

00:00:22 #1557 [Debug] > │         v279.[int v282] <- v284                                              │

00:00:22 #1558 [Debug] > │         let v285 : uint64 = v282 + 1UL                                       │

00:00:22 #1559 [Debug] > │         v280.l0 <- v285                                                      │

00:00:22 #1560 [Debug] > │         ()                                                                   │

00:00:22 #1561 [Debug] > │     let v286 : (float -> int64) = int64                                      │

00:00:22 #1562 [Debug] > │     let v287 : uint64 = System.Convert.ToUInt64 v279.Length                  │

00:00:22 #1563 [Debug] > │     let v288 : (int64 []) = Array.zeroCreate<int64>                          │

00:00:22 #1564 [Debug] > │ (System.Convert.ToInt32(v287))                                               │

00:00:22 #1565 [Debug] > │     let v289 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:22 #1566 [Debug] > │     while method4(v287, v289) do                                             │

00:00:22 #1567 [Debug] > │         let v291 : uint64 = v289.l0                                          │

00:00:22 #1568 [Debug] > │         let v292 : float = v279.[int v291]                                   │

00:00:22 #1569 [Debug] > │         let v293 : int64 = v286 v292                                         │

00:00:22 #1570 [Debug] > │         v288.[int v291] <- v293                                              │

00:00:22 #1571 [Debug] > │         let v294 : uint64 = v291 + 1UL                                       │

00:00:22 #1572 [Debug] > │         v289.l0 <- v294                                                      │

00:00:22 #1573 [Debug] > │         ()                                                                   │

00:00:22 #1574 [Debug] > │     let v295 : uint64 = System.Convert.ToUInt64 v288.Length                  │

00:00:22 #1575 [Debug] > │     let v296 : UH5 = UH5_1                                                   │

00:00:22 #1576 [Debug] > │     let v297 : Mut3 = {l0 = 0UL; l1 = v296; l2 = 0} : Mut3                   │

00:00:22 #1577 [Debug] > │     while method22(v295, v297) do                                            │

00:00:22 #1578 [Debug] > │         let v299 : uint64 = v297.l0                                          │

00:00:22 #1579 [Debug] > │         let struct (v300 : UH5, v301 : int32) = v297.l1, v297.l2             │

00:00:22 #1580 [Debug] > │         let v302 : int64 = v288.[int v299]                                   │

00:00:22 #1581 [Debug] > │         let v303 : int32 = v301 + 1                                          │

00:00:22 #1582 [Debug] > │         let v304 : uint64 = v299 + 1UL                                       │

00:00:22 #1583 [Debug] > │         let v305 : UH5 = UH5_0(v301, v302, v300)                             │

00:00:22 #1584 [Debug] > │         v297.l0 <- v304                                                      │

00:00:22 #1585 [Debug] > │         v297.l1 <- v305                                                      │

00:00:22 #1586 [Debug] > │         v297.l2 <- v303                                                      │

00:00:22 #1587 [Debug] > │         ()                                                                   │

00:00:22 #1588 [Debug] > │     let struct (v306 : UH5, v307 : int32) = v297.l1, v297.l2                 │

00:00:22 #1589 [Debug] > │     let v308 : UH5 = UH5_1                                                   │

00:00:22 #1590 [Debug] > │     let v309 : UH5 = method23(v306, v308)                                    │

00:00:22 #1591 [Debug] > │     let v310 : (struct (int32 * int64) []) = method33(v309)                  │

00:00:22 #1592 [Debug] > │     System.Console.WriteLine v2                                              │

00:00:22 #1593 [Debug] > │     let v311 : string = "Average Ranking  "                                  │

00:00:22 #1594 [Debug] > │     System.Console.WriteLine v311                                            │

00:00:22 #1595 [Debug] > │     let v312 : (struct (int32 * int64) -> int64) = closure12()               │

00:00:22 #1596 [Debug] > │     let v313 : (struct (int32 * int64) []) = v310 |> Array.sortBy v312       │

00:00:22 #1597 [Debug] > │     let v314 : uint64 = System.Convert.ToUInt64 v313.Length                  │

00:00:22 #1598 [Debug] > │     let v315 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:22 #1599 [Debug] > │     while method4(v314, v315) do                                             │

00:00:22 #1600 [Debug] > │         let v317 : uint64 = v315.l0                                          │

00:00:22 #1601 [Debug] > │         let struct (v318 : int32, v319 : int64) = v313.[int v317]            │

00:00:22 #1602 [Debug] > │         let v320 : string = $"Test case %d{v318 + 1}. Average Time: %A{v319} │

00:00:22 #1603 [Debug] > │ "                                                                            │

00:00:22 #1604 [Debug] > │         System.Console.WriteLine v320                                        │

00:00:22 #1605 [Debug] > │         let v321 : uint64 = v317 + 1UL                                       │

00:00:22 #1606 [Debug] > │         v315.l0 <- v321                                                      │

00:00:22 #1607 [Debug] > │         ()                                                                   │

00:00:22 #1608 [Debug] > │     ()                                                                       │

00:00:22 #1609 [Debug] > │ method0()                                                                    │

00:00:22 #1610 [Debug] > │                                                                              │

00:00:22 #1611 [Debug] > │                                                                              │

00:00:22 #1612 [Debug] > │                                                                              │

00:00:22 #1613 [Debug] > │ Test: v0                                                                     │

00:00:22 #1614 [Debug] > │                                                                              │

00:00:22 #1615 [Debug] > │ Solution: struct ("a", "a")                                                  │

00:00:22 #1616 [Debug] > │ Test case 1. A. Time: 118                                                    │

00:00:22 #1617 [Debug] > │ Test case 2. B. Time: 108                                                    │

00:00:22 #1618 [Debug] > │                                                                              │

00:00:22 #1619 [Debug] > │ Solution: struct ("b", "b")                                                  │

00:00:22 #1620 [Debug] > │ Test case 1. A. Time: 112                                                    │

00:00:22 #1621 [Debug] > │ Test case 2. B. Time: 115                                                    │

00:00:22 #1622 [Debug] > │                                                                              │

00:00:22 #1623 [Debug] > │ Input            	| Expected	| Result	| Best                                       │

00:00:22 #1624 [Debug] > │ ---              	| ---     	| ---   	| ---                                        │

00:00:22 #1625 [Debug] > │ struct ("a", "a")	| "a"     	| "a"   	| struct (2L, 108L)                          │

00:00:22 #1626 [Debug] > │ struct ("b", "b")	| "b"     	| "b"   	| struct (1L, 112L)                          │

00:00:22 #1627 [Debug] > │                                                                              │

00:00:22 #1628 [Debug] > │ Average Ranking                                                              │

00:00:22 #1629 [Debug] > │ Test case 2. Average Time: 111L                                              │

00:00:22 #1630 [Debug] > │ Test case 1. Average Time: 115L                                              │

00:00:22 #1631 [Debug] > │                                                                              │

00:00:22 #1632 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:22 #1633 [Debug] >

00:00:22 #1634 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:22 #1635 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:22 #1636 [Debug] > │ ## emptyTests                                                                │

00:00:22 #1637 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:22 #1638 [Debug] >

00:00:22 #1639 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:22 #1640 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:22 #1641 [Debug] > │ Test: Empty                                                                  │

00:00:22 #1642 [Debug] > │                                                                              │

00:00:22 #1643 [Debug] > │ Solution: 0                                                                  │

00:00:22 #1644 [Debug] > │ Test case 1. A. Time: 61L                                                    │

00:00:22 #1645 [Debug] > │                                                                              │

00:00:22 #1646 [Debug] > │ Solution: 2                                                                  │

00:00:22 #1647 [Debug] > │ Test case 1. A. Time: 62L                                                    │

00:00:22 #1648 [Debug] > │                                                                              │

00:00:22 #1649 [Debug] > │ Solution: 5                                                                  │

00:00:22 #1650 [Debug] > │ Test case 1. A. Time: 70L                                                    │

00:00:22 #1651 [Debug] > │                                                                              │

00:00:22 #1652 [Debug] > │ Input   | Expected        | Result  | Best                                   │

00:00:22 #1653 [Debug] > │ ---     | ---             | ---     | ---                                    │

00:00:22 #1654 [Debug] > │ 0       | 0               | 0       | (1, 61)                                │

00:00:22 #1655 [Debug] > │ 2       | 2               | 2       | (1, 62)                                │

00:00:22 #1656 [Debug] > │ 5       | 5               | 5       | (1, 70)                                │

00:00:22 #1657 [Debug] > │                                                                              │

00:00:22 #1658 [Debug] > │ Averages                                                                     │

00:00:22 #1659 [Debug] > │ Test case 1. Average Time: 64L                                               │

00:00:22 #1660 [Debug] > │                                                                              │

00:00:22 #1661 [Debug] > │ Ranking                                                                      │

00:00:22 #1662 [Debug] > │ Test case 1. Average Time: 64L                                               │

00:00:22 #1663 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:22 #1664 [Debug] >

00:00:22 #1665 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:22 #1666 [Debug] > // // test

00:00:22 #1667 [Debug] >

00:00:22 #1668 [Debug] > inl get_solutions () =

00:00:22 #1669 [Debug] >     [[

00:00:22 #1670 [Debug] >         "A",

00:00:22 #1671 [Debug] >         fun n =>

00:00:22 #1672 [Debug] >             n + 1f64

00:00:22 #1673 [Debug] >     ]]

00:00:22 #1674 [Debug] >

00:00:22 #1675 [Debug] > inl rec empty_1_tests () =

00:00:22 #1676 [Debug] >     inl test_cases = [[

00:00:22 #1677 [Debug] >         0, 1

00:00:22 #1678 [Debug] >         2, 3

00:00:22 #1679 [Debug] >         5, 6

00:00:22 #1680 [Debug] >     ]]

00:00:22 #1681 [Debug] >

00:00:22 #1682 [Debug] >     inl solutions = get_solutions ()

00:00:22 #1683 [Debug] >

00:00:22 #1684 [Debug] >     // inl is_fast () = true

00:00:22 #1685 [Debug] >

00:00:22 #1686 [Debug] >     inl count =

00:00:22 #1687 [Debug] >         if is_fast ()

00:00:22 #1688 [Debug] >         then 1000i32

00:00:22 #1689 [Debug] >         else 2000000i32

00:00:22 #1690 [Debug] >

00:00:22 #1691 [Debug] >     run_all (nameof empty_1_tests) count solutions test_cases

00:00:22 #1692 [Debug] >     |> sort_result_list

00:00:22 #1693 [Debug] >

00:00:22 #1694 [Debug] > empty_1_tests ()

00:00:22 #1695 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-1688-8849-87e9a0700d9d\main.spi

00:00:27 #1696 [Debug] >

00:00:27 #1697 [Debug] > ╭─[ 5.70s - stdout ]───────────────────────────────────────────────────────────╮

00:00:27 #1698 [Debug] > │ type UH0 =                                                                   │

00:00:27 #1699 [Debug] > │     | UH0_0 of float * float * UH0                                           │

00:00:27 #1700 [Debug] > │     | UH0_1                                                                  │

00:00:27 #1701 [Debug] > │ and Mut0 = {mutable l0 : uint64}                                             │

00:00:27 #1702 [Debug] > │ and UH1 =                                                                    │

00:00:27 #1703 [Debug] > │     | UH1_0 of int32 * string * (float -> float) * UH1                       │

00:00:27 #1704 [Debug] > │     | UH1_1                                                                  │

00:00:27 #1705 [Debug] > │ and Mut1 = {mutable l0 : int32}                                              │

00:00:27 #1706 [Debug] > │ and UH2 =                                                                    │

00:00:27 #1707 [Debug] > │     | UH2_0 of string * UH2                                                  │

00:00:27 #1708 [Debug] > │     | UH2_1                                                                  │

00:00:27 #1709 [Debug] > │ and [<Struct>] US0 =                                                         │

00:00:27 #1710 [Debug] > │     | US0_0                                                                  │

00:00:27 #1711 [Debug] > │     | US0_1 of f1_0 : System.ConsoleColor                                    │

00:00:27 #1712 [Debug] > │ and UH3 =                                                                    │

00:00:27 #1713 [Debug] > │     | UH3_0 of int64 * int64 * UH3                                           │

00:00:27 #1714 [Debug] > │     | UH3_1                                                                  │

00:00:27 #1715 [Debug] > │ and Mut2 = {mutable l0 : uint64; mutable l1 : UH3; mutable l2 : int64}       │

00:00:27 #1716 [Debug] > │ and UH4 =                                                                    │

00:00:27 #1717 [Debug] > │     | UH4_0 of UH2 * US0 * UH4                                               │

00:00:27 #1718 [Debug] > │     | UH4_1                                                                  │

00:00:27 #1719 [Debug] > │ and [<Struct>] US1 =                                                         │

00:00:27 #1720 [Debug] > │     | US1_0                                                                  │

00:00:27 #1721 [Debug] > │     | US1_1 of f1_0 : int64                                                  │

00:00:27 #1722 [Debug] > │ and UH5 =                                                                    │

00:00:27 #1723 [Debug] > │     | UH5_0 of int32 * int64 * UH5                                           │

00:00:27 #1724 [Debug] > │     | UH5_1                                                                  │

00:00:27 #1725 [Debug] > │ and Mut3 = {mutable l0 : uint64; mutable l1 : UH5; mutable l2 : int32}       │

00:00:27 #1726 [Debug] > │ and UH6 =                                                                    │

00:00:27 #1727 [Debug] > │     | UH6_0 of int32 * string * UH6                                          │

00:00:27 #1728 [Debug] > │     | UH6_1                                                                  │

00:00:27 #1729 [Debug] > │ let rec method2 (v0 : UH0, v1 : uint64) : uint64 =                           │

00:00:27 #1730 [Debug] > │     match v0 with                                                            │

00:00:27 #1731 [Debug] > │     | UH0_0(v2, v3, v4) -> (* Cons *)                                        │

00:00:27 #1732 [Debug] > │         let v5 : uint64 = v1 + 1UL                                           │

00:00:27 #1733 [Debug] > │         method2(v4, v5)                                                      │

00:00:27 #1734 [Debug] > │     | UH0_1 -> (* Nil *)                                                     │

00:00:27 #1735 [Debug] > │         v1                                                                   │

00:00:27 #1736 [Debug] > │ and method3 (v0 : (struct (float * float) []), v1 : UH0, v2 : uint64) :      │

00:00:27 #1737 [Debug] > │ uint64 =                                                                     │

00:00:27 #1738 [Debug] > │     match v1 with                                                            │

00:00:27 #1739 [Debug] > │     | UH0_0(v3, v4, v5) -> (* Cons *)                                        │

00:00:27 #1740 [Debug] > │         v0.[int v2] <- struct (v3, v4)                                       │

00:00:27 #1741 [Debug] > │         let v6 : uint64 = v2 + 1UL                                           │

00:00:27 #1742 [Debug] > │         method3(v0, v5, v6)                                                  │

00:00:27 #1743 [Debug] > │     | UH0_1 -> (* Nil *)                                                     │

00:00:27 #1744 [Debug] > │         v2                                                                   │

00:00:27 #1745 [Debug] > │ and method1 (v0 : UH0) : (struct (float * float) []) =                       │

00:00:27 #1746 [Debug] > │     let v1 : uint64 = 0UL                                                    │

00:00:27 #1747 [Debug] > │     let v2 : uint64 = method2(v0, v1)                                        │

00:00:27 #1748 [Debug] > │     let v3 : (struct (float * float) []) = Array.zeroCreate<struct (float *  │

00:00:27 #1749 [Debug] > │ float)> (System.Convert.ToInt32(v2))                                         │

00:00:27 #1750 [Debug] > │     let v4 : uint64 = 0UL                                                    │

00:00:27 #1751 [Debug] > │     let v5 : uint64 = method3(v3, v0, v4)                                    │

00:00:27 #1752 [Debug] > │     v3                                                                       │

00:00:27 #1753 [Debug] > │ and method4 (v0 : uint64, v1 : Mut0) : bool =                                │

00:00:27 #1754 [Debug] > │     let v2 : uint64 = v1.l0                                                  │

00:00:27 #1755 [Debug] > │     let v3 : bool = v2 < v0                                                  │

00:00:27 #1756 [Debug] > │     v3                                                                       │

00:00:27 #1757 [Debug] > │ and closure1 () (v0 : float) : float =                                       │

00:00:27 #1758 [Debug] > │     let v1 : float = v0 + 1.0                                                │

00:00:27 #1759 [Debug] > │     v1                                                                       │

00:00:27 #1760 [Debug] > │ and method6 (v0 : UH1, v1 : uint64) : uint64 =                               │

00:00:27 #1761 [Debug] > │     match v0 with                                                            │

00:00:27 #1762 [Debug] > │     | UH1_0(v2, v3, v4, v5) -> (* Cons *)                                    │

00:00:27 #1763 [Debug] > │         let v6 : uint64 = v1 + 1UL                                           │

00:00:27 #1764 [Debug] > │         method6(v5, v6)                                                      │

00:00:27 #1765 [Debug] > │     | UH1_1 -> (* Nil *)                                                     │

00:00:27 #1766 [Debug] > │         v1                                                                   │

00:00:27 #1767 [Debug] > │ and method7 (v0 : (struct (int32 * string * (float -> float)) []), v1 : UH1, │

00:00:27 #1768 [Debug] > │ v2 : uint64) : uint64 =                                                      │

00:00:27 #1769 [Debug] > │     match v1 with                                                            │

00:00:27 #1770 [Debug] > │     | UH1_0(v3, v4, v5, v6) -> (* Cons *)                                    │

00:00:27 #1771 [Debug] > │         v0.[int v2] <- struct (v3, v4, v5)                                   │

00:00:27 #1772 [Debug] > │         let v7 : uint64 = v2 + 1UL                                           │

00:00:27 #1773 [Debug] > │         method7(v0, v6, v7)                                                  │

00:00:27 #1774 [Debug] > │     | UH1_1 -> (* Nil *)                                                     │

00:00:27 #1775 [Debug] > │         v2                                                                   │

00:00:27 #1776 [Debug] > │ and method5 (v0 : UH1) : (struct (int32 * string * (float -> float)) []) =   │

00:00:27 #1777 [Debug] > │     let v1 : uint64 = 0UL                                                    │

00:00:27 #1778 [Debug] > │     let v2 : uint64 = method6(v0, v1)                                        │

00:00:27 #1779 [Debug] > │     let v3 : (struct (int32 * string * (float -> float)) []) =               │

00:00:27 #1780 [Debug] > │ Array.zeroCreate<struct (int32 * string * (float -> float))>                 │

00:00:27 #1781 [Debug] > │ (System.Convert.ToInt32(v2))                                                 │

00:00:27 #1782 [Debug] > │     let v4 : uint64 = 0UL                                                    │

00:00:27 #1783 [Debug] > │     let v5 : uint64 = method7(v3, v0, v4)                                    │

00:00:27 #1784 [Debug] > │     v3                                                                       │

00:00:27 #1785 [Debug] > │ and closure2 () () : unit =                                                  │

00:00:27 #1786 [Debug] > │     ()                                                                       │

00:00:27 #1787 [Debug] > │ and closure3 () () : unit =                                                  │

00:00:27 #1788 [Debug] > │     System.GC.Collect ()                                                     │

00:00:27 #1789 [Debug] > │     ()                                                                       │

00:00:27 #1790 [Debug] > │ and method8 (v0 : Mut1) : bool =                                             │

00:00:27 #1791 [Debug] > │     let v1 : int32 = v0.l0                                                   │

00:00:27 #1792 [Debug] > │     let v2 : bool = v1 < 2000001                                             │

00:00:27 #1793 [Debug] > │     v2                                                                       │

00:00:27 #1794 [Debug] > │ and closure4 (v0 : float, v1 : (float -> float)) (v2 : int32) : float =      │

00:00:27 #1795 [Debug] > │     v1 v0                                                                    │

00:00:27 #1796 [Debug] > │ and method9 (v0 : float, v1 : (float []), v2 : uint64) : bool =              │

00:00:27 #1797 [Debug] > │     let v3 : uint64 = System.Convert.ToUInt64 v1.Length                      │

00:00:27 #1798 [Debug] > │     let v4 : bool = v2 < v3                                                  │

00:00:27 #1799 [Debug] > │     if v4 then                                                               │

00:00:27 #1800 [Debug] > │         let v5 : float = v1.[int v2]                                         │

00:00:27 #1801 [Debug] > │         let v6 : bool = v0 = v5                                              │

00:00:27 #1802 [Debug] > │         if v6 then                                                           │

00:00:27 #1803 [Debug] > │             let v7 : uint64 = v2 + 1UL                                       │

00:00:27 #1804 [Debug] > │             method9(v0, v1, v7)                                              │

00:00:27 #1805 [Debug] > │         else                                                                 │

00:00:27 #1806 [Debug] > │             false                                                            │

00:00:27 #1807 [Debug] > │     else                                                                     │

00:00:27 #1808 [Debug] > │         true                                                                 │

00:00:27 #1809 [Debug] > │ and method10 (v0 : uint64, v1 : Mut2) : bool =                               │

00:00:27 #1810 [Debug] > │     let v2 : uint64 = v1.l0                                                  │

00:00:27 #1811 [Debug] > │     let v3 : bool = v2 < v0                                                  │

00:00:27 #1812 [Debug] > │     v3                                                                       │

00:00:27 #1813 [Debug] > │ and method11 (v0 : UH3, v1 : UH3) : UH3 =                                    │

00:00:27 #1814 [Debug] > │     match v0 with                                                            │

00:00:27 #1815 [Debug] > │     | UH3_0(v2, v3, v4) -> (* Cons *)                                        │

00:00:27 #1816 [Debug] > │         let v5 : UH3 = UH3_0(v2, v3, v1)                                     │

00:00:27 #1817 [Debug] > │         method11(v4, v5)                                                     │

00:00:27 #1818 [Debug] > │     | UH3_1 -> (* Nil *)                                                     │

00:00:27 #1819 [Debug] > │         v1                                                                   │

00:00:27 #1820 [Debug] > │ and method13 (v0 : UH3, v1 : int32) : int32 =                                │

00:00:27 #1821 [Debug] > │     match v0 with                                                            │

00:00:27 #1822 [Debug] > │     | UH3_0(v2, v3, v4) -> (* Cons *)                                        │

00:00:27 #1823 [Debug] > │         let v5 : int32 = v1 + 1                                              │

00:00:27 #1824 [Debug] > │         method13(v4, v5)                                                     │

00:00:27 #1825 [Debug] > │     | UH3_1 -> (* Nil *)                                                     │

00:00:27 #1826 [Debug] > │         v1                                                                   │

00:00:27 #1827 [Debug] > │ and method14 (v0 : (struct (int64 * int64) []), v1 : UH3, v2 : int32) :      │

00:00:27 #1828 [Debug] > │ int32 =                                                                      │

00:00:27 #1829 [Debug] > │     match v1 with                                                            │

00:00:27 #1830 [Debug] > │     | UH3_0(v3, v4, v5) -> (* Cons *)                                        │

00:00:27 #1831 [Debug] > │         v0.[int v2] <- struct (v3, v4)                                       │

00:00:27 #1832 [Debug] > │         let v6 : int32 = v2 + 1                                              │

00:00:27 #1833 [Debug] > │         method14(v0, v5, v6)                                                 │

00:00:27 #1834 [Debug] > │     | UH3_1 -> (* Nil *)                                                     │

00:00:27 #1835 [Debug] > │         v2                                                                   │

00:00:27 #1836 [Debug] > │ and method12 (v0 : UH3) : (struct (int64 * int64) []) =                      │

00:00:27 #1837 [Debug] > │     let v1 : int32 = 0                                                       │

00:00:27 #1838 [Debug] > │     let v2 : int32 = method13(v0, v1)                                        │

00:00:27 #1839 [Debug] > │     let v3 : (struct (int64 * int64) []) = Array.zeroCreate<struct (int64 *  │

00:00:27 #1840 [Debug] > │ int64)> (v2)                                                                 │

00:00:28 #1841 [Debug] > │     let v4 : int32 = 0                                                       │

00:00:28 #1842 [Debug] > │     let v5 : int32 = method14(v3, v0, v4)                                    │

00:00:28 #1843 [Debug] > │     v3                                                                       │

00:00:28 #1844 [Debug] > │ and method15 (v0 : int32, v1 : Mut1) : bool =                                │

00:00:28 #1845 [Debug] > │     let v2 : int32 = v1.l0                                                   │

00:00:28 #1846 [Debug] > │     let v3 : bool = v2 < v0                                                  │

00:00:28 #1847 [Debug] > │     v3                                                                       │

00:00:28 #1848 [Debug] > │ and closure5 () struct (v0 : int64, v1 : int64) : int64 =                    │

00:00:28 #1849 [Debug] > │     v1                                                                       │

00:00:28 #1850 [Debug] > │ and method17 (v0 : UH4, v1 : uint64) : uint64 =                              │

00:00:28 #1851 [Debug] > │     match v0 with                                                            │

00:00:28 #1852 [Debug] > │     | UH4_0(v2, v3, v4) -> (* Cons *)                                        │

00:00:28 #1853 [Debug] > │         let v5 : uint64 = v1 + 1UL                                           │

00:00:28 #1854 [Debug] > │         method17(v4, v5)                                                     │

00:00:28 #1855 [Debug] > │     | UH4_1 -> (* Nil *)                                                     │

00:00:28 #1856 [Debug] > │         v1                                                                   │

00:00:28 #1857 [Debug] > │ and method18 (v0 : (struct (UH2 * US0) []), v1 : UH4, v2 : uint64) : uint64  │

00:00:28 #1858 [Debug] > │ =                                                                            │

00:00:28 #1859 [Debug] > │     match v1 with                                                            │

00:00:28 #1860 [Debug] > │     | UH4_0(v3, v4, v5) -> (* Cons *)                                        │

00:00:28 #1861 [Debug] > │         v0.[int v2] <- struct (v3, v4)                                       │

00:00:28 #1862 [Debug] > │         let v6 : uint64 = v2 + 1UL                                           │

00:00:28 #1863 [Debug] > │         method18(v0, v5, v6)                                                 │

00:00:28 #1864 [Debug] > │     | UH4_1 -> (* Nil *)                                                     │

00:00:28 #1865 [Debug] > │         v2                                                                   │

00:00:28 #1866 [Debug] > │ and method16 (v0 : UH4) : (struct (UH2 * US0) []) =                          │

00:00:28 #1867 [Debug] > │     let v1 : uint64 = 0UL                                                    │

00:00:28 #1868 [Debug] > │     let v2 : uint64 = method17(v0, v1)                                       │

00:00:28 #1869 [Debug] > │     let v3 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * US0)>  │

00:00:28 #1870 [Debug] > │ (System.Convert.ToInt32(v2))                                                 │

00:00:28 #1871 [Debug] > │     let v4 : uint64 = 0UL                                                    │

00:00:28 #1872 [Debug] > │     let v5 : uint64 = method18(v3, v0, v4)                                   │

00:00:28 #1873 [Debug] > │     v3                                                                       │

00:00:28 #1874 [Debug] > │ and method20 (v0 : UH2, v1 : uint64) : uint64 =                              │

00:00:28 #1875 [Debug] > │     match v0 with                                                            │

00:00:28 #1876 [Debug] > │     | UH2_0(v2, v3) -> (* Cons *)                                            │

00:00:28 #1877 [Debug] > │         let v4 : uint64 = v1 + 1UL                                           │

00:00:28 #1878 [Debug] > │         method20(v3, v4)                                                     │

00:00:28 #1879 [Debug] > │     | UH2_1 -> (* Nil *)                                                     │

00:00:28 #1880 [Debug] > │         v1                                                                   │

00:00:28 #1881 [Debug] > │ and method21 (v0 : (string []), v1 : UH2, v2 : uint64) : uint64 =            │

00:00:28 #1882 [Debug] > │     match v1 with                                                            │

00:00:28 #1883 [Debug] > │     | UH2_0(v3, v4) -> (* Cons *)                                            │

00:00:28 #1884 [Debug] > │         v0.[int v2] <- v3                                                    │

00:00:28 #1885 [Debug] > │         let v5 : uint64 = v2 + 1UL                                           │

00:00:28 #1886 [Debug] > │         method21(v0, v4, v5)                                                 │

00:00:28 #1887 [Debug] > │     | UH2_1 -> (* Nil *)                                                     │

00:00:28 #1888 [Debug] > │         v2                                                                   │

00:00:28 #1889 [Debug] > │ and method19 (v0 : UH2) : (string []) =                                      │

00:00:28 #1890 [Debug] > │     let v1 : uint64 = 0UL                                                    │

00:00:28 #1891 [Debug] > │     let v2 : uint64 = method20(v0, v1)                                       │

00:00:28 #1892 [Debug] > │     let v3 : (string []) = Array.zeroCreate<string>                          │

00:00:28 #1893 [Debug] > │ (System.Convert.ToInt32(v2))                                                 │

00:00:28 #1894 [Debug] > │     let v4 : uint64 = 0UL                                                    │

00:00:28 #1895 [Debug] > │     let v5 : uint64 = method21(v3, v0, v4)                                   │

00:00:28 #1896 [Debug] > │     v3                                                                       │

00:00:28 #1897 [Debug] > │ and closure6 () (v0 : int64) : US1 =                                         │

00:00:28 #1898 [Debug] > │     US1_1(v0)                                                                │

00:00:28 #1899 [Debug] > │ and method22 (v0 : uint64, v1 : Mut3) : bool =                               │

00:00:28 #1900 [Debug] > │     let v2 : uint64 = v1.l0                                                  │

00:00:28 #1901 [Debug] > │     let v3 : bool = v2 < v0                                                  │

00:00:28 #1902 [Debug] > │     v3                                                                       │

00:00:28 #1903 [Debug] > │ and method23 (v0 : UH5, v1 : UH5) : UH5 =                                    │

00:00:28 #1904 [Debug] > │     match v0 with                                                            │

00:00:28 #1905 [Debug] > │     | UH5_0(v2, v3, v4) -> (* Cons *)                                        │

00:00:28 #1906 [Debug] > │         let v5 : UH5 = UH5_0(v2, v3, v1)                                     │

00:00:28 #1907 [Debug] > │         method23(v4, v5)                                                     │

00:00:28 #1908 [Debug] > │     | UH5_1 -> (* Nil *)                                                     │

00:00:28 #1909 [Debug] > │         v1                                                                   │

00:00:28 #1910 [Debug] > │ and method25 (v0 : UH5, v1 : int32) : int32 =                                │

00:00:28 #1911 [Debug] > │     match v0 with                                                            │

00:00:28 #1912 [Debug] > │     | UH5_0(v2, v3, v4) -> (* Cons *)                                        │

00:00:28 #1913 [Debug] > │         let v5 : int32 = v1 + 1                                              │

00:00:28 #1914 [Debug] > │         method25(v4, v5)                                                     │

00:00:28 #1915 [Debug] > │     | UH5_1 -> (* Nil *)                                                     │

00:00:28 #1916 [Debug] > │         v1                                                                   │

00:00:28 #1917 [Debug] > │ and method26 (v0 : (struct (int32 * int64) []), v1 : UH5, v2 : int32) :      │

00:00:28 #1918 [Debug] > │ int32 =                                                                      │

00:00:28 #1919 [Debug] > │     match v1 with                                                            │

00:00:28 #1920 [Debug] > │     | UH5_0(v3, v4, v5) -> (* Cons *)                                        │

00:00:28 #1921 [Debug] > │         v0.[int v2] <- struct (v3, v4)                                       │

00:00:28 #1922 [Debug] > │         let v6 : int32 = v2 + 1                                              │

00:00:28 #1923 [Debug] > │         method26(v0, v5, v6)                                                 │

00:00:28 #1924 [Debug] > │     | UH5_1 -> (* Nil *)                                                     │

00:00:28 #1925 [Debug] > │         v2                                                                   │

00:00:28 #1926 [Debug] > │ and method24 (v0 : UH5) : (struct (int32 * int64) []) =                      │

00:00:28 #1927 [Debug] > │     let v1 : int32 = 0                                                       │

00:00:28 #1928 [Debug] > │     let v2 : int32 = method25(v0, v1)                                        │

00:00:28 #1929 [Debug] > │     let v3 : (struct (int32 * int64) []) = Array.zeroCreate<struct (int32 *  │

00:00:28 #1930 [Debug] > │ int64)> (v2)                                                                 │

00:00:28 #1931 [Debug] > │     let v4 : int32 = 0                                                       │

00:00:28 #1932 [Debug] > │     let v5 : int32 = method26(v3, v0, v4)                                    │

00:00:28 #1933 [Debug] > │     v3                                                                       │

00:00:28 #1934 [Debug] > │ and method27 (v0 : UH2, v1 : UH6, v2 : int32) : struct (UH6 * int32) =       │

00:00:28 #1935 [Debug] > │     match v0 with                                                            │

00:00:28 #1936 [Debug] > │     | UH2_0(v3, v4) -> (* Cons *)                                            │

00:00:28 #1937 [Debug] > │         let v5 : int32 = v2 + 1                                              │

00:00:28 #1938 [Debug] > │         let v6 : UH6 = UH6_0(v2, v3, v1)                                     │

00:00:28 #1939 [Debug] > │         method27(v4, v6, v5)                                                 │

00:00:28 #1940 [Debug] > │     | UH2_1 -> (* Nil *)                                                     │

00:00:28 #1941 [Debug] > │         struct (v1, v2)                                                      │

00:00:28 #1942 [Debug] > │ and method28 (v0 : UH6, v1 : UH6) : UH6 =                                    │

00:00:28 #1943 [Debug] > │     match v0 with                                                            │

00:00:28 #1944 [Debug] > │     | UH6_0(v2, v3, v4) -> (* Cons *)                                        │

00:00:28 #1945 [Debug] > │         let v5 : UH6 = UH6_0(v2, v3, v1)                                     │

00:00:28 #1946 [Debug] > │         method28(v4, v5)                                                     │

00:00:28 #1947 [Debug] > │     | UH6_1 -> (* Nil *)                                                     │

00:00:28 #1948 [Debug] > │         v1                                                                   │

00:00:28 #1949 [Debug] > │ and method29 (v0 : Map<int32, int64>, v1 : UH6, v2 : UH2) : UH2 =            │

00:00:28 #1950 [Debug] > │     match v1 with                                                            │

00:00:28 #1951 [Debug] > │     | UH6_0(v3, v4, v5) -> (* Cons *)                                        │

00:00:28 #1952 [Debug] > │         let v6 : UH2 = method29(v0, v5, v2)                                  │

00:00:28 #1953 [Debug] > │         let v7 : int64 = v0.[v3]                                             │

00:00:28 #1954 [Debug] > │         let v8 : int32 = int32 v7                                            │

00:00:28 #1955 [Debug] > │         let v9 : string = v4.PadRight v8                                     │

00:00:28 #1956 [Debug] > │         UH2_0(v9, v6)                                                        │

00:00:28 #1957 [Debug] > │     | UH6_1 -> (* Nil *)                                                     │

00:00:28 #1958 [Debug] > │         v2                                                                   │

00:00:28 #1959 [Debug] > │ and method31 (v0 : UH2, v1 : int32) : int32 =                                │

00:00:28 #1960 [Debug] > │     match v0 with                                                            │

00:00:28 #1961 [Debug] > │     | UH2_0(v2, v3) -> (* Cons *)                                            │

00:00:28 #1962 [Debug] > │         let v4 : int32 = v1 + 1                                              │

00:00:28 #1963 [Debug] > │         method31(v3, v4)                                                     │

00:00:28 #1964 [Debug] > │     | UH2_1 -> (* Nil *)                                                     │

00:00:28 #1965 [Debug] > │         v1                                                                   │

00:00:28 #1966 [Debug] > │ and method32 (v0 : (string []), v1 : UH2, v2 : int32) : int32 =              │

00:00:28 #1967 [Debug] > │     match v1 with                                                            │

00:00:28 #1968 [Debug] > │     | UH2_0(v3, v4) -> (* Cons *)                                            │

00:00:28 #1969 [Debug] > │         v0.[int v2] <- v3                                                    │

00:00:28 #1970 [Debug] > │         let v5 : int32 = v2 + 1                                              │

00:00:28 #1971 [Debug] > │         method32(v0, v4, v5)                                                 │

00:00:28 #1972 [Debug] > │     | UH2_1 -> (* Nil *)                                                     │

00:00:28 #1973 [Debug] > │         v2                                                                   │

00:00:28 #1974 [Debug] > │ and method30 (v0 : UH2) : (string []) =                                      │

00:00:28 #1975 [Debug] > │     let v1 : int32 = 0                                                       │

00:00:28 #1976 [Debug] > │     let v2 : int32 = method31(v0, v1)                                        │

00:00:28 #1977 [Debug] > │     let v3 : (string []) = Array.zeroCreate<string> (v2)                     │

00:00:28 #1978 [Debug] > │     let v4 : int32 = 0                                                       │

00:00:28 #1979 [Debug] > │     let v5 : int32 = method32(v3, v0, v4)                                    │

00:00:28 #1980 [Debug] > │     v3                                                                       │

00:00:28 #1981 [Debug] > │ and closure7 () () : unit =                                                  │

00:00:28 #1982 [Debug] > │     ()                                                                       │

00:00:28 #1983 [Debug] > │ and closure8 () () : unit =                                                  │

00:00:28 #1984 [Debug] > │     System.Console.ResetColor ()                                             │

00:00:28 #1985 [Debug] > │     ()                                                                       │

00:00:28 #1986 [Debug] > │ and closure9 () () : unit =                                                  │

00:00:28 #1987 [Debug] > │     ()                                                                       │

00:00:28 #1988 [Debug] > │ and closure10 (v0 : System.ConsoleColor) () : unit =                         │

00:00:28 #1989 [Debug] > │     System.Console.ForegroundColor <- v0                                     │

00:00:28 #1990 [Debug] > │     ()                                                                       │

00:00:28 #1991 [Debug] > │ and method34 (v0 : UH5, v1 : uint64) : uint64 =                              │

00:00:28 #1992 [Debug] > │     match v0 with                                                            │

00:00:28 #1993 [Debug] > │     | UH5_0(v2, v3, v4) -> (* Cons *)                                        │

00:00:28 #1994 [Debug] > │         let v5 : uint64 = v1 + 1UL                                           │

00:00:28 #1995 [Debug] > │         method34(v4, v5)                                                     │

00:00:28 #1996 [Debug] > │     | UH5_1 -> (* Nil *)                                                     │

00:00:28 #1997 [Debug] > │         v1                                                                   │

00:00:28 #1998 [Debug] > │ and method35 (v0 : (struct (int32 * int64) []), v1 : UH5, v2 : uint64) :     │

00:00:28 #1999 [Debug] > │ uint64 =                                                                     │

00:00:28 #2000 [Debug] > │     match v1 with                                                            │

00:00:28 #2001 [Debug] > │     | UH5_0(v3, v4, v5) -> (* Cons *)                                        │

00:00:28 #2002 [Debug] > │         v0.[int v2] <- struct (v3, v4)                                       │

00:00:28 #2003 [Debug] > │         let v6 : uint64 = v2 + 1UL                                           │

00:00:28 #2004 [Debug] > │         method35(v0, v5, v6)                                                 │

00:00:28 #2005 [Debug] > │     | UH5_1 -> (* Nil *)                                                     │

00:00:28 #2006 [Debug] > │         v2                                                                   │

00:00:28 #2007 [Debug] > │ and method33 (v0 : UH5) : (struct (int32 * int64) []) =                      │

00:00:28 #2008 [Debug] > │     let v1 : uint64 = 0UL                                                    │

00:00:28 #2009 [Debug] > │     let v2 : uint64 = method34(v0, v1)                                       │

00:00:28 #2010 [Debug] > │     let v3 : (struct (int32 * int64) []) = Array.zeroCreate<struct (int32 *  │

00:00:28 #2011 [Debug] > │ int64)> (System.Convert.ToInt32(v2))                                         │

00:00:28 #2012 [Debug] > │     let v4 : uint64 = 0UL                                                    │

00:00:28 #2013 [Debug] > │     let v5 : uint64 = method35(v3, v0, v4)                                   │

00:00:28 #2014 [Debug] > │     v3                                                                       │

00:00:28 #2015 [Debug] > │ and closure11 () struct (v0 : int32, v1 : int64) : int64 =                   │

00:00:28 #2016 [Debug] > │     v1                                                                       │

00:00:28 #2017 [Debug] > │ and closure0 () () : unit =                                                  │

00:00:28 #2018 [Debug] > │     let v0 : (unit -> unit) = closure0()                                     │

00:00:28 #2019 [Debug] > │     let v1 : string = nameof v0                                              │

00:00:28 #2020 [Debug] > │     let v2 : string = ""                                                     │

00:00:28 #2021 [Debug] > │     System.Console.WriteLine v2                                              │

00:00:28 #2022 [Debug] > │     System.Console.WriteLine v2                                              │

00:00:28 #2023 [Debug] > │     let v3 : string = $"Test: {v1}"                                          │

00:00:28 #2024 [Debug] > │     System.Console.WriteLine v3                                              │

00:00:28 #2025 [Debug] > │     let v4 : float = 0.0                                                     │

00:00:28 #2026 [Debug] > │     let v5 : float = 1.0                                                     │

00:00:28 #2027 [Debug] > │     let v6 : float = 2.0                                                     │

00:00:28 #2028 [Debug] > │     let v7 : float = 3.0                                                     │

00:00:28 #2029 [Debug] > │     let v8 : float = 5.0                                                     │

00:00:28 #2030 [Debug] > │     let v9 : float = 6.0                                                     │

00:00:28 #2031 [Debug] > │     let v10 : UH0 = UH0_1                                                    │

00:00:28 #2032 [Debug] > │     let v11 : UH0 = UH0_0(v8, v9, v10)                                       │

00:00:28 #2033 [Debug] > │     let v12 : UH0 = UH0_0(v6, v7, v11)                                       │

00:00:28 #2034 [Debug] > │     let v13 : UH0 = UH0_0(v4, v5, v12)                                       │

00:00:28 #2035 [Debug] > │     let v14 : (struct (float * float) []) = method1(v13)                     │

00:00:28 #2036 [Debug] > │     let v15 : uint64 = System.Convert.ToUInt64 v14.Length                    │

00:00:28 #2037 [Debug] > │     let v16 : (struct (string * string * string * (int64 [])) []) =          │

00:00:28 #2038 [Debug] > │ Array.zeroCreate<struct (string * string * string * (int64 []))>             │

00:00:28 #2039 [Debug] > │ (System.Convert.ToInt32(v15))                                                │

00:00:28 #2040 [Debug] > │     let v17 : Mut0 = {l0 = 0UL} : Mut0                                       │

00:00:28 #2041 [Debug] > │     while method4(v15, v17) do                                               │

00:00:28 #2042 [Debug] > │         let v19 : uint64 = v17.l0                                            │

00:00:28 #2043 [Debug] > │         let struct (v20 : float, v21 : float) = v14.[int v19]                │

00:00:28 #2044 [Debug] > │         let v22 : string = $"%A{v20}"                                        │

00:00:28 #2045 [Debug] > │         System.Console.WriteLine v2                                          │

00:00:28 #2046 [Debug] > │         let v23 : string = $"Solution: {v22}  "                              │

00:00:28 #2047 [Debug] > │         System.Console.WriteLine v23                                         │

00:00:28 #2048 [Debug] > │         let v24 : int32 = 0                                                  │

00:00:28 #2049 [Debug] > │         let v25 : string = "A"                                               │

00:00:28 #2050 [Debug] > │         let v26 : (float -> float) = closure1()                              │

00:00:28 #2051 [Debug] > │         let v27 : UH1 = UH1_1                                                │

00:00:28 #2052 [Debug] > │         let v28 : UH1 = UH1_0(v24, v25, v26, v27)                            │

00:00:28 #2053 [Debug] > │         let v29 : (struct (int32 * string * (float -> float)) []) =          │

00:00:28 #2054 [Debug] > │ method5(v28)                                                                 │

00:00:28 #2055 [Debug] > │         let v30 : uint64 = System.Convert.ToUInt64 v29.Length                │

00:00:28 #2056 [Debug] > │         let v31 : (struct (float * int64) []) = Array.zeroCreate<struct      │

00:00:28 #2057 [Debug] > │ (float * int64)> (System.Convert.ToInt32(v30))                               │

00:00:28 #2058 [Debug] > │         let v32 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:00:28 #2059 [Debug] > │         while method4(v30, v32) do                                           │

00:00:28 #2060 [Debug] > │             let v34 : uint64 = v32.l0                                        │

00:00:28 #2061 [Debug] > │             let struct (v35 : int32, v36 : string, v37 : (float -> float)) = │

00:00:28 #2062 [Debug] > │ v29.[int v34]                                                                │

00:00:28 #2063 [Debug] > │             #if FABLE_COMPILER_RUST                                          │

00:00:28 #2064 [Debug] > │             let v38 : (unit -> unit) = closure2()                            │

00:00:28 #2065 [Debug] > │             v38 ()                                                           │

00:00:28 #2066 [Debug] > │             #else                                                            │

00:00:28 #2067 [Debug] > │             let v39 : (unit -> unit) = closure3()                            │

00:00:28 #2068 [Debug] > │             v39 ()                                                           │

00:00:28 #2069 [Debug] > │             #endif                                                           │

00:00:28 #2070 [Debug] > │             let v40 : (unit -> System.Diagnostics.Stopwatch) =               │

00:00:28 #2071 [Debug] > │ System.Diagnostics.Stopwatch                                                 │

00:00:28 #2072 [Debug] > │             let v41 : System.Diagnostics.Stopwatch = v40 ()                  │

00:00:28 #2073 [Debug] > │             v41.Start ()                                                     │

00:00:28 #2074 [Debug] > │             let v42 : int64 = v41.ElapsedMilliseconds                        │

00:00:28 #2075 [Debug] > │             let v43 : (int32 []) = Array.zeroCreate<int32> (2000001)         │

00:00:28 #2076 [Debug] > │             let v44 : Mut1 = {l0 = 0} : Mut1                                 │

00:00:28 #2077 [Debug] > │             while method8(v44) do                                            │

00:00:28 #2078 [Debug] > │                 let v46 : int32 = v44.l0                                     │

00:00:28 #2079 [Debug] > │                 v43.[int v46] <- v46                                         │

00:00:28 #2080 [Debug] > │                 let v47 : int32 = v46 + 1                                    │

00:00:28 #2081 [Debug] > │                 v44.l0 <- v47                                                │

00:00:28 #2082 [Debug] > │                 ()                                                           │

00:00:28 #2083 [Debug] > │             let v48 : (int32 -> float) = closure4(v20, v37)                  │

00:00:28 #2084 [Debug] > │             let v49 : (float []) = v43 |> Array.Parallel.map v48             │

00:00:28 #2085 [Debug] > │             let v50 : int32 = v49.Length                                     │

00:00:28 #2086 [Debug] > │             let v51 : int32 = v50 - 1                                        │

00:00:28 #2087 [Debug] > │             let v52 : float = v49.[int v51]                                  │

00:00:28 #2088 [Debug] > │             let v53 : int64 = v41.ElapsedMilliseconds                        │

00:00:28 #2089 [Debug] > │             let v54 : int64 = v53 - v42                                      │

00:00:28 #2090 [Debug] > │             let v55 : string = $"Test case {v35 + 1}. {v36}. Time: {v54}  "  │

00:00:28 #2091 [Debug] > │             System.Console.WriteLine v55                                     │

00:00:28 #2092 [Debug] > │             v31.[int v34] <- struct (v52, v54)                               │

00:00:28 #2093 [Debug] > │             let v56 : uint64 = v34 + 1UL                                     │

00:00:28 #2094 [Debug] > │             v32.l0 <- v56                                                    │

00:00:28 #2095 [Debug] > │             ()                                                               │

00:00:28 #2096 [Debug] > │         let v57 : uint64 = System.Convert.ToUInt64 v31.Length                │

00:00:28 #2097 [Debug] > │         let v58 : (float []) = Array.zeroCreate<float>                       │

00:00:28 #2098 [Debug] > │ (System.Convert.ToInt32(v57))                                                │

00:00:28 #2099 [Debug] > │         let v59 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:00:28 #2100 [Debug] > │         while method4(v57, v59) do                                           │

00:00:28 #2101 [Debug] > │             let v61 : uint64 = v59.l0                                        │

00:00:28 #2102 [Debug] > │             let struct (v62 : float, v63 : int64) = v31.[int v61]            │

00:00:28 #2103 [Debug] > │             v58.[int v61] <- v62                                             │

00:00:28 #2104 [Debug] > │             let v64 : uint64 = v61 + 1UL                                     │

00:00:28 #2105 [Debug] > │             v59.l0 <- v64                                                    │

00:00:28 #2106 [Debug] > │             ()                                                               │

00:00:28 #2107 [Debug] > │         let v65 : uint64 = System.Convert.ToUInt64 v58.Length                │

00:00:28 #2108 [Debug] > │         let v66 : bool = v65 <= 1UL                                          │

00:00:28 #2109 [Debug] > │         if v66 then                                                          │

00:00:28 #2110 [Debug] > │             ()                                                               │

00:00:28 #2111 [Debug] > │         else                                                                 │

00:00:28 #2112 [Debug] > │             let v67 : float = v58.[int 0UL]                                  │

00:00:28 #2113 [Debug] > │             let v68 : uint64 = 0UL                                           │

00:00:28 #2114 [Debug] > │             let v69 : bool = method9(v67, v58, v68)                          │

00:00:28 #2115 [Debug] > │             if v69 then                                                      │

00:00:28 #2116 [Debug] > │                 ()                                                           │

00:00:28 #2117 [Debug] > │             else                                                             │

00:00:28 #2118 [Debug] > │                 let v70 : string = $"Challenge error: {v58}"                 │

00:00:28 #2119 [Debug] > │                 failwith<unit> v70                                           │

00:00:28 #2120 [Debug] > │         let v71 : string = $"%A{v21}"                                        │

00:00:28 #2121 [Debug] > │         let v72 : (float []) = Array.zeroCreate<float>                       │

00:00:28 #2122 [Debug] > │ (System.Convert.ToInt32(v57))                                                │

00:00:28 #2123 [Debug] > │         let v73 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:00:28 #2124 [Debug] > │         while method4(v57, v73) do                                           │

00:00:28 #2125 [Debug] > │             let v75 : uint64 = v73.l0                                        │

00:00:28 #2126 [Debug] > │             let struct (v76 : float, v77 : int64) = v31.[int v75]            │

00:00:28 #2127 [Debug] > │             v72.[int v75] <- v76                                             │

00:00:28 #2128 [Debug] > │             let v78 : uint64 = v75 + 1UL                                     │

00:00:28 #2129 [Debug] > │             v73.l0 <- v78                                                    │

00:00:28 #2130 [Debug] > │             ()                                                               │

00:00:28 #2131 [Debug] > │         let v79 : float = v72.[int 0UL]                                      │

00:00:28 #2132 [Debug] > │         let v80 : string = $"%A{v79}"                                        │

00:00:28 #2133 [Debug] > │         let v81 : (int64 []) = Array.zeroCreate<int64>                       │

00:00:28 #2134 [Debug] > │ (System.Convert.ToInt32(v57))                                                │

00:00:28 #2135 [Debug] > │         let v82 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:00:28 #2136 [Debug] > │         while method4(v57, v82) do                                           │

00:00:28 #2137 [Debug] > │             let v84 : uint64 = v82.l0                                        │

00:00:28 #2138 [Debug] > │             let struct (v85 : float, v86 : int64) = v31.[int v84]            │

00:00:28 #2139 [Debug] > │             v81.[int v84] <- v86                                             │

00:00:28 #2140 [Debug] > │             let v87 : uint64 = v84 + 1UL                                     │

00:00:28 #2141 [Debug] > │             v82.l0 <- v87                                                    │

00:00:28 #2142 [Debug] > │             ()                                                               │

00:00:28 #2143 [Debug] > │         v16.[int v19] <- struct (v71, v22, v80, v81)                         │

00:00:28 #2144 [Debug] > │         let v88 : uint64 = v19 + 1UL                                         │

00:00:28 #2145 [Debug] > │         v17.l0 <- v88                                                        │

00:00:28 #2146 [Debug] > │         ()                                                                   │

00:00:28 #2147 [Debug] > │     let v89 : uint64 = System.Convert.ToUInt64 v16.Length                    │

00:00:28 #2148 [Debug] > │     let v90 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * US0)> │

00:00:28 #2149 [Debug] > │ (System.Convert.ToInt32(v89))                                                │

00:00:28 #2150 [Debug] > │     let v91 : Mut0 = {l0 = 0UL} : Mut0                                       │

00:00:28 #2151 [Debug] > │     while method4(v89, v91) do                                               │

00:00:28 #2152 [Debug] > │         let v93 : uint64 = v91.l0                                            │

00:00:28 #2153 [Debug] > │         let struct (v94 : string, v95 : string, v96 : string, v97 : (int64 [ │

00:00:28 #2154 [Debug] > │ ])) = v16.[int v93]                                                          │

00:00:28 #2155 [Debug] > │         let v98 : uint64 = System.Convert.ToUInt64 v97.Length                │

00:00:28 #2156 [Debug] > │         let v99 : UH3 = UH3_1                                                │

00:00:28 #2157 [Debug] > │         let v100 : Mut2 = {l0 = 0UL; l1 = v99; l2 = 0L} : Mut2               │

00:00:28 #2158 [Debug] > │         while method10(v98, v100) do                                         │

00:00:28 #2159 [Debug] > │             let v102 : uint64 = v100.l0                                      │

00:00:28 #2160 [Debug] > │             let struct (v103 : UH3, v104 : int64) = v100.l1, v100.l2         │

00:00:28 #2161 [Debug] > │             let v105 : int64 = v97.[int v102]                                │

00:00:28 #2162 [Debug] > │             let v106 : int64 = v104 + 1L                                     │

00:00:28 #2163 [Debug] > │             let v107 : uint64 = v102 + 1UL                                   │

00:00:28 #2164 [Debug] > │             let v108 : UH3 = UH3_0(v104, v105, v103)                         │

00:00:28 #2165 [Debug] > │             v100.l0 <- v107                                                  │

00:00:28 #2166 [Debug] > │             v100.l1 <- v108                                                  │

00:00:28 #2167 [Debug] > │             v100.l2 <- v106                                                  │

00:00:28 #2168 [Debug] > │             ()                                                               │

00:00:28 #2169 [Debug] > │         let struct (v109 : UH3, v110 : int64) = v100.l1, v100.l2             │

00:00:28 #2170 [Debug] > │         let v111 : UH3 = UH3_1                                               │

00:00:28 #2171 [Debug] > │         let v112 : UH3 = method11(v109, v111)                                │

00:00:28 #2172 [Debug] > │         let v113 : (struct (int64 * int64) []) = method12(v112)              │

00:00:28 #2173 [Debug] > │         let v114 : int32 = v113.Length                                       │

00:00:28 #2174 [Debug] > │         let v115 : (struct (int64 * int64) []) = Array.zeroCreate<struct     │

00:00:28 #2175 [Debug] > │ (int64 * int64)> (v114)                                                      │

00:00:28 #2176 [Debug] > │         let v116 : Mut1 = {l0 = 0} : Mut1                                    │

00:00:28 #2177 [Debug] > │         while method15(v114, v116) do                                        │

00:00:28 #2178 [Debug] > │             let v118 : int32 = v116.l0                                       │

00:00:28 #2179 [Debug] > │             let struct (v119 : int64, v120 : int64) = v113.[int v118]        │

00:00:28 #2180 [Debug] > │             let v121 : int64 = v119 + 1L                                     │

00:00:28 #2181 [Debug] > │             v115.[int v118] <- struct (v121, v120)                           │

00:00:28 #2182 [Debug] > │             let v122 : int32 = v118 + 1                                      │

00:00:28 #2183 [Debug] > │             v116.l0 <- v122                                                  │

00:00:28 #2184 [Debug] > │             ()                                                               │

00:00:28 #2185 [Debug] > │         let v123 : (struct (int64 * int64) -> int64) = closure5()            │

00:00:28 #2186 [Debug] > │         let v124 : (struct (int64 * int64) []) = v115 |> Array.sortBy v123   │

00:00:28 #2187 [Debug] > │         let struct (v125 : int64, v126 : int64) = v124.[int 0]               │

00:00:28 #2188 [Debug] > │         let v127 : string = $"%A{struct (v125, v126)}"                       │

00:00:28 #2189 [Debug] > │         let v128 : bool = v94 = v96                                          │

00:00:28 #2190 [Debug] > │         let v133 : US0 =                                                     │

00:00:28 #2191 [Debug] > │             if v128 then                                                     │

00:00:28 #2192 [Debug] > │                 let v129 : System.ConsoleColor =                             │

00:00:28 #2193 [Debug] > │ System.ConsoleColor.DarkGreen                                                │

00:00:28 #2194 [Debug] > │                 US0_1(v129)                                                  │

00:00:28 #2195 [Debug] > │             else                                                             │

00:00:28 #2196 [Debug] > │                 let v131 : System.ConsoleColor = System.ConsoleColor.DarkRed │

00:00:28 #2197 [Debug] > │                 US0_1(v131)                                                  │

00:00:28 #2198 [Debug] > │         let v134 : UH2 = UH2_1                                               │

00:00:28 #2199 [Debug] > │         let v135 : UH2 = UH2_0(v127, v134)                                   │

00:00:28 #2200 [Debug] > │         let v136 : UH2 = UH2_0(v96, v135)                                    │

00:00:28 #2201 [Debug] > │         let v137 : UH2 = UH2_0(v94, v136)                                    │

00:00:28 #2202 [Debug] > │         let v138 : UH2 = UH2_0(v95, v137)                                    │

00:00:28 #2203 [Debug] > │         v90.[int v93] <- struct (v138, v133)                                 │

00:00:28 #2204 [Debug] > │         let v139 : uint64 = v93 + 1UL                                        │

00:00:28 #2205 [Debug] > │         v91.l0 <- v139                                                       │

00:00:28 #2206 [Debug] > │         ()                                                                   │

00:00:28 #2207 [Debug] > │     let v140 : string = "Input"                                              │

00:00:28 #2208 [Debug] > │     let v141 : string = "Expected"                                           │

00:00:28 #2209 [Debug] > │     let v142 : string = "Result"                                             │

00:00:28 #2210 [Debug] > │     let v143 : string = "Best"                                               │

00:00:28 #2211 [Debug] > │     let v144 : UH2 = UH2_1                                                   │

00:00:28 #2212 [Debug] > │     let v145 : UH2 = UH2_0(v143, v144)                                       │

00:00:28 #2213 [Debug] > │     let v146 : UH2 = UH2_0(v142, v145)                                       │

00:00:28 #2214 [Debug] > │     let v147 : UH2 = UH2_0(v141, v146)                                       │

00:00:28 #2215 [Debug] > │     let v148 : UH2 = UH2_0(v140, v147)                                       │

00:00:28 #2216 [Debug] > │     let v149 : US0 = US0_0                                                   │

00:00:28 #2217 [Debug] > │     let v150 : string = "---"                                                │

00:00:28 #2218 [Debug] > │     let v151 : UH2 = UH2_1                                                   │

00:00:28 #2219 [Debug] > │     let v152 : UH2 = UH2_0(v150, v151)                                       │

00:00:28 #2220 [Debug] > │     let v153 : UH2 = UH2_0(v150, v152)                                       │

00:00:28 #2221 [Debug] > │     let v154 : UH2 = UH2_0(v150, v153)                                       │

00:00:28 #2222 [Debug] > │     let v155 : UH2 = UH2_0(v150, v154)                                       │

00:00:28 #2223 [Debug] > │     let v156 : US0 = US0_0                                                   │

00:00:28 #2224 [Debug] > │     let v157 : UH4 = UH4_1                                                   │

00:00:28 #2225 [Debug] > │     let v158 : UH4 = UH4_0(v155, v156, v157)                                 │

00:00:28 #2226 [Debug] > │     let v159 : UH4 = UH4_0(v148, v149, v158)                                 │

00:00:28 #2227 [Debug] > │     let v160 : (struct (UH2 * US0) []) = method16(v159)                      │

00:00:28 #2228 [Debug] > │     let v161 : uint64 = System.Convert.ToUInt64 v160.Length                  │

00:00:28 #2229 [Debug] > │     let v162 : uint64 = System.Convert.ToUInt64 v90.Length                   │

00:00:28 #2230 [Debug] > │     let v163 : uint64 = v161 + v162                                          │

00:00:28 #2231 [Debug] > │     let v164 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 *      │

00:00:28 #2232 [Debug] > │ US0)> (System.Convert.ToInt32(v163))                                         │

00:00:28 #2233 [Debug] > │     let v165 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:28 #2234 [Debug] > │     while method4(v163, v165) do                                             │

00:00:28 #2235 [Debug] > │         let v167 : uint64 = v165.l0                                          │

00:00:28 #2236 [Debug] > │         let v168 : bool = v167 < v161                                        │

00:00:28 #2237 [Debug] > │         let struct (v174 : UH2, v175 : US0) =                                │

00:00:28 #2238 [Debug] > │             if v168 then                                                     │

00:00:28 #2239 [Debug] > │                 let struct (v169 : UH2, v170 : US0) = v160.[int v167]        │

00:00:28 #2240 [Debug] > │                 struct (v169, v170)                                          │

00:00:28 #2241 [Debug] > │             else                                                             │

00:00:28 #2242 [Debug] > │                 let v171 : uint64 = v167 - v161                              │

00:00:28 #2243 [Debug] > │                 let struct (v172 : UH2, v173 : US0) = v90.[int v171]         │

00:00:28 #2244 [Debug] > │                 struct (v172, v173)                                          │

00:00:28 #2245 [Debug] > │         v164.[int v167] <- struct (v174, v175)                               │

00:00:28 #2246 [Debug] > │         let v176 : uint64 = v167 + 1UL                                       │

00:00:28 #2247 [Debug] > │         v165.l0 <- v176                                                      │

00:00:28 #2248 [Debug] > │         ()                                                                   │

00:00:28 #2249 [Debug] > │     let v177 : uint64 = System.Convert.ToUInt64 v164.Length                  │

00:00:28 #2250 [Debug] > │     let v178 : ((string []) []) = Array.zeroCreate<(string [])>              │

00:00:28 #2251 [Debug] > │ (System.Convert.ToInt32(v177))                                               │

00:00:28 #2252 [Debug] > │     let v179 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:28 #2253 [Debug] > │     while method4(v177, v179) do                                             │

00:00:28 #2254 [Debug] > │         let v181 : uint64 = v179.l0                                          │

00:00:28 #2255 [Debug] > │         let struct (v182 : UH2, v183 : US0) = v164.[int v181]                │

00:00:28 #2256 [Debug] > │         let v184 : (string []) = method19(v182)                              │

00:00:28 #2257 [Debug] > │         v178.[int v181] <- v184                                              │

00:00:28 #2258 [Debug] > │         let v185 : uint64 = v181 + 1UL                                       │

00:00:28 #2259 [Debug] > │         v179.l0 <- v185                                                      │

00:00:28 #2260 [Debug] > │         ()                                                                   │

00:00:28 #2261 [Debug] > │     let v186 : ((string []) []) = v178 |> Array.transpose                    │

00:00:28 #2262 [Debug] > │     let v187 : uint64 = System.Convert.ToUInt64 v186.Length                  │

00:00:28 #2263 [Debug] > │     let v188 : (int64 []) = Array.zeroCreate<int64>                          │

00:00:28 #2264 [Debug] > │ (System.Convert.ToInt32(v187))                                               │

00:00:28 #2265 [Debug] > │     let v189 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:28 #2266 [Debug] > │     while method4(v187, v189) do                                             │

00:00:28 #2267 [Debug] > │         let v191 : uint64 = v189.l0                                          │

00:00:28 #2268 [Debug] > │         let v192 : (string []) = v186.[int v191]                             │

00:00:28 #2269 [Debug] > │         let v193 : uint64 = System.Convert.ToUInt64 v192.Length              │

00:00:28 #2270 [Debug] > │         let v194 : (int64 []) = Array.zeroCreate<int64>                      │

00:00:28 #2271 [Debug] > │ (System.Convert.ToInt32(v193))                                               │

00:00:28 #2272 [Debug] > │         let v195 : Mut0 = {l0 = 0UL} : Mut0                                  │

00:00:28 #2273 [Debug] > │         while method4(v193, v195) do                                         │

00:00:28 #2274 [Debug] > │             let v197 : uint64 = v195.l0                                      │

00:00:28 #2275 [Debug] > │             let v198 : string = v192.[int v197]                              │

00:00:28 #2276 [Debug] > │             let v199 : int64 = System.Convert.ToInt64 v198.Length            │

00:00:28 #2277 [Debug] > │             v194.[int v197] <- v199                                          │

00:00:28 #2278 [Debug] > │             let v200 : uint64 = v197 + 1UL                                   │

00:00:28 #2279 [Debug] > │             v195.l0 <- v200                                                  │

00:00:28 #2280 [Debug] > │             ()                                                               │

00:00:28 #2281 [Debug] > │         let v201 : (int64 []) = v194 |> Array.sortDescending                 │

00:00:28 #2282 [Debug] > │         let v202 : int64 option = v201 |> Array.tryItem 0                    │

00:00:28 #2283 [Debug] > │         let v203 : (int64 -> US1) = closure6()                               │

00:00:28 #2284 [Debug] > │         let v204 : US1 = US1_0                                               │

00:00:28 #2285 [Debug] > │         let v205 : US1 = v202 |> Option.map v203 |> Option.defaultValue v204 │

00:00:28 #2286 [Debug] > │         let v208 : int64 =                                                   │

00:00:28 #2287 [Debug] > │             match v205 with                                                  │

00:00:28 #2288 [Debug] > │             | US1_0 -> (* None *)                                            │

00:00:28 #2289 [Debug] > │                 0L                                                           │

00:00:28 #2290 [Debug] > │             | US1_1(v206) -> (* Some *)                                      │

00:00:28 #2291 [Debug] > │                 v206                                                         │

00:00:28 #2292 [Debug] > │         v188.[int v191] <- v208                                              │

00:00:28 #2293 [Debug] > │         let v209 : uint64 = v191 + 1UL                                       │

00:00:28 #2294 [Debug] > │         v189.l0 <- v209                                                      │

00:00:28 #2295 [Debug] > │         ()                                                                   │

00:00:28 #2296 [Debug] > │     let v210 : uint64 = System.Convert.ToUInt64 v188.Length                  │

00:00:28 #2297 [Debug] > │     let v211 : UH5 = UH5_1                                                   │

00:00:28 #2298 [Debug] > │     let v212 : Mut3 = {l0 = 0UL; l1 = v211; l2 = 0} : Mut3                   │

00:00:28 #2299 [Debug] > │     while method22(v210, v212) do                                            │

00:00:28 #2300 [Debug] > │         let v214 : uint64 = v212.l0                                          │

00:00:28 #2301 [Debug] > │         let struct (v215 : UH5, v216 : int32) = v212.l1, v212.l2             │

00:00:28 #2302 [Debug] > │         let v217 : int64 = v188.[int v214]                                   │

00:00:28 #2303 [Debug] > │         let v218 : int32 = v216 + 1                                          │

00:00:28 #2304 [Debug] > │         let v219 : uint64 = v214 + 1UL                                       │

00:00:28 #2305 [Debug] > │         let v220 : UH5 = UH5_0(v216, v217, v215)                             │

00:00:28 #2306 [Debug] > │         v212.l0 <- v219                                                      │

00:00:28 #2307 [Debug] > │         v212.l1 <- v220                                                      │

00:00:28 #2308 [Debug] > │         v212.l2 <- v218                                                      │

00:00:28 #2309 [Debug] > │         ()                                                                   │

00:00:28 #2310 [Debug] > │     let struct (v221 : UH5, v222 : int32) = v212.l1, v212.l2                 │

00:00:28 #2311 [Debug] > │     let v223 : UH5 = UH5_1                                                   │

00:00:28 #2312 [Debug] > │     let v224 : UH5 = method23(v221, v223)                                    │

00:00:28 #2313 [Debug] > │     let v225 : (struct (int32 * int64) []) = method24(v224)                  │

00:00:28 #2314 [Debug] > │     let v226 : Map<int32, int64> = v225 |> Array.map (fun (struct (a, b)) -> │

00:00:28 #2315 [Debug] > │ a, b) |> Map.ofArray                                                         │

00:00:28 #2316 [Debug] > │     let v227 : (struct ((string []) * US0) []) = Array.zeroCreate<struct     │

00:00:28 #2317 [Debug] > │ ((string []) * US0)> (System.Convert.ToInt32(v177))                          │

00:00:28 #2318 [Debug] > │     let v228 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:28 #2319 [Debug] > │     while method4(v177, v228) do                                             │

00:00:28 #2320 [Debug] > │         let v230 : uint64 = v228.l0                                          │

00:00:28 #2321 [Debug] > │         let struct (v231 : UH2, v232 : US0) = v164.[int v230]                │

00:00:28 #2322 [Debug] > │         let v233 : UH6 = UH6_1                                               │

00:00:28 #2323 [Debug] > │         let v234 : int32 = 0                                                 │

00:00:28 #2324 [Debug] > │         let struct (v235 : UH6, v236 : int32) = method27(v231, v233, v234)   │

00:00:28 #2325 [Debug] > │         let v237 : UH6 = UH6_1                                               │

00:00:28 #2326 [Debug] > │         let v238 : UH6 = method28(v235, v237)                                │

00:00:28 #2327 [Debug] > │         let v239 : UH2 = UH2_1                                               │

00:00:28 #2328 [Debug] > │         let v240 : UH2 = method29(v226, v238, v239)                          │

00:00:28 #2329 [Debug] > │         let v241 : (string []) = method30(v240)                              │

00:00:28 #2330 [Debug] > │         v227.[int v230] <- struct (v241, v232)                               │

00:00:28 #2331 [Debug] > │         let v242 : uint64 = v230 + 1UL                                       │

00:00:28 #2332 [Debug] > │         v228.l0 <- v242                                                      │

00:00:28 #2333 [Debug] > │         ()                                                                   │

00:00:28 #2334 [Debug] > │     System.Console.WriteLine v2                                              │

00:00:28 #2335 [Debug] > │     let v243 : uint64 = System.Convert.ToUInt64 v227.Length                  │

00:00:28 #2336 [Debug] > │     let v244 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:28 #2337 [Debug] > │     while method4(v243, v244) do                                             │

00:00:28 #2338 [Debug] > │         let v246 : uint64 = v244.l0                                          │

00:00:28 #2339 [Debug] > │         let struct (v247 : (string []), v248 : US0) = v227.[int v246]        │

00:00:28 #2340 [Debug] > │         match v248 with                                                      │

00:00:28 #2341 [Debug] > │         | US0_0 -> (* None *)                                                │

00:00:28 #2342 [Debug] > │             #if FABLE_COMPILER_RUST                                          │

00:00:28 #2343 [Debug] > │             let v252 : (unit -> unit) = closure7()                           │

00:00:28 #2344 [Debug] > │             v252 ()                                                          │

00:00:28 #2345 [Debug] > │             #else                                                            │

00:00:28 #2346 [Debug] > │             let v253 : (unit -> unit) = closure8()                           │

00:00:28 #2347 [Debug] > │             v253 ()                                                          │

00:00:28 #2348 [Debug] > │             #endif                                                           │

00:00:28 #2349 [Debug] > │             ()                                                               │

00:00:28 #2350 [Debug] > │         | US0_1(v249) -> (* Some *)                                          │

00:00:28 #2351 [Debug] > │             #if FABLE_COMPILER_RUST                                          │

00:00:28 #2352 [Debug] > │             let v250 : (unit -> unit) = closure9()                           │

00:00:28 #2353 [Debug] > │             v250 ()                                                          │

00:00:28 #2354 [Debug] > │             #else                                                            │

00:00:28 #2355 [Debug] > │             let v251 : (unit -> unit) = closure10(v249)                      │

00:00:28 #2356 [Debug] > │             v251 ()                                                          │

00:00:28 #2357 [Debug] > │             #endif                                                           │

00:00:28 #2358 [Debug] > │             ()                                                               │

00:00:28 #2359 [Debug] > │         let v254 : string = "\t| "                                           │

00:00:28 #2360 [Debug] > │         let v255 : string = System.String.Join (v254, v247)                  │

00:00:28 #2361 [Debug] > │         System.Console.WriteLine v255                                        │

00:00:28 #2362 [Debug] > │         #if FABLE_COMPILER_RUST                                              │

00:00:28 #2363 [Debug] > │         let v256 : (unit -> unit) = closure7()                               │

00:00:28 #2364 [Debug] > │         v256 ()                                                              │

00:00:28 #2365 [Debug] > │         #else                                                                │

00:00:28 #2366 [Debug] > │         let v257 : (unit -> unit) = closure8()                               │

00:00:28 #2367 [Debug] > │         v257 ()                                                              │

00:00:28 #2368 [Debug] > │         #endif                                                               │

00:00:28 #2369 [Debug] > │         let v258 : uint64 = v246 + 1UL                                       │

00:00:28 #2370 [Debug] > │         v244.l0 <- v258                                                      │

00:00:28 #2371 [Debug] > │         ()                                                                   │

00:00:28 #2372 [Debug] > │     let v259 : ((float []) []) = Array.zeroCreate<(float [])>                │

00:00:28 #2373 [Debug] > │ (System.Convert.ToInt32(v89))                                                │

00:00:28 #2374 [Debug] > │     let v260 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:28 #2375 [Debug] > │     while method4(v89, v260) do                                              │

00:00:28 #2376 [Debug] > │         let v262 : uint64 = v260.l0                                          │

00:00:28 #2377 [Debug] > │         let struct (v263 : string, v264 : string, v265 : string, v266 :      │

00:00:28 #2378 [Debug] > │ (int64 [])) = v16.[int v262]                                                 │

00:00:28 #2379 [Debug] > │         let v267 : (int64 -> float) = float                                  │

00:00:28 #2380 [Debug] > │         let v268 : uint64 = System.Convert.ToUInt64 v266.Length              │

00:00:28 #2381 [Debug] > │         let v269 : (float []) = Array.zeroCreate<float>                      │

00:00:28 #2382 [Debug] > │ (System.Convert.ToInt32(v268))                                               │

00:00:28 #2383 [Debug] > │         let v270 : Mut0 = {l0 = 0UL} : Mut0                                  │

00:00:28 #2384 [Debug] > │         while method4(v268, v270) do                                         │

00:00:28 #2385 [Debug] > │             let v272 : uint64 = v270.l0                                      │

00:00:28 #2386 [Debug] > │             let v273 : int64 = v266.[int v272]                               │

00:00:28 #2387 [Debug] > │             let v274 : float = v267 v273                                     │

00:00:28 #2388 [Debug] > │             v269.[int v272] <- v274                                          │

00:00:28 #2389 [Debug] > │             let v275 : uint64 = v272 + 1UL                                   │

00:00:28 #2390 [Debug] > │             v270.l0 <- v275                                                  │

00:00:28 #2391 [Debug] > │             ()                                                               │

00:00:28 #2392 [Debug] > │         v259.[int v262] <- v269                                              │

00:00:28 #2393 [Debug] > │         let v276 : uint64 = v262 + 1UL                                       │

00:00:28 #2394 [Debug] > │         v260.l0 <- v276                                                      │

00:00:28 #2395 [Debug] > │         ()                                                                   │

00:00:28 #2396 [Debug] > │     let v277 : ((float []) []) = v259 |> Array.transpose                     │

00:00:28 #2397 [Debug] > │     let v278 : uint64 = System.Convert.ToUInt64 v277.Length                  │

00:00:28 #2398 [Debug] > │     let v279 : (float []) = Array.zeroCreate<float>                          │

00:00:28 #2399 [Debug] > │ (System.Convert.ToInt32(v278))                                               │

00:00:28 #2400 [Debug] > │     let v280 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:28 #2401 [Debug] > │     while method4(v278, v280) do                                             │

00:00:28 #2402 [Debug] > │         let v282 : uint64 = v280.l0                                          │

00:00:28 #2403 [Debug] > │         let v283 : (float []) = v277.[int v282]                              │

00:00:28 #2404 [Debug] > │         let v284 : float = v283 |> Array.average                             │

00:00:28 #2405 [Debug] > │         v279.[int v282] <- v284                                              │

00:00:28 #2406 [Debug] > │         let v285 : uint64 = v282 + 1UL                                       │

00:00:28 #2407 [Debug] > │         v280.l0 <- v285                                                      │

00:00:28 #2408 [Debug] > │         ()                                                                   │

00:00:28 #2409 [Debug] > │     let v286 : (float -> int64) = int64                                      │

00:00:28 #2410 [Debug] > │     let v287 : uint64 = System.Convert.ToUInt64 v279.Length                  │

00:00:28 #2411 [Debug] > │     let v288 : (int64 []) = Array.zeroCreate<int64>                          │

00:00:28 #2412 [Debug] > │ (System.Convert.ToInt32(v287))                                               │

00:00:28 #2413 [Debug] > │     let v289 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:28 #2414 [Debug] > │     while method4(v287, v289) do                                             │

00:00:28 #2415 [Debug] > │         let v291 : uint64 = v289.l0                                          │

00:00:28 #2416 [Debug] > │         let v292 : float = v279.[int v291]                                   │

00:00:28 #2417 [Debug] > │         let v293 : int64 = v286 v292                                         │

00:00:28 #2418 [Debug] > │         v288.[int v291] <- v293                                              │

00:00:28 #2419 [Debug] > │         let v294 : uint64 = v291 + 1UL                                       │

00:00:28 #2420 [Debug] > │         v289.l0 <- v294                                                      │

00:00:28 #2421 [Debug] > │         ()                                                                   │

00:00:28 #2422 [Debug] > │     let v295 : uint64 = System.Convert.ToUInt64 v288.Length                  │

00:00:28 #2423 [Debug] > │     let v296 : UH5 = UH5_1                                                   │

00:00:28 #2424 [Debug] > │     let v297 : Mut3 = {l0 = 0UL; l1 = v296; l2 = 0} : Mut3                   │

00:00:28 #2425 [Debug] > │     while method22(v295, v297) do                                            │

00:00:28 #2426 [Debug] > │         let v299 : uint64 = v297.l0                                          │

00:00:28 #2427 [Debug] > │         let struct (v300 : UH5, v301 : int32) = v297.l1, v297.l2             │

00:00:28 #2428 [Debug] > │         let v302 : int64 = v288.[int v299]                                   │

00:00:28 #2429 [Debug] > │         let v303 : int32 = v301 + 1                                          │

00:00:28 #2430 [Debug] > │         let v304 : uint64 = v299 + 1UL                                       │

00:00:28 #2431 [Debug] > │         let v305 : UH5 = UH5_0(v301, v302, v300)                             │

00:00:28 #2432 [Debug] > │         v297.l0 <- v304                                                      │

00:00:28 #2433 [Debug] > │         v297.l1 <- v305                                                      │

00:00:28 #2434 [Debug] > │         v297.l2 <- v303                                                      │

00:00:28 #2435 [Debug] > │         ()                                                                   │

00:00:28 #2436 [Debug] > │     let struct (v306 : UH5, v307 : int32) = v297.l1, v297.l2                 │

00:00:28 #2437 [Debug] > │     let v308 : UH5 = UH5_1                                                   │

00:00:28 #2438 [Debug] > │     let v309 : UH5 = method23(v306, v308)                                    │

00:00:28 #2439 [Debug] > │     let v310 : (struct (int32 * int64) []) = method33(v309)                  │

00:00:28 #2440 [Debug] > │     System.Console.WriteLine v2                                              │

00:00:28 #2441 [Debug] > │     let v311 : string = "Average Ranking  "                                  │

00:00:28 #2442 [Debug] > │     System.Console.WriteLine v311                                            │

00:00:28 #2443 [Debug] > │     let v312 : (struct (int32 * int64) -> int64) = closure11()               │

00:00:28 #2444 [Debug] > │     let v313 : (struct (int32 * int64) []) = v310 |> Array.sortBy v312       │

00:00:28 #2445 [Debug] > │     let v314 : uint64 = System.Convert.ToUInt64 v313.Length                  │

00:00:28 #2446 [Debug] > │     let v315 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:28 #2447 [Debug] > │     while method4(v314, v315) do                                             │

00:00:28 #2448 [Debug] > │         let v317 : uint64 = v315.l0                                          │

00:00:28 #2449 [Debug] > │         let struct (v318 : int32, v319 : int64) = v313.[int v317]            │

00:00:28 #2450 [Debug] > │         let v320 : string = $"Test case %d{v318 + 1}. Average Time: %A{v319} │

00:00:28 #2451 [Debug] > │ "                                                                            │

00:00:28 #2452 [Debug] > │         System.Console.WriteLine v320                                        │

00:00:28 #2453 [Debug] > │         let v321 : uint64 = v317 + 1UL                                       │

00:00:28 #2454 [Debug] > │         v315.l0 <- v321                                                      │

00:00:28 #2455 [Debug] > │         ()                                                                   │

00:00:28 #2456 [Debug] > │     ()                                                                       │

00:00:28 #2457 [Debug] > │ and method0 () : unit =                                                      │

00:00:28 #2458 [Debug] > │     let v0 : (unit -> unit) = closure0()                                     │

00:00:28 #2459 [Debug] > │     let v1 : string = nameof v0                                              │

00:00:28 #2460 [Debug] > │     let v2 : string = ""                                                     │

00:00:28 #2461 [Debug] > │     System.Console.WriteLine v2                                              │

00:00:28 #2462 [Debug] > │     System.Console.WriteLine v2                                              │

00:00:28 #2463 [Debug] > │     let v3 : string = $"Test: {v1}"                                          │

00:00:28 #2464 [Debug] > │     System.Console.WriteLine v3                                              │

00:00:28 #2465 [Debug] > │     let v4 : float = 0.0                                                     │

00:00:28 #2466 [Debug] > │     let v5 : float = 1.0                                                     │

00:00:28 #2467 [Debug] > │     let v6 : float = 2.0                                                     │

00:00:28 #2468 [Debug] > │     let v7 : float = 3.0                                                     │

00:00:28 #2469 [Debug] > │     let v8 : float = 5.0                                                     │

00:00:28 #2470 [Debug] > │     let v9 : float = 6.0                                                     │

00:00:28 #2471 [Debug] > │     let v10 : UH0 = UH0_1                                                    │

00:00:28 #2472 [Debug] > │     let v11 : UH0 = UH0_0(v8, v9, v10)                                       │

00:00:28 #2473 [Debug] > │     let v12 : UH0 = UH0_0(v6, v7, v11)                                       │

00:00:28 #2474 [Debug] > │     let v13 : UH0 = UH0_0(v4, v5, v12)                                       │

00:00:28 #2475 [Debug] > │     let v14 : (struct (float * float) []) = method1(v13)                     │

00:00:28 #2476 [Debug] > │     let v15 : uint64 = System.Convert.ToUInt64 v14.Length                    │

00:00:28 #2477 [Debug] > │     let v16 : (struct (string * string * string * (int64 [])) []) =          │

00:00:28 #2478 [Debug] > │ Array.zeroCreate<struct (string * string * string * (int64 []))>             │

00:00:28 #2479 [Debug] > │ (System.Convert.ToInt32(v15))                                                │

00:00:28 #2480 [Debug] > │     let v17 : Mut0 = {l0 = 0UL} : Mut0                                       │

00:00:28 #2481 [Debug] > │     while method4(v15, v17) do                                               │

00:00:28 #2482 [Debug] > │         let v19 : uint64 = v17.l0                                            │

00:00:28 #2483 [Debug] > │         let struct (v20 : float, v21 : float) = v14.[int v19]                │

00:00:28 #2484 [Debug] > │         let v22 : string = $"%A{v20}"                                        │

00:00:28 #2485 [Debug] > │         System.Console.WriteLine v2                                          │

00:00:28 #2486 [Debug] > │         let v23 : string = $"Solution: {v22}  "                              │

00:00:28 #2487 [Debug] > │         System.Console.WriteLine v23                                         │

00:00:28 #2488 [Debug] > │         let v24 : int32 = 0                                                  │

00:00:28 #2489 [Debug] > │         let v25 : string = "A"                                               │

00:00:28 #2490 [Debug] > │         let v26 : (float -> float) = closure1()                              │

00:00:28 #2491 [Debug] > │         let v27 : UH1 = UH1_1                                                │

00:00:28 #2492 [Debug] > │         let v28 : UH1 = UH1_0(v24, v25, v26, v27)                            │

00:00:28 #2493 [Debug] > │         let v29 : (struct (int32 * string * (float -> float)) []) =          │

00:00:28 #2494 [Debug] > │ method5(v28)                                                                 │

00:00:28 #2495 [Debug] > │         let v30 : uint64 = System.Convert.ToUInt64 v29.Length                │

00:00:28 #2496 [Debug] > │         let v31 : (struct (float * int64) []) = Array.zeroCreate<struct      │

00:00:28 #2497 [Debug] > │ (float * int64)> (System.Convert.ToInt32(v30))                               │

00:00:28 #2498 [Debug] > │         let v32 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:00:28 #2499 [Debug] > │         while method4(v30, v32) do                                           │

00:00:28 #2500 [Debug] > │             let v34 : uint64 = v32.l0                                        │

00:00:28 #2501 [Debug] > │             let struct (v35 : int32, v36 : string, v37 : (float -> float)) = │

00:00:28 #2502 [Debug] > │ v29.[int v34]                                                                │

00:00:28 #2503 [Debug] > │             #if FABLE_COMPILER_RUST                                          │

00:00:28 #2504 [Debug] > │             let v38 : (unit -> unit) = closure2()                            │

00:00:28 #2505 [Debug] > │             v38 ()                                                           │

00:00:28 #2506 [Debug] > │             #else                                                            │

00:00:28 #2507 [Debug] > │             let v39 : (unit -> unit) = closure3()                            │

00:00:28 #2508 [Debug] > │             v39 ()                                                           │

00:00:28 #2509 [Debug] > │             #endif                                                           │

00:00:28 #2510 [Debug] > │             let v40 : (unit -> System.Diagnostics.Stopwatch) =               │

00:00:28 #2511 [Debug] > │ System.Diagnostics.Stopwatch                                                 │

00:00:28 #2512 [Debug] > │             let v41 : System.Diagnostics.Stopwatch = v40 ()                  │

00:00:28 #2513 [Debug] > │             v41.Start ()                                                     │

00:00:28 #2514 [Debug] > │             let v42 : int64 = v41.ElapsedMilliseconds                        │

00:00:28 #2515 [Debug] > │             let v43 : (int32 []) = Array.zeroCreate<int32> (2000001)         │

00:00:28 #2516 [Debug] > │             let v44 : Mut1 = {l0 = 0} : Mut1                                 │

00:00:28 #2517 [Debug] > │             while method8(v44) do                                            │

00:00:28 #2518 [Debug] > │                 let v46 : int32 = v44.l0                                     │

00:00:28 #2519 [Debug] > │                 v43.[int v46] <- v46                                         │

00:00:28 #2520 [Debug] > │                 let v47 : int32 = v46 + 1                                    │

00:00:28 #2521 [Debug] > │                 v44.l0 <- v47                                                │

00:00:28 #2522 [Debug] > │                 ()                                                           │

00:00:28 #2523 [Debug] > │             let v48 : (int32 -> float) = closure4(v20, v37)                  │

00:00:28 #2524 [Debug] > │             let v49 : (float []) = v43 |> Array.Parallel.map v48             │

00:00:28 #2525 [Debug] > │             let v50 : int32 = v49.Length                                     │

00:00:28 #2526 [Debug] > │             let v51 : int32 = v50 - 1                                        │

00:00:28 #2527 [Debug] > │             let v52 : float = v49.[int v51]                                  │

00:00:28 #2528 [Debug] > │             let v53 : int64 = v41.ElapsedMilliseconds                        │

00:00:28 #2529 [Debug] > │             let v54 : int64 = v53 - v42                                      │

00:00:28 #2530 [Debug] > │             let v55 : string = $"Test case {v35 + 1}. {v36}. Time: {v54}  "  │

00:00:28 #2531 [Debug] > │             System.Console.WriteLine v55                                     │

00:00:28 #2532 [Debug] > │             v31.[int v34] <- struct (v52, v54)                               │

00:00:28 #2533 [Debug] > │             let v56 : uint64 = v34 + 1UL                                     │

00:00:28 #2534 [Debug] > │             v32.l0 <- v56                                                    │

00:00:28 #2535 [Debug] > │             ()                                                               │

00:00:28 #2536 [Debug] > │         let v57 : uint64 = System.Convert.ToUInt64 v31.Length                │

00:00:28 #2537 [Debug] > │         let v58 : (float []) = Array.zeroCreate<float>                       │

00:00:28 #2538 [Debug] > │ (System.Convert.ToInt32(v57))                                                │

00:00:28 #2539 [Debug] > │         let v59 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:00:28 #2540 [Debug] > │         while method4(v57, v59) do                                           │

00:00:28 #2541 [Debug] > │             let v61 : uint64 = v59.l0                                        │

00:00:28 #2542 [Debug] > │             let struct (v62 : float, v63 : int64) = v31.[int v61]            │

00:00:28 #2543 [Debug] > │             v58.[int v61] <- v62                                             │

00:00:28 #2544 [Debug] > │             let v64 : uint64 = v61 + 1UL                                     │

00:00:28 #2545 [Debug] > │             v59.l0 <- v64                                                    │

00:00:28 #2546 [Debug] > │             ()                                                               │

00:00:28 #2547 [Debug] > │         let v65 : uint64 = System.Convert.ToUInt64 v58.Length                │

00:00:28 #2548 [Debug] > │         let v66 : bool = v65 <= 1UL                                          │

00:00:28 #2549 [Debug] > │         if v66 then                                                          │

00:00:28 #2550 [Debug] > │             ()                                                               │

00:00:28 #2551 [Debug] > │         else                                                                 │

00:00:28 #2552 [Debug] > │             let v67 : float = v58.[int 0UL]                                  │

00:00:28 #2553 [Debug] > │             let v68 : uint64 = 0UL                                           │

00:00:28 #2554 [Debug] > │             let v69 : bool = method9(v67, v58, v68)                          │

00:00:28 #2555 [Debug] > │             if v69 then                                                      │

00:00:28 #2556 [Debug] > │                 ()                                                           │

00:00:28 #2557 [Debug] > │             else                                                             │

00:00:28 #2558 [Debug] > │                 let v70 : string = $"Challenge error: {v58}"                 │

00:00:28 #2559 [Debug] > │                 failwith<unit> v70                                           │

00:00:28 #2560 [Debug] > │         let v71 : string = $"%A{v21}"                                        │

00:00:28 #2561 [Debug] > │         let v72 : (float []) = Array.zeroCreate<float>                       │

00:00:28 #2562 [Debug] > │ (System.Convert.ToInt32(v57))                                                │

00:00:28 #2563 [Debug] > │         let v73 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:00:28 #2564 [Debug] > │         while method4(v57, v73) do                                           │

00:00:28 #2565 [Debug] > │             let v75 : uint64 = v73.l0                                        │

00:00:28 #2566 [Debug] > │             let struct (v76 : float, v77 : int64) = v31.[int v75]            │

00:00:28 #2567 [Debug] > │             v72.[int v75] <- v76                                             │

00:00:28 #2568 [Debug] > │             let v78 : uint64 = v75 + 1UL                                     │

00:00:28 #2569 [Debug] > │             v73.l0 <- v78                                                    │

00:00:28 #2570 [Debug] > │             ()                                                               │

00:00:28 #2571 [Debug] > │         let v79 : float = v72.[int 0UL]                                      │

00:00:28 #2572 [Debug] > │         let v80 : string = $"%A{v79}"                                        │

00:00:28 #2573 [Debug] > │         let v81 : (int64 []) = Array.zeroCreate<int64>                       │

00:00:28 #2574 [Debug] > │ (System.Convert.ToInt32(v57))                                                │

00:00:28 #2575 [Debug] > │         let v82 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:00:28 #2576 [Debug] > │         while method4(v57, v82) do                                           │

00:00:28 #2577 [Debug] > │             let v84 : uint64 = v82.l0                                        │

00:00:28 #2578 [Debug] > │             let struct (v85 : float, v86 : int64) = v31.[int v84]            │

00:00:28 #2579 [Debug] > │             v81.[int v84] <- v86                                             │

00:00:28 #2580 [Debug] > │             let v87 : uint64 = v84 + 1UL                                     │

00:00:28 #2581 [Debug] > │             v82.l0 <- v87                                                    │

00:00:28 #2582 [Debug] > │             ()                                                               │

00:00:28 #2583 [Debug] > │         v16.[int v19] <- struct (v71, v22, v80, v81)                         │

00:00:28 #2584 [Debug] > │         let v88 : uint64 = v19 + 1UL                                         │

00:00:28 #2585 [Debug] > │         v17.l0 <- v88                                                        │

00:00:28 #2586 [Debug] > │         ()                                                                   │

00:00:28 #2587 [Debug] > │     let v89 : uint64 = System.Convert.ToUInt64 v16.Length                    │

00:00:28 #2588 [Debug] > │     let v90 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * US0)> │

00:00:28 #2589 [Debug] > │ (System.Convert.ToInt32(v89))                                                │

00:00:28 #2590 [Debug] > │     let v91 : Mut0 = {l0 = 0UL} : Mut0                                       │

00:00:28 #2591 [Debug] > │     while method4(v89, v91) do                                               │

00:00:28 #2592 [Debug] > │         let v93 : uint64 = v91.l0                                            │

00:00:28 #2593 [Debug] > │         let struct (v94 : string, v95 : string, v96 : string, v97 : (int64 [ │

00:00:28 #2594 [Debug] > │ ])) = v16.[int v93]                                                          │

00:00:28 #2595 [Debug] > │         let v98 : uint64 = System.Convert.ToUInt64 v97.Length                │

00:00:28 #2596 [Debug] > │         let v99 : UH3 = UH3_1                                                │

00:00:28 #2597 [Debug] > │         let v100 : Mut2 = {l0 = 0UL; l1 = v99; l2 = 0L} : Mut2               │

00:00:28 #2598 [Debug] > │         while method10(v98, v100) do                                         │

00:00:28 #2599 [Debug] > │             let v102 : uint64 = v100.l0                                      │

00:00:28 #2600 [Debug] > │             let struct (v103 : UH3, v104 : int64) = v100.l1, v100.l2         │

00:00:28 #2601 [Debug] > │             let v105 : int64 = v97.[int v102]                                │

00:00:28 #2602 [Debug] > │             let v106 : int64 = v104 + 1L                                     │

00:00:28 #2603 [Debug] > │             let v107 : uint64 = v102 + 1UL                                   │

00:00:28 #2604 [Debug] > │             let v108 : UH3 = UH3_0(v104, v105, v103)                         │

00:00:28 #2605 [Debug] > │             v100.l0 <- v107                                                  │

00:00:28 #2606 [Debug] > │             v100.l1 <- v108                                                  │

00:00:28 #2607 [Debug] > │             v100.l2 <- v106                                                  │

00:00:28 #2608 [Debug] > │             ()                                                               │

00:00:28 #2609 [Debug] > │         let struct (v109 : UH3, v110 : int64) = v100.l1, v100.l2             │

00:00:28 #2610 [Debug] > │         let v111 : UH3 = UH3_1                                               │

00:00:28 #2611 [Debug] > │         let v112 : UH3 = method11(v109, v111)                                │

00:00:28 #2612 [Debug] > │         let v113 : (struct (int64 * int64) []) = method12(v112)              │

00:00:28 #2613 [Debug] > │         let v114 : int32 = v113.Length                                       │

00:00:28 #2614 [Debug] > │         let v115 : (struct (int64 * int64) []) = Array.zeroCreate<struct     │

00:00:28 #2615 [Debug] > │ (int64 * int64)> (v114)                                                      │

00:00:28 #2616 [Debug] > │         let v116 : Mut1 = {l0 = 0} : Mut1                                    │

00:00:28 #2617 [Debug] > │         while method15(v114, v116) do                                        │

00:00:28 #2618 [Debug] > │             let v118 : int32 = v116.l0                                       │

00:00:28 #2619 [Debug] > │             let struct (v119 : int64, v120 : int64) = v113.[int v118]        │

00:00:28 #2620 [Debug] > │             let v121 : int64 = v119 + 1L                                     │

00:00:28 #2621 [Debug] > │             v115.[int v118] <- struct (v121, v120)                           │

00:00:28 #2622 [Debug] > │             let v122 : int32 = v118 + 1                                      │

00:00:28 #2623 [Debug] > │             v116.l0 <- v122                                                  │

00:00:28 #2624 [Debug] > │             ()                                                               │

00:00:28 #2625 [Debug] > │         let v123 : (struct (int64 * int64) -> int64) = closure5()            │

00:00:28 #2626 [Debug] > │         let v124 : (struct (int64 * int64) []) = v115 |> Array.sortBy v123   │

00:00:28 #2627 [Debug] > │         let struct (v125 : int64, v126 : int64) = v124.[int 0]               │

00:00:28 #2628 [Debug] > │         let v127 : string = $"%A{struct (v125, v126)}"                       │

00:00:28 #2629 [Debug] > │         let v128 : bool = v94 = v96                                          │

00:00:28 #2630 [Debug] > │         let v133 : US0 =                                                     │

00:00:28 #2631 [Debug] > │             if v128 then                                                     │

00:00:28 #2632 [Debug] > │                 let v129 : System.ConsoleColor =                             │

00:00:28 #2633 [Debug] > │ System.ConsoleColor.DarkGreen                                                │

00:00:28 #2634 [Debug] > │                 US0_1(v129)                                                  │

00:00:28 #2635 [Debug] > │             else                                                             │

00:00:28 #2636 [Debug] > │                 let v131 : System.ConsoleColor = System.ConsoleColor.DarkRed │

00:00:28 #2637 [Debug] > │                 US0_1(v131)                                                  │

00:00:28 #2638 [Debug] > │         let v134 : UH2 = UH2_1                                               │

00:00:28 #2639 [Debug] > │         let v135 : UH2 = UH2_0(v127, v134)                                   │

00:00:28 #2640 [Debug] > │         let v136 : UH2 = UH2_0(v96, v135)                                    │

00:00:28 #2641 [Debug] > │         let v137 : UH2 = UH2_0(v94, v136)                                    │

00:00:28 #2642 [Debug] > │         let v138 : UH2 = UH2_0(v95, v137)                                    │

00:00:28 #2643 [Debug] > │         v90.[int v93] <- struct (v138, v133)                                 │

00:00:28 #2644 [Debug] > │         let v139 : uint64 = v93 + 1UL                                        │

00:00:28 #2645 [Debug] > │         v91.l0 <- v139                                                       │

00:00:28 #2646 [Debug] > │         ()                                                                   │

00:00:28 #2647 [Debug] > │     let v140 : string = "Input"                                              │

00:00:28 #2648 [Debug] > │     let v141 : string = "Expected"                                           │

00:00:28 #2649 [Debug] > │     let v142 : string = "Result"                                             │

00:00:28 #2650 [Debug] > │     let v143 : string = "Best"                                               │

00:00:28 #2651 [Debug] > │     let v144 : UH2 = UH2_1                                                   │

00:00:28 #2652 [Debug] > │     let v145 : UH2 = UH2_0(v143, v144)                                       │

00:00:28 #2653 [Debug] > │     let v146 : UH2 = UH2_0(v142, v145)                                       │

00:00:28 #2654 [Debug] > │     let v147 : UH2 = UH2_0(v141, v146)                                       │

00:00:28 #2655 [Debug] > │     let v148 : UH2 = UH2_0(v140, v147)                                       │

00:00:28 #2656 [Debug] > │     let v149 : US0 = US0_0                                                   │

00:00:28 #2657 [Debug] > │     let v150 : string = "---"                                                │

00:00:28 #2658 [Debug] > │     let v151 : UH2 = UH2_1                                                   │

00:00:28 #2659 [Debug] > │     let v152 : UH2 = UH2_0(v150, v151)                                       │

00:00:28 #2660 [Debug] > │     let v153 : UH2 = UH2_0(v150, v152)                                       │

00:00:28 #2661 [Debug] > │     let v154 : UH2 = UH2_0(v150, v153)                                       │

00:00:28 #2662 [Debug] > │     let v155 : UH2 = UH2_0(v150, v154)                                       │

00:00:28 #2663 [Debug] > │     let v156 : US0 = US0_0                                                   │

00:00:28 #2664 [Debug] > │     let v157 : UH4 = UH4_1                                                   │

00:00:28 #2665 [Debug] > │     let v158 : UH4 = UH4_0(v155, v156, v157)                                 │

00:00:28 #2666 [Debug] > │     let v159 : UH4 = UH4_0(v148, v149, v158)                                 │

00:00:28 #2667 [Debug] > │     let v160 : (struct (UH2 * US0) []) = method16(v159)                      │

00:00:28 #2668 [Debug] > │     let v161 : uint64 = System.Convert.ToUInt64 v160.Length                  │

00:00:28 #2669 [Debug] > │     let v162 : uint64 = System.Convert.ToUInt64 v90.Length                   │

00:00:28 #2670 [Debug] > │     let v163 : uint64 = v161 + v162                                          │

00:00:28 #2671 [Debug] > │     let v164 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 *      │

00:00:28 #2672 [Debug] > │ US0)> (System.Convert.ToInt32(v163))                                         │

00:00:28 #2673 [Debug] > │     let v165 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:28 #2674 [Debug] > │     while method4(v163, v165) do                                             │

00:00:28 #2675 [Debug] > │         let v167 : uint64 = v165.l0                                          │

00:00:28 #2676 [Debug] > │         let v168 : bool = v167 < v161                                        │

00:00:28 #2677 [Debug] > │         let struct (v174 : UH2, v175 : US0) =                                │

00:00:28 #2678 [Debug] > │             if v168 then                                                     │

00:00:28 #2679 [Debug] > │                 let struct (v169 : UH2, v170 : US0) = v160.[int v167]        │

00:00:28 #2680 [Debug] > │                 struct (v169, v170)                                          │

00:00:28 #2681 [Debug] > │             else                                                             │

00:00:28 #2682 [Debug] > │                 let v171 : uint64 = v167 - v161                              │

00:00:28 #2683 [Debug] > │                 let struct (v172 : UH2, v173 : US0) = v90.[int v171]         │

00:00:28 #2684 [Debug] > │                 struct (v172, v173)                                          │

00:00:28 #2685 [Debug] > │         v164.[int v167] <- struct (v174, v175)                               │

00:00:28 #2686 [Debug] > │         let v176 : uint64 = v167 + 1UL                                       │

00:00:28 #2687 [Debug] > │         v165.l0 <- v176                                                      │

00:00:28 #2688 [Debug] > │         ()                                                                   │

00:00:28 #2689 [Debug] > │     let v177 : uint64 = System.Convert.ToUInt64 v164.Length                  │

00:00:28 #2690 [Debug] > │     let v178 : ((string []) []) = Array.zeroCreate<(string [])>              │

00:00:28 #2691 [Debug] > │ (System.Convert.ToInt32(v177))                                               │

00:00:28 #2692 [Debug] > │     let v179 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:28 #2693 [Debug] > │     while method4(v177, v179) do                                             │

00:00:28 #2694 [Debug] > │         let v181 : uint64 = v179.l0                                          │

00:00:28 #2695 [Debug] > │         let struct (v182 : UH2, v183 : US0) = v164.[int v181]                │

00:00:28 #2696 [Debug] > │         let v184 : (string []) = method19(v182)                              │

00:00:28 #2697 [Debug] > │         v178.[int v181] <- v184                                              │

00:00:28 #2698 [Debug] > │         let v185 : uint64 = v181 + 1UL                                       │

00:00:28 #2699 [Debug] > │         v179.l0 <- v185                                                      │

00:00:28 #2700 [Debug] > │         ()                                                                   │

00:00:28 #2701 [Debug] > │     let v186 : ((string []) []) = v178 |> Array.transpose                    │

00:00:28 #2702 [Debug] > │     let v187 : uint64 = System.Convert.ToUInt64 v186.Length                  │

00:00:28 #2703 [Debug] > │     let v188 : (int64 []) = Array.zeroCreate<int64>                          │

00:00:28 #2704 [Debug] > │ (System.Convert.ToInt32(v187))                                               │

00:00:28 #2705 [Debug] > │     let v189 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:28 #2706 [Debug] > │     while method4(v187, v189) do                                             │

00:00:28 #2707 [Debug] > │         let v191 : uint64 = v189.l0                                          │

00:00:28 #2708 [Debug] > │         let v192 : (string []) = v186.[int v191]                             │

00:00:28 #2709 [Debug] > │         let v193 : uint64 = System.Convert.ToUInt64 v192.Length              │

00:00:28 #2710 [Debug] > │         let v194 : (int64 []) = Array.zeroCreate<int64>                      │

00:00:28 #2711 [Debug] > │ (System.Convert.ToInt32(v193))                                               │

00:00:28 #2712 [Debug] > │         let v195 : Mut0 = {l0 = 0UL} : Mut0                                  │

00:00:28 #2713 [Debug] > │         while method4(v193, v195) do                                         │

00:00:28 #2714 [Debug] > │             let v197 : uint64 = v195.l0                                      │

00:00:28 #2715 [Debug] > │             let v198 : string = v192.[int v197]                              │

00:00:28 #2716 [Debug] > │             let v199 : int64 = System.Convert.ToInt64 v198.Length            │

00:00:28 #2717 [Debug] > │             v194.[int v197] <- v199                                          │

00:00:28 #2718 [Debug] > │             let v200 : uint64 = v197 + 1UL                                   │

00:00:28 #2719 [Debug] > │             v195.l0 <- v200                                                  │

00:00:28 #2720 [Debug] > │             ()                                                               │

00:00:28 #2721 [Debug] > │         let v201 : (int64 []) = v194 |> Array.sortDescending                 │

00:00:28 #2722 [Debug] > │         let v202 : int64 option = v201 |> Array.tryItem 0                    │

00:00:28 #2723 [Debug] > │         let v203 : (int64 -> US1) = closure6()                               │

00:00:28 #2724 [Debug] > │         let v204 : US1 = US1_0                                               │

00:00:28 #2725 [Debug] > │         let v205 : US1 = v202 |> Option.map v203 |> Option.defaultValue v204 │

00:00:28 #2726 [Debug] > │         let v208 : int64 =                                                   │

00:00:28 #2727 [Debug] > │             match v205 with                                                  │

00:00:28 #2728 [Debug] > │             | US1_0 -> (* None *)                                            │

00:00:28 #2729 [Debug] > │                 0L                                                           │

00:00:28 #2730 [Debug] > │             | US1_1(v206) -> (* Some *)                                      │

00:00:28 #2731 [Debug] > │                 v206                                                         │

00:00:28 #2732 [Debug] > │         v188.[int v191] <- v208                                              │

00:00:28 #2733 [Debug] > │         let v209 : uint64 = v191 + 1UL                                       │

00:00:28 #2734 [Debug] > │         v189.l0 <- v209                                                      │

00:00:28 #2735 [Debug] > │         ()                                                                   │

00:00:28 #2736 [Debug] > │     let v210 : uint64 = System.Convert.ToUInt64 v188.Length                  │

00:00:28 #2737 [Debug] > │     let v211 : UH5 = UH5_1                                                   │

00:00:28 #2738 [Debug] > │     let v212 : Mut3 = {l0 = 0UL; l1 = v211; l2 = 0} : Mut3                   │

00:00:28 #2739 [Debug] > │     while method22(v210, v212) do                                            │

00:00:28 #2740 [Debug] > │         let v214 : uint64 = v212.l0                                          │

00:00:28 #2741 [Debug] > │         let struct (v215 : UH5, v216 : int32) = v212.l1, v212.l2             │

00:00:28 #2742 [Debug] > │         let v217 : int64 = v188.[int v214]                                   │

00:00:28 #2743 [Debug] > │         let v218 : int32 = v216 + 1                                          │

00:00:28 #2744 [Debug] > │         let v219 : uint64 = v214 + 1UL                                       │

00:00:28 #2745 [Debug] > │         let v220 : UH5 = UH5_0(v216, v217, v215)                             │

00:00:28 #2746 [Debug] > │         v212.l0 <- v219                                                      │

00:00:28 #2747 [Debug] > │         v212.l1 <- v220                                                      │

00:00:28 #2748 [Debug] > │         v212.l2 <- v218                                                      │

00:00:28 #2749 [Debug] > │         ()                                                                   │

00:00:28 #2750 [Debug] > │     let struct (v221 : UH5, v222 : int32) = v212.l1, v212.l2                 │

00:00:28 #2751 [Debug] > │     let v223 : UH5 = UH5_1                                                   │

00:00:28 #2752 [Debug] > │     let v224 : UH5 = method23(v221, v223)                                    │

00:00:28 #2753 [Debug] > │     let v225 : (struct (int32 * int64) []) = method24(v224)                  │

00:00:28 #2754 [Debug] > │     let v226 : Map<int32, int64> = v225 |> Array.map (fun (struct (a, b)) -> │

00:00:28 #2755 [Debug] > │ a, b) |> Map.ofArray                                                         │

00:00:28 #2756 [Debug] > │     let v227 : (struct ((string []) * US0) []) = Array.zeroCreate<struct     │

00:00:28 #2757 [Debug] > │ ((string []) * US0)> (System.Convert.ToInt32(v177))                          │

00:00:28 #2758 [Debug] > │     let v228 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:28 #2759 [Debug] > │     while method4(v177, v228) do                                             │

00:00:28 #2760 [Debug] > │         let v230 : uint64 = v228.l0                                          │

00:00:28 #2761 [Debug] > │         let struct (v231 : UH2, v232 : US0) = v164.[int v230]                │

00:00:28 #2762 [Debug] > │         let v233 : UH6 = UH6_1                                               │

00:00:28 #2763 [Debug] > │         let v234 : int32 = 0                                                 │

00:00:28 #2764 [Debug] > │         let struct (v235 : UH6, v236 : int32) = method27(v231, v233, v234)   │

00:00:28 #2765 [Debug] > │         let v237 : UH6 = UH6_1                                               │

00:00:28 #2766 [Debug] > │         let v238 : UH6 = method28(v235, v237)                                │

00:00:28 #2767 [Debug] > │         let v239 : UH2 = UH2_1                                               │

00:00:28 #2768 [Debug] > │         let v240 : UH2 = method29(v226, v238, v239)                          │

00:00:28 #2769 [Debug] > │         let v241 : (string []) = method30(v240)                              │

00:00:28 #2770 [Debug] > │         v227.[int v230] <- struct (v241, v232)                               │

00:00:28 #2771 [Debug] > │         let v242 : uint64 = v230 + 1UL                                       │

00:00:28 #2772 [Debug] > │         v228.l0 <- v242                                                      │

00:00:28 #2773 [Debug] > │         ()                                                                   │

00:00:28 #2774 [Debug] > │     System.Console.WriteLine v2                                              │

00:00:28 #2775 [Debug] > │     let v243 : uint64 = System.Convert.ToUInt64 v227.Length                  │

00:00:28 #2776 [Debug] > │     let v244 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:28 #2777 [Debug] > │     while method4(v243, v244) do                                             │

00:00:28 #2778 [Debug] > │         let v246 : uint64 = v244.l0                                          │

00:00:28 #2779 [Debug] > │         let struct (v247 : (string []), v248 : US0) = v227.[int v246]        │

00:00:28 #2780 [Debug] > │         match v248 with                                                      │

00:00:28 #2781 [Debug] > │         | US0_0 -> (* None *)                                                │

00:00:28 #2782 [Debug] > │             #if FABLE_COMPILER_RUST                                          │

00:00:28 #2783 [Debug] > │             let v252 : (unit -> unit) = closure7()                           │

00:00:28 #2784 [Debug] > │             v252 ()                                                          │

00:00:28 #2785 [Debug] > │             #else                                                            │

00:00:28 #2786 [Debug] > │             let v253 : (unit -> unit) = closure8()                           │

00:00:28 #2787 [Debug] > │             v253 ()                                                          │

00:00:28 #2788 [Debug] > │             #endif                                                           │

00:00:28 #2789 [Debug] > │             ()                                                               │

00:00:28 #2790 [Debug] > │         | US0_1(v249) -> (* Some *)                                          │

00:00:28 #2791 [Debug] > │             #if FABLE_COMPILER_RUST                                          │

00:00:28 #2792 [Debug] > │             let v250 : (unit -> unit) = closure9()                           │

00:00:28 #2793 [Debug] > │             v250 ()                                                          │

00:00:28 #2794 [Debug] > │             #else                                                            │

00:00:28 #2795 [Debug] > │             let v251 : (unit -> unit) = closure10(v249)                      │

00:00:28 #2796 [Debug] > │             v251 ()                                                          │

00:00:28 #2797 [Debug] > │             #endif                                                           │

00:00:28 #2798 [Debug] > │             ()                                                               │

00:00:28 #2799 [Debug] > │         let v254 : string = "\t| "                                           │

00:00:28 #2800 [Debug] > │         let v255 : string = System.String.Join (v254, v247)                  │

00:00:28 #2801 [Debug] > │         System.Console.WriteLine v255                                        │

00:00:28 #2802 [Debug] > │         #if FABLE_COMPILER_RUST                                              │

00:00:28 #2803 [Debug] > │         let v256 : (unit -> unit) = closure7()                               │

00:00:28 #2804 [Debug] > │         v256 ()                                                              │

00:00:28 #2805 [Debug] > │         #else                                                                │

00:00:28 #2806 [Debug] > │         let v257 : (unit -> unit) = closure8()                               │

00:00:28 #2807 [Debug] > │         v257 ()                                                              │

00:00:28 #2808 [Debug] > │         #endif                                                               │

00:00:28 #2809 [Debug] > │         let v258 : uint64 = v246 + 1UL                                       │

00:00:28 #2810 [Debug] > │         v244.l0 <- v258                                                      │

00:00:28 #2811 [Debug] > │         ()                                                                   │

00:00:28 #2812 [Debug] > │     let v259 : ((float []) []) = Array.zeroCreate<(float [])>                │

00:00:28 #2813 [Debug] > │ (System.Convert.ToInt32(v89))                                                │

00:00:28 #2814 [Debug] > │     let v260 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:28 #2815 [Debug] > │     while method4(v89, v260) do                                              │

00:00:28 #2816 [Debug] > │         let v262 : uint64 = v260.l0                                          │

00:00:28 #2817 [Debug] > │         let struct (v263 : string, v264 : string, v265 : string, v266 :      │

00:00:28 #2818 [Debug] > │ (int64 [])) = v16.[int v262]                                                 │

00:00:28 #2819 [Debug] > │         let v267 : (int64 -> float) = float                                  │

00:00:28 #2820 [Debug] > │         let v268 : uint64 = System.Convert.ToUInt64 v266.Length              │

00:00:28 #2821 [Debug] > │         let v269 : (float []) = Array.zeroCreate<float>                      │

00:00:28 #2822 [Debug] > │ (System.Convert.ToInt32(v268))                                               │

00:00:28 #2823 [Debug] > │         let v270 : Mut0 = {l0 = 0UL} : Mut0                                  │

00:00:28 #2824 [Debug] > │         while method4(v268, v270) do                                         │

00:00:28 #2825 [Debug] > │             let v272 : uint64 = v270.l0                                      │

00:00:28 #2826 [Debug] > │             let v273 : int64 = v266.[int v272]                               │

00:00:28 #2827 [Debug] > │             let v274 : float = v267 v273                                     │

00:00:28 #2828 [Debug] > │             v269.[int v272] <- v274                                          │

00:00:28 #2829 [Debug] > │             let v275 : uint64 = v272 + 1UL                                   │

00:00:28 #2830 [Debug] > │             v270.l0 <- v275                                                  │

00:00:28 #2831 [Debug] > │             ()                                                               │

00:00:28 #2832 [Debug] > │         v259.[int v262] <- v269                                              │

00:00:28 #2833 [Debug] > │         let v276 : uint64 = v262 + 1UL                                       │

00:00:28 #2834 [Debug] > │         v260.l0 <- v276                                                      │

00:00:28 #2835 [Debug] > │         ()                                                                   │

00:00:28 #2836 [Debug] > │     let v277 : ((float []) []) = v259 |> Array.transpose                     │

00:00:28 #2837 [Debug] > │     let v278 : uint64 = System.Convert.ToUInt64 v277.Length                  │

00:00:28 #2838 [Debug] > │     let v279 : (float []) = Array.zeroCreate<float>                          │

00:00:28 #2839 [Debug] > │ (System.Convert.ToInt32(v278))                                               │

00:00:28 #2840 [Debug] > │     let v280 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:28 #2841 [Debug] > │     while method4(v278, v280) do                                             │

00:00:28 #2842 [Debug] > │         let v282 : uint64 = v280.l0                                          │

00:00:28 #2843 [Debug] > │         let v283 : (float []) = v277.[int v282]                              │

00:00:28 #2844 [Debug] > │         let v284 : float = v283 |> Array.average                             │

00:00:28 #2845 [Debug] > │         v279.[int v282] <- v284                                              │

00:00:28 #2846 [Debug] > │         let v285 : uint64 = v282 + 1UL                                       │

00:00:28 #2847 [Debug] > │         v280.l0 <- v285                                                      │

00:00:28 #2848 [Debug] > │         ()                                                                   │

00:00:28 #2849 [Debug] > │     let v286 : (float -> int64) = int64                                      │

00:00:28 #2850 [Debug] > │     let v287 : uint64 = System.Convert.ToUInt64 v279.Length                  │

00:00:28 #2851 [Debug] > │     let v288 : (int64 []) = Array.zeroCreate<int64>                          │

00:00:28 #2852 [Debug] > │ (System.Convert.ToInt32(v287))                                               │

00:00:28 #2853 [Debug] > │     let v289 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:28 #2854 [Debug] > │     while method4(v287, v289) do                                             │

00:00:28 #2855 [Debug] > │         let v291 : uint64 = v289.l0                                          │

00:00:28 #2856 [Debug] > │         let v292 : float = v279.[int v291]                                   │

00:00:28 #2857 [Debug] > │         let v293 : int64 = v286 v292                                         │

00:00:28 #2858 [Debug] > │         v288.[int v291] <- v293                                              │

00:00:28 #2859 [Debug] > │         let v294 : uint64 = v291 + 1UL                                       │

00:00:28 #2860 [Debug] > │         v289.l0 <- v294                                                      │

00:00:28 #2861 [Debug] > │         ()                                                                   │

00:00:28 #2862 [Debug] > │     let v295 : uint64 = System.Convert.ToUInt64 v288.Length                  │

00:00:28 #2863 [Debug] > │     let v296 : UH5 = UH5_1                                                   │

00:00:28 #2864 [Debug] > │     let v297 : Mut3 = {l0 = 0UL; l1 = v296; l2 = 0} : Mut3                   │

00:00:28 #2865 [Debug] > │     while method22(v295, v297) do                                            │

00:00:28 #2866 [Debug] > │         let v299 : uint64 = v297.l0                                          │

00:00:28 #2867 [Debug] > │         let struct (v300 : UH5, v301 : int32) = v297.l1, v297.l2             │

00:00:28 #2868 [Debug] > │         let v302 : int64 = v288.[int v299]                                   │

00:00:28 #2869 [Debug] > │         let v303 : int32 = v301 + 1                                          │

00:00:28 #2870 [Debug] > │         let v304 : uint64 = v299 + 1UL                                       │

00:00:28 #2871 [Debug] > │         let v305 : UH5 = UH5_0(v301, v302, v300)                             │

00:00:28 #2872 [Debug] > │         v297.l0 <- v304                                                      │

00:00:28 #2873 [Debug] > │         v297.l1 <- v305                                                      │

00:00:28 #2874 [Debug] > │         v297.l2 <- v303                                                      │

00:00:28 #2875 [Debug] > │         ()                                                                   │

00:00:28 #2876 [Debug] > │     let struct (v306 : UH5, v307 : int32) = v297.l1, v297.l2                 │

00:00:28 #2877 [Debug] > │     let v308 : UH5 = UH5_1                                                   │

00:00:28 #2878 [Debug] > │     let v309 : UH5 = method23(v306, v308)                                    │

00:00:28 #2879 [Debug] > │     let v310 : (struct (int32 * int64) []) = method33(v309)                  │

00:00:28 #2880 [Debug] > │     System.Console.WriteLine v2                                              │

00:00:28 #2881 [Debug] > │     let v311 : string = "Average Ranking  "                                  │

00:00:28 #2882 [Debug] > │     System.Console.WriteLine v311                                            │

00:00:28 #2883 [Debug] > │     let v312 : (struct (int32 * int64) -> int64) = closure11()               │

00:00:28 #2884 [Debug] > │     let v313 : (struct (int32 * int64) []) = v310 |> Array.sortBy v312       │

00:00:28 #2885 [Debug] > │     let v314 : uint64 = System.Convert.ToUInt64 v313.Length                  │

00:00:28 #2886 [Debug] > │     let v315 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:28 #2887 [Debug] > │     while method4(v314, v315) do                                             │

00:00:28 #2888 [Debug] > │         let v317 : uint64 = v315.l0                                          │

00:00:28 #2889 [Debug] > │         let struct (v318 : int32, v319 : int64) = v313.[int v317]            │

00:00:28 #2890 [Debug] > │         let v320 : string = $"Test case %d{v318 + 1}. Average Time: %A{v319} │

00:00:28 #2891 [Debug] > │ "                                                                            │

00:00:28 #2892 [Debug] > │         System.Console.WriteLine v320                                        │

00:00:28 #2893 [Debug] > │         let v321 : uint64 = v317 + 1UL                                       │

00:00:28 #2894 [Debug] > │         v315.l0 <- v321                                                      │

00:00:28 #2895 [Debug] > │         ()                                                                   │

00:00:28 #2896 [Debug] > │     ()                                                                       │

00:00:28 #2897 [Debug] > │ method0()                                                                    │

00:00:28 #2898 [Debug] > │                                                                              │

00:00:28 #2899 [Debug] > │                                                                              │

00:00:28 #2900 [Debug] > │                                                                              │

00:00:28 #2901 [Debug] > │ Test: v0                                                                     │

00:00:28 #2902 [Debug] > │                                                                              │

00:00:28 #2903 [Debug] > │ Solution: 0.0                                                                │

00:00:28 #2904 [Debug] > │ Test case 1. A. Time: 30                                                     │

00:00:28 #2905 [Debug] > │                                                                              │

00:00:28 #2906 [Debug] > │ Solution: 2.0                                                                │

00:00:28 #2907 [Debug] > │ Test case 1. A. Time: 16                                                     │

00:00:28 #2908 [Debug] > │                                                                              │

00:00:28 #2909 [Debug] > │ Solution: 5.0                                                                │

00:00:28 #2910 [Debug] > │ Test case 1. A. Time: 15                                                     │

00:00:28 #2911 [Debug] > │                                                                              │

00:00:28 #2912 [Debug] > │ Input	| Expected	| Result	| Best                                                   │

00:00:28 #2913 [Debug] > │ ---  	| ---     	| ---   	| ---                                                    │

00:00:28 #2914 [Debug] > │ 0.0  	| 1.0     	| 1.0   	| struct (1L, 30L)                                       │

00:00:28 #2915 [Debug] > │ 2.0  	| 3.0     	| 3.0   	| struct (1L, 16L)                                       │

00:00:28 #2916 [Debug] > │ 5.0  	| 6.0     	| 6.0   	| struct (1L, 15L)                                       │

00:00:28 #2917 [Debug] > │                                                                              │

00:00:28 #2918 [Debug] > │ Average Ranking                                                              │

00:00:28 #2919 [Debug] > │ Test case 1. Average Time: 20L                                               │

00:00:28 #2920 [Debug] > │                                                                              │

00:00:28 #2921 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:30 #2922 [Debug] > [NbConvertApp] Converting notebook benchmark.dib.ipynb to html

00:00:30 #2923 [Debug] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

00:00:30 #2924 [Debug] >   validate(nb)

00:00:30 #2925 [Debug] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:72: UserWarning: IPython3 lexer unavailable, falling back on Python 3

00:00:30 #2926 [Debug] >   return _pygments_highlight(

00:00:30 #2927 [Debug] > [NbConvertApp] Writing 410211 bytes to benchmark.dib.html

00:00:31 #2928 [Debug] executeAsync / exitCode: 0 / output.Length: 217442

00:00:31 #2929 [Debug] main / executeCommand / exitCode: 0

00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60

00:00:00 #2 [Debug] executeAsync / options: { Command =

   "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" port=13805"

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = Some <fun:main@450-1020> }

00:00:00 #3 [Debug] > pwd: C:\home\git\polyglot\lib\spiral

00:00:00 #4 [Debug] > dll_path: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release

00:00:00 #5 [Debug] runWithTimeoutAsync / timeout: 500

00:00:00 #6 [Verbose] waitForPortAccess / port: 13805 / retry: 0

00:00:01 #7 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:

00:00:01 #8 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0

00:00:01 #9 [Debug] > Server bound to: http://localhost:13805

00:00:01 #10 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 stream.dib""

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = None }

00:00:03 #11 [Debug] >

00:00:03 #12 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:03 #13 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:03 #14 [Debug] > │ # stream                                                                     │

00:00:03 #15 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:03 #16 [Debug] >

00:00:03 #17 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:03 #18 [Debug] > // // test

00:00:03 #19 [Debug] >

00:00:03 #20 [Debug] > open testing

00:00:06 #21 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-3304-0472-0d7c29abe401\main.spi

00:00:08 #22 [Debug] >

00:00:08 #23 [Debug] > ╭─[ 5.05s - stdout ]───────────────────────────────────────────────────────────╮

00:00:08 #24 [Debug] > │ ()                                                                           │

00:00:08 #25 [Debug] > │                                                                              │

00:00:08 #26 [Debug] > │                                                                              │

00:00:08 #27 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:08 #28 [Debug] >

00:00:08 #29 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:08 #30 [Debug] > union rec stream t =

00:00:08 #31 [Debug] >     | StreamCons : t * (() -> stream t)

00:00:08 #32 [Debug] >     | StreamNil

00:00:08 #33 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-3589-8904-8fa7c22e9159\main.spi

00:00:08 #34 [Debug] >

00:00:08 #35 [Debug] > ╭─[ 152.26ms - stdout ]────────────────────────────────────────────────────────╮

00:00:08 #36 [Debug] > │ ()                                                                           │

00:00:08 #37 [Debug] > │                                                                              │

00:00:08 #38 [Debug] > │                                                                              │

00:00:08 #39 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:08 #40 [Debug] >

00:00:08 #41 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:08 #42 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:08 #43 [Debug] > │ ## fold                                                                      │

00:00:08 #44 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:08 #45 [Debug] >

00:00:08 #46 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:08 #47 [Debug] > inl fold fn init s =

00:00:08 #48 [Debug] >     inl rec body acc = function

00:00:08 #49 [Debug] >         | StreamCons (st, fn') => loop (fn acc st) (fn' ())

00:00:08 #50 [Debug] >         | StreamNil => acc

00:00:08 #51 [Debug] >     and inl loop acc = join_body body acc

00:00:08 #52 [Debug] >     loop init s

00:00:09 #53 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-3604-0451-092c6d9269b1\main.spi

00:00:09 #54 [Debug] >

00:00:09 #55 [Debug] > ╭─[ 166.64ms - stdout ]────────────────────────────────────────────────────────╮

00:00:09 #56 [Debug] > │ ()                                                                           │

00:00:09 #57 [Debug] > │                                                                              │

00:00:09 #58 [Debug] > │                                                                              │

00:00:09 #59 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:09 #60 [Debug] >

00:00:09 #61 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:09 #62 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:09 #63 [Debug] > │ ## fold_back                                                                 │

00:00:09 #64 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:09 #65 [Debug] >

00:00:09 #66 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:09 #67 [Debug] > inl fold_back fn s init =

00:00:09 #68 [Debug] >     inl rec body acc = function

00:00:09 #69 [Debug] >         | StreamCons (st, fn') => fn st (loop acc (fn' ()))

00:00:09 #70 [Debug] >         | StreamNil => acc

00:00:09 #71 [Debug] >     and inl loop acc = join_body body acc

00:00:09 #72 [Debug] >     loop init s

00:00:09 #73 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-3622-2210-2d9f489586ad\main.spi

00:00:09 #74 [Debug] >

00:00:09 #75 [Debug] > ╭─[ 134.72ms - stdout ]────────────────────────────────────────────────────────╮

00:00:09 #76 [Debug] > │ ()                                                                           │

00:00:09 #77 [Debug] > │                                                                              │

00:00:09 #78 [Debug] > │                                                                              │

00:00:09 #79 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:09 #80 [Debug] >

00:00:09 #81 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:09 #82 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:09 #83 [Debug] > │ ## to_list                                                                   │

00:00:09 #84 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:09 #85 [Debug] >

00:00:09 #86 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:09 #87 [Debug] > inl to_list s =

00:00:09 #88 [Debug] >     (s, [[]])

00:00:09 #89 [Debug] >     ||> fold_back fun x acc =>

00:00:09 #90 [Debug] >         x :: acc

00:00:09 #91 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-3635-3560-32909b2cd433\main.spi

00:00:09 #92 [Debug] >

00:00:09 #93 [Debug] > ╭─[ 152.63ms - stdout ]────────────────────────────────────────────────────────╮

00:00:09 #94 [Debug] > │ ()                                                                           │

00:00:09 #95 [Debug] > │                                                                              │

00:00:09 #96 [Debug] > │                                                                              │

00:00:09 #97 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:09 #98 [Debug] >

00:00:09 #99 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:09 #100 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:09 #101 [Debug] > │ ## rev                                                                       │

00:00:09 #102 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:09 #103 [Debug] >

00:00:09 #104 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:09 #105 [Debug] > inl rev s =

00:00:09 #106 [Debug] >     (StreamNil, s)

00:00:09 #107 [Debug] >     ||> fold fun s x =>

00:00:09 #108 [Debug] >         StreamCons (x, fun () => s)

00:00:09 #109 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-3651-5134-5d08d004c90b\main.spi

00:00:09 #110 [Debug] >

00:00:09 #111 [Debug] > ╭─[ 151.40ms - stdout ]────────────────────────────────────────────────────────╮

00:00:09 #112 [Debug] > │ ()                                                                           │

00:00:09 #113 [Debug] > │                                                                              │

00:00:09 #114 [Debug] > │                                                                              │

00:00:09 #115 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:09 #116 [Debug] >

00:00:09 #117 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:09 #118 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:09 #119 [Debug] > │ ## from_list                                                                 │

00:00:09 #120 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:09 #121 [Debug] >

00:00:09 #122 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:09 #123 [Debug] > inl from_list list =

00:00:09 #124 [Debug] >     (list, StreamNil)

00:00:09 #125 [Debug] >     ||> listm.foldBack fun x acc =>

00:00:09 #126 [Debug] >         StreamCons (x, fun () => acc)

00:00:09 #127 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-3666-6694-63558c7484ce\main.spi

00:00:09 #128 [Debug] >

00:00:09 #129 [Debug] > ╭─[ 183.36ms - stdout ]────────────────────────────────────────────────────────╮

00:00:09 #130 [Debug] > │ ()                                                                           │

00:00:09 #131 [Debug] > │                                                                              │

00:00:09 #132 [Debug] > │                                                                              │

00:00:09 #133 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:09 #134 [Debug] >

00:00:09 #135 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:09 #136 [Debug] > // // test

00:00:09 #137 [Debug] >

00:00:09 #138 [Debug] > listm.init 3i32 id

00:00:09 #139 [Debug] > |> from_list

00:00:09 #140 [Debug] > |> rev

00:00:09 #141 [Debug] > |> to_list

00:00:09 #142 [Debug] > |> _equal [[ 2; 1; 0 ]]

00:00:09 #143 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-3685-8558-8a8ce13ec20e\main.spi

00:00:11 #144 [Debug] >

00:00:11 #145 [Debug] > ╭─[ 1.30s - stdout ]───────────────────────────────────────────────────────────╮

00:00:11 #146 [Debug] > │ type UH0 =                                                                   │

00:00:11 #147 [Debug] > │     | UH0_0 of int32 * UH0                                                   │

00:00:11 #148 [Debug] > │     | UH0_1                                                                  │

00:00:11 #149 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:11 #150 [Debug] > │     let v18 : UH0 = UH0_1                                                    │

00:00:11 #151 [Debug] > │     let v19 : UH0 = UH0_0(0, v18)                                            │

00:00:11 #152 [Debug] > │     let v20 : UH0 = UH0_0(1, v19)                                            │

00:00:11 #153 [Debug] > │     let v21 : UH0 = UH0_0(2, v20)                                            │

00:00:11 #154 [Debug] > │     let v22 : UH0 = UH0_1                                                    │

00:00:11 #155 [Debug] > │     let v23 : UH0 = UH0_0(0, v22)                                            │

00:00:11 #156 [Debug] > │     let v24 : UH0 = UH0_0(1, v23)                                            │

00:00:11 #157 [Debug] > │     let v25 : UH0 = UH0_0(2, v24)                                            │

00:00:11 #158 [Debug] > │     let v26 : string = $"_equal / actual: %A{v21} / expected: %A{v25}"       │

00:00:11 #159 [Debug] > │     ()                                                                       │

00:00:11 #160 [Debug] > │ method0()                                                                    │

00:00:11 #161 [Debug] > │                                                                              │

00:00:11 #162 [Debug] > │                                                                              │

00:00:11 #163 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:11 #164 [Debug] >

00:00:11 #165 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:11 #166 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:11 #167 [Debug] > │ ## try_item                                                                  │

00:00:11 #168 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:11 #169 [Debug] >

00:00:11 #170 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:11 #171 [Debug] > inl try_item i s =

00:00:11 #172 [Debug] >     inl rec body i = function

00:00:11 #173 [Debug] >         | StreamCons (x, _) when i <= 0 => Some x

00:00:11 #174 [Debug] >         | StreamCons (_, fn) => loop (i - 1) (fn ())

00:00:11 #175 [Debug] >         | StreamNil => None

00:00:11 #176 [Debug] >     and inl loop acc s' =

00:00:11 #177 [Debug] >         match var_is acc, var_is s' with

00:00:11 #178 [Debug] >         | false, false => body acc s'

00:00:11 #179 [Debug] >         | _ =>

00:00:11 #180 [Debug] >             inl acc = dyn acc

00:00:11 #181 [Debug] >             inl s' = dyn s'

00:00:11 #182 [Debug] >             join body acc s'

00:00:11 #183 [Debug] >     loop i s

00:00:11 #184 [Debug] >

00:00:11 #185 [Debug] > inl item i =

00:00:11 #186 [Debug] >     try_item i >> optionm.value

00:00:11 #187 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-3817-1758-14bf3367467d\main.spi

00:00:11 #188 [Debug] >

00:00:11 #189 [Debug] > ╭─[ 172.58ms - stdout ]────────────────────────────────────────────────────────╮

00:00:11 #190 [Debug] > │ ()                                                                           │

00:00:11 #191 [Debug] > │                                                                              │

00:00:11 #192 [Debug] > │                                                                              │

00:00:11 #193 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:11 #194 [Debug] >

00:00:11 #195 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:11 #196 [Debug] > // // test

00:00:11 #197 [Debug] >

00:00:11 #198 [Debug] > listm.init 10i32 id

00:00:11 #199 [Debug] > |> from_list

00:00:11 #200 [Debug] > |> item 9i32

00:00:11 #201 [Debug] > |> _equal 9

00:00:11 #202 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-3834-3474-38f2c681eccb\main.spi

00:00:11 #203 [Debug] >

00:00:11 #204 [Debug] > ╭─[ 189.63ms - stdout ]────────────────────────────────────────────────────────╮

00:00:11 #205 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:11 #206 [Debug] > │     let v0 : string = $"_equal / actual: %A{9} / expected: %A{9}"            │

00:00:11 #207 [Debug] > │     ()                                                                       │

00:00:11 #208 [Debug] > │ method0()                                                                    │

00:00:11 #209 [Debug] > │                                                                              │

00:00:11 #210 [Debug] > │                                                                              │

00:00:11 #211 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:11 #212 [Debug] >

00:00:11 #213 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:11 #214 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:11 #215 [Debug] > │ ## new_infinite_stream                                                       │

00:00:11 #216 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:11 #217 [Debug] >

00:00:11 #218 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:11 #219 [Debug] > inl new_infinite_stream fn =

00:00:11 #220 [Debug] >     inl rec loop n =

00:00:11 #221 [Debug] >         StreamCons (fn n, fun () => loop (n + 1))

00:00:11 #222 [Debug] >     loop 0

00:00:11 #223 [Debug] >

00:00:11 #224 [Debug] > inl new_infinite_stream_ fn =

00:00:11 #225 [Debug] >     let rec loop n =

00:00:11 #226 [Debug] >         StreamCons (fn n, fun () => loop (n + 1))

00:00:11 #227 [Debug] >     loop 0

00:00:11 #228 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-3854-5499-554aea784f70\main.spi

00:00:11 #229 [Debug] >

00:00:11 #230 [Debug] > ╭─[ 179.91ms - stdout ]────────────────────────────────────────────────────────╮

00:00:11 #231 [Debug] > │ ()                                                                           │

00:00:11 #232 [Debug] > │                                                                              │

00:00:11 #233 [Debug] > │                                                                              │

00:00:11 #234 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:11 #235 [Debug] >

00:00:11 #236 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:11 #237 [Debug] > // // test

00:00:11 #238 [Debug] >

00:00:11 #239 [Debug] > new_infinite_stream print_and_return

00:00:11 #240 [Debug] > |> item 4i32

00:00:11 #241 [Debug] > |> _equal 4i32

00:00:11 #242 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-3872-7256-7c92e5c13026\main.spi

00:00:11 #243 [Debug] >

00:00:11 #244 [Debug] > ╭─[ 197.18ms - stdout ]────────────────────────────────────────────────────────╮

00:00:11 #245 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:11 #246 [Debug] > │     printfn $"print_and_return / x: {0}"                                     │

00:00:11 #247 [Debug] > │     printfn $"print_and_return / x: {1}"                                     │

00:00:11 #248 [Debug] > │     printfn $"print_and_return / x: {2}"                                     │

00:00:11 #249 [Debug] > │     printfn $"print_and_return / x: {3}"                                     │

00:00:11 #250 [Debug] > │     printfn $"print_and_return / x: {4}"                                     │

00:00:11 #251 [Debug] > │     let v0 : string = $"_equal / actual: %A{4} / expected: %A{4}"            │

00:00:11 #252 [Debug] > │     ()                                                                       │

00:00:11 #253 [Debug] > │ method0()                                                                    │

00:00:11 #254 [Debug] > │                                                                              │

00:00:11 #255 [Debug] > │ print_and_return / x: 0                                                      │

00:00:11 #256 [Debug] > │ print_and_return / x: 1                                                      │

00:00:11 #257 [Debug] > │ print_and_return / x: 2                                                      │

00:00:11 #258 [Debug] > │ print_and_return / x: 3                                                      │

00:00:11 #259 [Debug] > │ print_and_return / x: 4                                                      │

00:00:11 #260 [Debug] > │                                                                              │

00:00:11 #261 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:11 #262 [Debug] >

00:00:11 #263 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:11 #264 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:11 #265 [Debug] > │ ## new_finite_stream                                                         │

00:00:11 #266 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:11 #267 [Debug] >

00:00:11 #268 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:11 #269 [Debug] > inl new_finite_stream fn max =

00:00:11 #270 [Debug] >     inl rec loop n =

00:00:11 #271 [Debug] >         if n >= max

00:00:11 #272 [Debug] >         then StreamNil

00:00:11 #273 [Debug] >         else StreamCons (fn n, fun () => loop (n + 1))

00:00:11 #274 [Debug] >     loop 0

00:00:11 #275 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-3893-9353-9aaba96b36a0\main.spi

00:00:12 #276 [Debug] >

00:00:12 #277 [Debug] > ╭─[ 164.29ms - stdout ]────────────────────────────────────────────────────────╮

00:00:12 #278 [Debug] > │ ()                                                                           │

00:00:12 #279 [Debug] > │                                                                              │

00:00:12 #280 [Debug] > │                                                                              │

00:00:12 #281 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:12 #282 [Debug] >

00:00:12 #283 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:12 #284 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:12 #285 [Debug] > │ ## memoize                                                                   │

00:00:12 #286 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:12 #287 [Debug] >

00:00:12 #288 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:12 #289 [Debug] > union memoized_stream t =

00:00:12 #290 [Debug] >     | NotComputed : () -> stream t

00:00:12 #291 [Debug] >     | Computed : stream t

00:00:12 #292 [Debug] >

00:00:12 #293 [Debug] > inl memoize s =

00:00:12 #294 [Debug] >     inl rec body s =

00:00:12 #295 [Debug] >         inl state = mut (NotComputed s)

00:00:12 #296 [Debug] >         fun () =>

00:00:12 #297 [Debug] >             match *state with

00:00:12 #298 [Debug] >             | Computed x => x

00:00:12 #299 [Debug] >             | NotComputed fn =>

00:00:12 #300 [Debug] >                 inl new_state =

00:00:12 #301 [Debug] >                     match fn () with

00:00:12 #302 [Debug] >                     | StreamNil => StreamNil

00:00:12 #303 [Debug] >                     | StreamCons (x, fn) => StreamCons (x, loop fn)

00:00:12 #304 [Debug] >                 state <- Computed new_state

00:00:12 #305 [Debug] >                 new_state

00:00:12 #306 [Debug] >     and inl loop s' = join_body_unit body s s'

00:00:12 #307 [Debug] >     loop (fun () => s)

00:00:12 #308 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-3910-1028-152702afe939\main.spi

00:00:12 #309 [Debug] >

00:00:12 #310 [Debug] > ╭─[ 152.07ms - stdout ]────────────────────────────────────────────────────────╮

00:00:12 #311 [Debug] > │ ()                                                                           │

00:00:12 #312 [Debug] > │                                                                              │

00:00:12 #313 [Debug] > │                                                                              │

00:00:12 #314 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:12 #315 [Debug] >

00:00:12 #316 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:12 #317 [Debug] > // // test

00:00:12 #318 [Debug] >

00:00:12 #319 [Debug] > inl memo_stream = new_finite_stream print_and_return 10 |> memoize

00:00:12 #320 [Debug] >

00:00:12 #321 [Debug] > memo_stream ()

00:00:12 #322 [Debug] > |> item 3i32

00:00:12 #323 [Debug] > |> _equal 3i32

00:00:12 #324 [Debug] >

00:00:12 #325 [Debug] > memo_stream ()

00:00:12 #326 [Debug] > |> item 5i32

00:00:12 #327 [Debug] > |> _equal 5i32

00:00:12 #328 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-3925-2572-2214a0f6ab99\main.spi

00:00:12 #329 [Debug] >

00:00:12 #330 [Debug] > ╭─[ 741.13ms - stdout ]────────────────────────────────────────────────────────╮

00:00:12 #331 [Debug] > │ type UH0 =                                                                   │

00:00:12 #332 [Debug] > │     | UH0_0 of int32 * (unit -> UH0)                                         │

00:00:12 #333 [Debug] > │     | UH0_1                                                                  │

00:00:12 #334 [Debug] > │ and [<Struct>] US0 =                                                         │

00:00:12 #335 [Debug] > │     | US0_0 of f0_0 : UH0                                                    │

00:00:12 #336 [Debug] > │     | US0_1 of f1_0 : (unit -> UH0)                                          │

00:00:12 #337 [Debug] > │ and Mut0 = {mutable l0 : US0}                                                │

00:00:12 #338 [Debug] > │ and [<Struct>] US1 =                                                         │

00:00:12 #339 [Debug] > │     | US1_0                                                                  │

00:00:12 #340 [Debug] > │     | US1_1 of f1_0 : int32                                                  │

00:00:12 #341 [Debug] > │ let rec closure10 () () : UH0 =                                              │

00:00:12 #342 [Debug] > │     UH0_1                                                                    │

00:00:12 #343 [Debug] > │ and closure9 () () : UH0 =                                                   │

00:00:12 #344 [Debug] > │     printfn $"print_and_return / x: {9}"                                     │

00:00:12 #345 [Debug] > │     let v0 : (unit -> UH0) = closure10()                                     │

00:00:12 #346 [Debug] > │     UH0_0(9, v0)                                                             │

00:00:12 #347 [Debug] > │ and closure8 () () : UH0 =                                                   │

00:00:12 #348 [Debug] > │     printfn $"print_and_return / x: {8}"                                     │

00:00:12 #349 [Debug] > │     let v0 : (unit -> UH0) = closure9()                                      │

00:00:12 #350 [Debug] > │     UH0_0(8, v0)                                                             │

00:00:12 #351 [Debug] > │ and closure7 () () : UH0 =                                                   │

00:00:12 #352 [Debug] > │     printfn $"print_and_return / x: {7}"                                     │

00:00:12 #353 [Debug] > │     let v0 : (unit -> UH0) = closure8()                                      │

00:00:12 #354 [Debug] > │     UH0_0(7, v0)                                                             │

00:00:12 #355 [Debug] > │ and closure6 () () : UH0 =                                                   │

00:00:12 #356 [Debug] > │     printfn $"print_and_return / x: {6}"                                     │

00:00:12 #357 [Debug] > │     let v0 : (unit -> UH0) = closure7()                                      │

00:00:12 #358 [Debug] > │     UH0_0(6, v0)                                                             │

00:00:12 #359 [Debug] > │ and closure5 () () : UH0 =                                                   │

00:00:12 #360 [Debug] > │     printfn $"print_and_return / x: {5}"                                     │

00:00:12 #361 [Debug] > │     let v0 : (unit -> UH0) = closure6()                                      │

00:00:12 #362 [Debug] > │     UH0_0(5, v0)                                                             │

00:00:12 #363 [Debug] > │ and closure4 () () : UH0 =                                                   │

00:00:12 #364 [Debug] > │     printfn $"print_and_return / x: {4}"                                     │

00:00:12 #365 [Debug] > │     let v0 : (unit -> UH0) = closure5()                                      │

00:00:12 #366 [Debug] > │     UH0_0(4, v0)                                                             │

00:00:12 #367 [Debug] > │ and closure3 () () : UH0 =                                                   │

00:00:12 #368 [Debug] > │     printfn $"print_and_return / x: {3}"                                     │

00:00:12 #369 [Debug] > │     let v0 : (unit -> UH0) = closure4()                                      │

00:00:12 #370 [Debug] > │     UH0_0(3, v0)                                                             │

00:00:12 #371 [Debug] > │ and closure2 () () : UH0 =                                                   │

00:00:12 #372 [Debug] > │     printfn $"print_and_return / x: {2}"                                     │

00:00:12 #373 [Debug] > │     let v0 : (unit -> UH0) = closure3()                                      │

00:00:12 #374 [Debug] > │     UH0_0(2, v0)                                                             │

00:00:12 #375 [Debug] > │ and closure1 () () : UH0 =                                                   │

00:00:12 #376 [Debug] > │     printfn $"print_and_return / x: {1}"                                     │

00:00:12 #377 [Debug] > │     let v0 : (unit -> UH0) = closure2()                                      │

00:00:12 #378 [Debug] > │     UH0_0(1, v0)                                                             │

00:00:12 #379 [Debug] > │ and closure0 () () : UH0 =                                                   │

00:00:12 #380 [Debug] > │     let v0 : (unit -> UH0) = closure1()                                      │

00:00:12 #381 [Debug] > │     UH0_0(0, v0)                                                             │

00:00:12 #382 [Debug] > │ and closure11 (v0 : Mut0) () : UH0 =                                         │

00:00:12 #383 [Debug] > │     let v1 : US0 = v0.l0                                                     │

00:00:12 #384 [Debug] > │     match v1 with                                                            │

00:00:12 #385 [Debug] > │     | US0_0(v2) -> (* Computed *)                                            │

00:00:12 #386 [Debug] > │         v2                                                                   │

00:00:12 #387 [Debug] > │     | US0_1(v3) -> (* NotComputed *)                                         │

00:00:12 #388 [Debug] > │         let v4 : UH0 = v3 ()                                                 │

00:00:12 #389 [Debug] > │         let v13 : UH0 =                                                      │

00:00:12 #390 [Debug] > │             match v4 with                                                    │

00:00:12 #391 [Debug] > │             | UH0_0(v6, v7) -> (* StreamCons *)                              │

00:00:12 #392 [Debug] > │                 let v8 : US0 = US0_1(v7)                                     │

00:00:12 #393 [Debug] > │                 let v9 : Mut0 = {l0 = v8} : Mut0                             │

00:00:12 #394 [Debug] > │                 let v10 : (unit -> UH0) = closure11(v9)                      │

00:00:12 #395 [Debug] > │                 UH0_0(v6, v10)                                               │

00:00:12 #396 [Debug] > │             | UH0_1 -> (* StreamNil *)                                       │

00:00:12 #397 [Debug] > │                 UH0_1                                                        │

00:00:12 #398 [Debug] > │         let v14 : US0 = US0_0(v13)                                           │

00:00:12 #399 [Debug] > │         v0.l0 <- v14                                                         │

00:00:12 #400 [Debug] > │         v13                                                                  │

00:00:12 #401 [Debug] > │ and method1 (v0 : int32, v1 : UH0) : US1 =                                   │

00:00:12 #402 [Debug] > │     match v1 with                                                            │

00:00:12 #403 [Debug] > │     | UH0_0(v2, v3) -> (* StreamCons *)                                      │

00:00:12 #404 [Debug] > │         let v4 : bool = v0 <= 0                                              │

00:00:12 #405 [Debug] > │         if v4 then                                                           │

00:00:12 #406 [Debug] > │             US1_1(v2)                                                        │

00:00:12 #407 [Debug] > │         else                                                                 │

00:00:12 #408 [Debug] > │             let v6 : int32 = v0 - 1                                          │

00:00:12 #409 [Debug] > │             let v7 : UH0 = v3 ()                                             │

00:00:12 #410 [Debug] > │             method1(v6, v7)                                                  │

00:00:12 #411 [Debug] > │     | UH0_1 -> (* StreamNil *)                                               │

00:00:12 #412 [Debug] > │         US1_0                                                                │

00:00:12 #413 [Debug] > │ and method0 () : unit =                                                      │

00:00:12 #414 [Debug] > │     printfn $"print_and_return / x: {0}"                                     │

00:00:12 #415 [Debug] > │     let v0 : (unit -> UH0) = closure0()                                      │

00:00:12 #416 [Debug] > │     let v1 : US0 = US0_1(v0)                                                 │

00:00:12 #417 [Debug] > │     let v2 : Mut0 = {l0 = v1} : Mut0                                         │

00:00:12 #418 [Debug] > │     let v3 : US0 = v2.l0                                                     │

00:00:12 #419 [Debug] > │     let v18 : UH0 =                                                          │

00:00:12 #420 [Debug] > │         match v3 with                                                        │

00:00:12 #421 [Debug] > │         | US0_0(v4) -> (* Computed *)                                        │

00:00:12 #422 [Debug] > │             v4                                                               │

00:00:12 #423 [Debug] > │         | US0_1(v5) -> (* NotComputed *)                                     │

00:00:12 #424 [Debug] > │             let v6 : UH0 = v5 ()                                             │

00:00:12 #425 [Debug] > │             let v15 : UH0 =                                                  │

00:00:12 #426 [Debug] > │                 match v6 with                                                │

00:00:12 #427 [Debug] > │                 | UH0_0(v8, v9) -> (* StreamCons *)                          │

00:00:12 #428 [Debug] > │                     let v10 : US0 = US0_1(v9)                                │

00:00:12 #429 [Debug] > │                     let v11 : Mut0 = {l0 = v10} : Mut0                       │

00:00:12 #430 [Debug] > │                     let v12 : (unit -> UH0) = closure11(v11)                 │

00:00:12 #431 [Debug] > │                     UH0_0(v8, v12)                                           │

00:00:12 #432 [Debug] > │                 | UH0_1 -> (* StreamNil *)                                   │

00:00:12 #433 [Debug] > │                     UH0_1                                                    │

00:00:12 #434 [Debug] > │             let v16 : US0 = US0_0(v15)                                       │

00:00:12 #435 [Debug] > │             v2.l0 <- v16                                                     │

00:00:12 #436 [Debug] > │             v15                                                              │

00:00:12 #437 [Debug] > │     let v19 : int32 = 3                                                      │

00:00:12 #438 [Debug] > │     let v20 : US1 = method1(v19, v18)                                        │

00:00:12 #439 [Debug] > │     let v24 : int32 =                                                        │

00:00:12 #440 [Debug] > │         match v20 with                                                       │

00:00:12 #441 [Debug] > │         | US1_0 -> (* None *)                                                │

00:00:12 #442 [Debug] > │             failwith<int32> "Option does not have a value."                  │

00:00:12 #443 [Debug] > │         | US1_1(v21) -> (* Some *)                                           │

00:00:12 #444 [Debug] > │             v21                                                              │

00:00:12 #445 [Debug] > │     let v25 : bool = v24 = 3                                                 │

00:00:12 #446 [Debug] > │     let v26 : string = $"_equal / actual: %A{v24} / expected: %A{3}"         │

00:00:12 #447 [Debug] > │     let v27 : bool = v25 = false                                             │

00:00:12 #448 [Debug] > │     if v27 then                                                              │

00:00:12 #449 [Debug] > │         failwith<unit> v26                                                   │

00:00:12 #450 [Debug] > │     let v28 : US0 = v2.l0                                                    │

00:00:12 #451 [Debug] > │     let v43 : UH0 =                                                          │

00:00:12 #452 [Debug] > │         match v28 with                                                       │

00:00:12 #453 [Debug] > │         | US0_0(v29) -> (* Computed *)                                       │

00:00:12 #454 [Debug] > │             v29                                                              │

00:00:12 #455 [Debug] > │         | US0_1(v30) -> (* NotComputed *)                                    │

00:00:12 #456 [Debug] > │             let v31 : UH0 = v30 ()                                           │

00:00:12 #457 [Debug] > │             let v40 : UH0 =                                                  │

00:00:12 #458 [Debug] > │                 match v31 with                                               │

00:00:12 #459 [Debug] > │                 | UH0_0(v33, v34) -> (* StreamCons *)                        │

00:00:12 #460 [Debug] > │                     let v35 : US0 = US0_1(v34)                               │

00:00:12 #461 [Debug] > │                     let v36 : Mut0 = {l0 = v35} : Mut0                       │

00:00:12 #462 [Debug] > │                     let v37 : (unit -> UH0) = closure11(v36)                 │

00:00:12 #463 [Debug] > │                     UH0_0(v33, v37)                                          │

00:00:12 #464 [Debug] > │                 | UH0_1 -> (* StreamNil *)                                   │

00:00:12 #465 [Debug] > │                     UH0_1                                                    │

00:00:12 #466 [Debug] > │             let v41 : US0 = US0_0(v40)                                       │

00:00:12 #467 [Debug] > │             v2.l0 <- v41                                                     │

00:00:12 #468 [Debug] > │             v40                                                              │

00:00:12 #469 [Debug] > │     let v44 : int32 = 5                                                      │

00:00:12 #470 [Debug] > │     let v45 : US1 = method1(v44, v43)                                        │

00:00:12 #471 [Debug] > │     let v49 : int32 =                                                        │

00:00:12 #472 [Debug] > │         match v45 with                                                       │

00:00:12 #473 [Debug] > │         | US1_0 -> (* None *)                                                │

00:00:12 #474 [Debug] > │             failwith<int32> "Option does not have a value."                  │

00:00:12 #475 [Debug] > │         | US1_1(v46) -> (* Some *)                                           │

00:00:12 #476 [Debug] > │             v46                                                              │

00:00:12 #477 [Debug] > │     let v50 : bool = v49 = 5                                                 │

00:00:12 #478 [Debug] > │     let v51 : string = $"_equal / actual: %A{v49} / expected: %A{5}"         │

00:00:12 #479 [Debug] > │     let v52 : bool = v50 = false                                             │

00:00:12 #480 [Debug] > │     if v52 then                                                              │

00:00:12 #481 [Debug] > │         failwith<unit> v51                                                   │

00:00:12 #482 [Debug] > │ method0()                                                                    │

00:00:12 #483 [Debug] > │                                                                              │

00:00:12 #484 [Debug] > │ print_and_return / x: 0                                                      │

00:00:12 #485 [Debug] > │ print_and_return / x: 1                                                      │

00:00:12 #486 [Debug] > │ print_and_return / x: 2                                                      │

00:00:12 #487 [Debug] > │ print_and_return / x: 3                                                      │

00:00:12 #488 [Debug] > │ print_and_return / x: 4                                                      │

00:00:12 #489 [Debug] > │ print_and_return / x: 5                                                      │

00:00:12 #490 [Debug] > │                                                                              │

00:00:12 #491 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #492 [Debug] >

00:00:13 #493 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:13 #494 [Debug] > // // test

00:00:13 #495 [Debug] >

00:00:13 #496 [Debug] > inl memo_stream = new_infinite_stream_ print_and_return |> memoize

00:00:13 #497 [Debug] >

00:00:13 #498 [Debug] > memo_stream ()

00:00:13 #499 [Debug] > |> item 3i32

00:00:13 #500 [Debug] > |> _equal 3i32

00:00:13 #501 [Debug] >

00:00:13 #502 [Debug] > memo_stream ()

00:00:13 #503 [Debug] > |> item 5i32

00:00:13 #504 [Debug] > |> _equal 5i32

00:00:13 #505 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-4007-0797-0b97d013d5e9\main.spi

00:00:13 #506 [Debug] >

00:00:13 #507 [Debug] > ╭─[ 220.85ms - stdout ]────────────────────────────────────────────────────────╮

00:00:13 #508 [Debug] > │ type UH0 =                                                                   │

00:00:13 #509 [Debug] > │     | UH0_0 of int32 * (unit -> UH0)                                         │

00:00:13 #510 [Debug] > │     | UH0_1                                                                  │

00:00:13 #511 [Debug] > │ and [<Struct>] US0 =                                                         │

00:00:13 #512 [Debug] > │     | US0_0 of f0_0 : UH0                                                    │

00:00:13 #513 [Debug] > │     | US0_1 of f1_0 : (unit -> UH0)                                          │

00:00:13 #514 [Debug] > │ and Mut0 = {mutable l0 : US0}                                                │

00:00:13 #515 [Debug] > │ and [<Struct>] US1 =                                                         │

00:00:13 #516 [Debug] > │     | US1_0                                                                  │

00:00:13 #517 [Debug] > │     | US1_1 of f1_0 : int32                                                  │

00:00:13 #518 [Debug] > │ let rec closure0 (v0 : int32) () : UH0 =                                     │

00:00:13 #519 [Debug] > │     let v1 : int32 = v0 + 1                                                  │

00:00:13 #520 [Debug] > │     method1(v1)                                                              │

00:00:13 #521 [Debug] > │ and method1 (v0 : int32) : UH0 =                                             │

00:00:13 #522 [Debug] > │     printfn $"print_and_return / x: {v0}"                                    │

00:00:13 #523 [Debug] > │     let v1 : (unit -> UH0) = closure0(v0)                                    │

00:00:13 #524 [Debug] > │     UH0_0(v0, v1)                                                            │

00:00:13 #525 [Debug] > │ and closure1 (v0 : UH0) () : UH0 =                                           │

00:00:13 #526 [Debug] > │     v0                                                                       │

00:00:13 #527 [Debug] > │ and closure2 (v0 : UH0, v1 : Mut0) () : UH0 =                                │

00:00:13 #528 [Debug] > │     let v2 : US0 = v1.l0                                                     │

00:00:13 #529 [Debug] > │     match v2 with                                                            │

00:00:13 #530 [Debug] > │     | US0_0(v3) -> (* Computed *)                                            │

00:00:13 #531 [Debug] > │         v3                                                                   │

00:00:13 #532 [Debug] > │     | US0_1(v4) -> (* NotComputed *)                                         │

00:00:13 #533 [Debug] > │         let v5 : UH0 = v4 ()                                                 │

00:00:13 #534 [Debug] > │         let v12 : UH0 =                                                      │

00:00:13 #535 [Debug] > │             match v5 with                                                    │

00:00:13 #536 [Debug] > │             | UH0_0(v7, v8) -> (* StreamCons *)                              │

00:00:13 #537 [Debug] > │                 let v9 : (unit -> UH0) = method2(v0, v8)                     │

00:00:13 #538 [Debug] > │                 UH0_0(v7, v9)                                                │

00:00:13 #539 [Debug] > │             | UH0_1 -> (* StreamNil *)                                       │

00:00:13 #540 [Debug] > │                 UH0_1                                                        │

00:00:13 #541 [Debug] > │         let v13 : US0 = US0_0(v12)                                           │

00:00:13 #542 [Debug] > │         v1.l0 <- v13                                                         │

00:00:13 #543 [Debug] > │         v12                                                                  │

00:00:13 #544 [Debug] > │ and method2 (v0 : UH0, v1 : (unit -> UH0)) : (unit -> UH0) =                 │

00:00:13 #545 [Debug] > │     let v2 : US0 = US0_1(v1)                                                 │

00:00:13 #546 [Debug] > │     let v3 : Mut0 = {l0 = v2} : Mut0                                         │

00:00:13 #547 [Debug] > │     closure2(v0, v3)                                                         │

00:00:13 #548 [Debug] > │ and method3 (v0 : int32, v1 : UH0) : US1 =                                   │

00:00:13 #549 [Debug] > │     match v1 with                                                            │

00:00:13 #550 [Debug] > │     | UH0_0(v2, v3) -> (* StreamCons *)                                      │

00:00:13 #551 [Debug] > │         let v4 : bool = v0 <= 0                                              │

00:00:13 #552 [Debug] > │         if v4 then                                                           │

00:00:13 #553 [Debug] > │             US1_1(v2)                                                        │

00:00:13 #554 [Debug] > │         else                                                                 │

00:00:13 #555 [Debug] > │             let v6 : int32 = v0 - 1                                          │

00:00:13 #556 [Debug] > │             let v7 : UH0 = v3 ()                                             │

00:00:13 #557 [Debug] > │             method3(v6, v7)                                                  │

00:00:13 #558 [Debug] > │     | UH0_1 -> (* StreamNil *)                                               │

00:00:13 #559 [Debug] > │         US1_0                                                                │

00:00:13 #560 [Debug] > │ and method0 () : unit =                                                      │

00:00:13 #561 [Debug] > │     let v0 : int32 = 0                                                       │

00:00:13 #562 [Debug] > │     let v1 : UH0 = method1(v0)                                               │

00:00:13 #563 [Debug] > │     let v2 : (unit -> UH0) = closure1(v1)                                    │

00:00:13 #564 [Debug] > │     let v3 : (unit -> UH0) = method2(v1, v2)                                 │

00:00:13 #565 [Debug] > │     let v4 : UH0 = v3 ()                                                     │

00:00:13 #566 [Debug] > │     let v5 : int32 = 3                                                       │

00:00:13 #567 [Debug] > │     let v6 : US1 = method3(v5, v4)                                           │

00:00:13 #568 [Debug] > │     let v10 : int32 =                                                        │

00:00:13 #569 [Debug] > │         match v6 with                                                        │

00:00:13 #570 [Debug] > │         | US1_0 -> (* None *)                                                │

00:00:13 #571 [Debug] > │             failwith<int32> "Option does not have a value."                  │

00:00:13 #572 [Debug] > │         | US1_1(v7) -> (* Some *)                                            │

00:00:13 #573 [Debug] > │             v7                                                               │

00:00:13 #574 [Debug] > │     let v11 : bool = v10 = 3                                                 │

00:00:13 #575 [Debug] > │     let v12 : string = $"_equal / actual: %A{v10} / expected: %A{3}"         │

00:00:13 #576 [Debug] > │     let v13 : bool = v11 = false                                             │

00:00:13 #577 [Debug] > │     if v13 then                                                              │

00:00:13 #578 [Debug] > │         failwith<unit> v12                                                   │

00:00:13 #579 [Debug] > │     let v14 : UH0 = v3 ()                                                    │

00:00:13 #580 [Debug] > │     let v15 : int32 = 5                                                      │

00:00:13 #581 [Debug] > │     let v16 : US1 = method3(v15, v14)                                        │

00:00:13 #582 [Debug] > │     let v20 : int32 =                                                        │

00:00:13 #583 [Debug] > │         match v16 with                                                       │

00:00:13 #584 [Debug] > │         | US1_0 -> (* None *)                                                │

00:00:13 #585 [Debug] > │             failwith<int32> "Option does not have a value."                  │

00:00:13 #586 [Debug] > │         | US1_1(v17) -> (* Some *)                                           │

00:00:13 #587 [Debug] > │             v17                                                              │

00:00:13 #588 [Debug] > │     let v21 : bool = v20 = 5                                                 │

00:00:13 #589 [Debug] > │     let v22 : string = $"_equal / actual: %A{v20} / expected: %A{5}"         │

00:00:13 #590 [Debug] > │     let v23 : bool = v21 = false                                             │

00:00:13 #591 [Debug] > │     if v23 then                                                              │

00:00:13 #592 [Debug] > │         failwith<unit> v22                                                   │

00:00:13 #593 [Debug] > │ method0()                                                                    │

00:00:13 #594 [Debug] > │                                                                              │

00:00:13 #595 [Debug] > │ print_and_return / x: 0                                                      │

00:00:13 #596 [Debug] > │ print_and_return / x: 1                                                      │

00:00:13 #597 [Debug] > │ print_and_return / x: 2                                                      │

00:00:13 #598 [Debug] > │ print_and_return / x: 3                                                      │

00:00:13 #599 [Debug] > │ print_and_return / x: 4                                                      │

00:00:13 #600 [Debug] > │ print_and_return / x: 5                                                      │

00:00:13 #601 [Debug] > │                                                                              │

00:00:13 #602 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #603 [Debug] >

00:00:13 #604 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:13 #605 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:13 #606 [Debug] > │ ## unfold                                                                    │

00:00:13 #607 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #608 [Debug] >

00:00:13 #609 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:13 #610 [Debug] > inl unfold f x0 =

00:00:13 #611 [Debug] >     inl rec body x =

00:00:13 #612 [Debug] >         match f x with

00:00:13 #613 [Debug] >         | Some (x', y) => StreamCons (x', fun () => loop y)

00:00:13 #614 [Debug] >         | None => StreamNil

00:00:13 #615 [Debug] >     and inl loop x = join_body_unit body x0 x

00:00:13 #616 [Debug] >     loop x0

00:00:13 #617 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-4033-3332-3471b28f7a3b\main.spi

00:00:13 #618 [Debug] >

00:00:13 #619 [Debug] > ╭─[ 227.01ms - stdout ]────────────────────────────────────────────────────────╮

00:00:13 #620 [Debug] > │ ()                                                                           │

00:00:13 #621 [Debug] > │                                                                              │

00:00:13 #622 [Debug] > │                                                                              │

00:00:13 #623 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #624 [Debug] >

00:00:13 #625 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:13 #626 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:13 #627 [Debug] > │ ## iterate                                                                   │

00:00:13 #628 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #629 [Debug] >

00:00:13 #630 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:13 #631 [Debug] > inl iterate f =

00:00:13 #632 [Debug] >     unfold (fun x => Some (x, f x))

00:00:13 #633 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-4056-5641-5b5aea84298e\main.spi

00:00:13 #634 [Debug] >

00:00:13 #635 [Debug] > ╭─[ 150.27ms - stdout ]────────────────────────────────────────────────────────╮

00:00:13 #636 [Debug] > │ ()                                                                           │

00:00:13 #637 [Debug] > │                                                                              │

00:00:13 #638 [Debug] > │                                                                              │

00:00:13 #639 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #640 [Debug] >

00:00:13 #641 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:13 #642 [Debug] > // // test

00:00:13 #643 [Debug] >

00:00:13 #644 [Debug] > iterate ((*) 2) 1i32

00:00:13 #645 [Debug] > |> item 10i32

00:00:13 #646 [Debug] > |> _equal 1024

00:00:13 #647 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-4071-7166-70f872431cbd\main.spi

00:00:13 #648 [Debug] >

00:00:13 #649 [Debug] > ╭─[ 156.43ms - stdout ]────────────────────────────────────────────────────────╮

00:00:13 #650 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:13 #651 [Debug] > │     let v0 : string = $"_equal / actual: %A{1024} / expected: %A{1024}"      │

00:00:13 #652 [Debug] > │     ()                                                                       │

00:00:13 #653 [Debug] > │ method0()                                                                    │

00:00:13 #654 [Debug] > │                                                                              │

00:00:13 #655 [Debug] > │                                                                              │

00:00:13 #656 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #657 [Debug] >

00:00:13 #658 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:13 #659 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:13 #660 [Debug] > │ ## take_while                                                                │

00:00:13 #661 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #662 [Debug] >

00:00:13 #663 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:13 #664 [Debug] > inl take_while cond s =

00:00:13 #665 [Debug] >     inl rec body i = function

00:00:13 #666 [Debug] >         | StreamCons (st, fn) when cond st i => StreamCons (st, fun () => loop

00:00:13 #667 [Debug] > (i + 1) (fn ()))

00:00:13 #668 [Debug] >         | _ => StreamNil

00:00:13 #669 [Debug] >     and inl loop i = join_body body i

00:00:13 #670 [Debug] >     loop 0 s

00:00:13 #671 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-4089-8913-8e18da49251d\main.spi

00:00:13 #672 [Debug] >

00:00:13 #673 [Debug] > ╭─[ 171.33ms - stdout ]────────────────────────────────────────────────────────╮

00:00:13 #674 [Debug] > │ ()                                                                           │

00:00:13 #675 [Debug] > │                                                                              │

00:00:13 #676 [Debug] > │                                                                              │

00:00:13 #677 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #678 [Debug] >

00:00:13 #679 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:13 #680 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:13 #681 [Debug] > │ ## sum                                                                       │

00:00:13 #682 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #683 [Debug] >

00:00:13 #684 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:13 #685 [Debug] > inl sum seq =

00:00:13 #686 [Debug] >     seq |> fold (+) 0

00:00:14 #687 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-4106-0645-0db6389a2839\main.spi

00:00:14 #688 [Debug] >

00:00:14 #689 [Debug] > ╭─[ 183.50ms - stdout ]────────────────────────────────────────────────────────╮

00:00:14 #690 [Debug] > │ ()                                                                           │

00:00:14 #691 [Debug] > │                                                                              │

00:00:14 #692 [Debug] > │                                                                              │

00:00:14 #693 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:14 #694 [Debug] >

00:00:14 #695 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:14 #696 [Debug] > // // test

00:00:14 #697 [Debug] >

00:00:14 #698 [Debug] > listm.init 10i32 id

00:00:14 #699 [Debug] > |> from_list

00:00:14 #700 [Debug] > |> sum

00:00:14 #701 [Debug] > |> _equal 45

00:00:14 #702 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-4125-2502-2498192db657\main.spi

00:00:14 #703 [Debug] >

00:00:14 #704 [Debug] > ╭─[ 125.42ms - stdout ]────────────────────────────────────────────────────────╮

00:00:14 #705 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:14 #706 [Debug] > │     let v0 : string = $"_equal / actual: %A{45} / expected: %A{45}"          │

00:00:14 #707 [Debug] > │     ()                                                                       │

00:00:14 #708 [Debug] > │ method0()                                                                    │

00:00:14 #709 [Debug] > │                                                                              │

00:00:14 #710 [Debug] > │                                                                              │

00:00:14 #711 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:14 #712 [Debug] >

00:00:14 #713 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:14 #714 [Debug] > // // test

00:00:14 #715 [Debug] >

00:00:14 #716 [Debug] > new_finite_stream print_and_return 10i32

00:00:14 #717 [Debug] > |> take_while (fun n (_ : i32) => n < 5)

00:00:14 #718 [Debug] > |> sum

00:00:14 #719 [Debug] > |> _equal 10

00:00:14 #720 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-4137-3790-3085a80e25c7\main.spi

00:00:14 #721 [Debug] >

00:00:14 #722 [Debug] > ╭─[ 151.79ms - stdout ]────────────────────────────────────────────────────────╮

00:00:14 #723 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:14 #724 [Debug] > │     printfn $"print_and_return / x: {0}"                                     │

00:00:14 #725 [Debug] > │     printfn $"print_and_return / x: {1}"                                     │

00:00:14 #726 [Debug] > │     printfn $"print_and_return / x: {2}"                                     │

00:00:14 #727 [Debug] > │     printfn $"print_and_return / x: {3}"                                     │

00:00:14 #728 [Debug] > │     printfn $"print_and_return / x: {4}"                                     │

00:00:14 #729 [Debug] > │     printfn $"print_and_return / x: {5}"                                     │

00:00:14 #730 [Debug] > │     let v0 : string = $"_equal / actual: %A{10} / expected: %A{10}"          │

00:00:14 #731 [Debug] > │     ()                                                                       │

00:00:14 #732 [Debug] > │ method0()                                                                    │

00:00:14 #733 [Debug] > │                                                                              │

00:00:14 #734 [Debug] > │ print_and_return / x: 0                                                      │

00:00:14 #735 [Debug] > │ print_and_return / x: 1                                                      │

00:00:14 #736 [Debug] > │ print_and_return / x: 2                                                      │

00:00:14 #737 [Debug] > │ print_and_return / x: 3                                                      │

00:00:14 #738 [Debug] > │ print_and_return / x: 4                                                      │

00:00:14 #739 [Debug] > │ print_and_return / x: 5                                                      │

00:00:14 #740 [Debug] > │                                                                              │

00:00:14 #741 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:14 #742 [Debug] >

00:00:14 #743 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:14 #744 [Debug] > // // test

00:00:14 #745 [Debug] >

00:00:14 #746 [Debug] > new_infinite_stream print_and_return

00:00:14 #747 [Debug] > |> take_while (fun n (_ : i32) => n < 5i32)

00:00:14 #748 [Debug] > |> sum

00:00:14 #749 [Debug] > |> _equal 10

00:00:14 #750 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-4154-5414-50ea0371b4ff\main.spi

00:00:14 #751 [Debug] >

00:00:14 #752 [Debug] > ╭─[ 168.49ms - stdout ]────────────────────────────────────────────────────────╮

00:00:14 #753 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:14 #754 [Debug] > │     printfn $"print_and_return / x: {0}"                                     │

00:00:14 #755 [Debug] > │     printfn $"print_and_return / x: {1}"                                     │

00:00:14 #756 [Debug] > │     printfn $"print_and_return / x: {2}"                                     │

00:00:14 #757 [Debug] > │     printfn $"print_and_return / x: {3}"                                     │

00:00:14 #758 [Debug] > │     printfn $"print_and_return / x: {4}"                                     │

00:00:14 #759 [Debug] > │     printfn $"print_and_return / x: {5}"                                     │

00:00:14 #760 [Debug] > │     let v0 : string = $"_equal / actual: %A{10} / expected: %A{10}"          │

00:00:14 #761 [Debug] > │     ()                                                                       │

00:00:14 #762 [Debug] > │ method0()                                                                    │

00:00:14 #763 [Debug] > │                                                                              │

00:00:14 #764 [Debug] > │ print_and_return / x: 0                                                      │

00:00:14 #765 [Debug] > │ print_and_return / x: 1                                                      │

00:00:14 #766 [Debug] > │ print_and_return / x: 2                                                      │

00:00:14 #767 [Debug] > │ print_and_return / x: 3                                                      │

00:00:14 #768 [Debug] > │ print_and_return / x: 4                                                      │

00:00:14 #769 [Debug] > │ print_and_return / x: 5                                                      │

00:00:14 #770 [Debug] > │                                                                              │

00:00:14 #771 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:14 #772 [Debug] >

00:00:14 #773 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:14 #774 [Debug] > // // test

00:00:14 #775 [Debug] >

00:00:14 #776 [Debug] > iterate ((*) 6) 1i32

00:00:14 #777 [Debug] > |> take_while (fun _ i => i <= 7i32)

00:00:14 #778 [Debug] > |> to_list

00:00:14 #779 [Debug] > |> _equal [[ 1i32; 6; 36; 216; 1296; 7776; 46656; 279936 ]]

00:00:14 #780 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-4172-7212-7789946f1c3e\main.spi

00:00:14 #781 [Debug] >

00:00:14 #782 [Debug] > ╭─[ 207.08ms - stdout ]────────────────────────────────────────────────────────╮

00:00:14 #783 [Debug] > │ type UH0 =                                                                   │

00:00:14 #784 [Debug] > │     | UH0_0 of int32 * UH0                                                   │

00:00:14 #785 [Debug] > │     | UH0_1                                                                  │

00:00:14 #786 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:14 #787 [Debug] > │     let v63 : UH0 = UH0_1                                                    │

00:00:14 #788 [Debug] > │     let v64 : UH0 = UH0_0(279936, v63)                                       │

00:00:14 #789 [Debug] > │     let v65 : UH0 = UH0_0(46656, v64)                                        │

00:00:14 #790 [Debug] > │     let v66 : UH0 = UH0_0(7776, v65)                                         │

00:00:14 #791 [Debug] > │     let v67 : UH0 = UH0_0(1296, v66)                                         │

00:00:14 #792 [Debug] > │     let v68 : UH0 = UH0_0(216, v67)                                          │

00:00:14 #793 [Debug] > │     let v69 : UH0 = UH0_0(36, v68)                                           │

00:00:14 #794 [Debug] > │     let v70 : UH0 = UH0_0(6, v69)                                            │

00:00:14 #795 [Debug] > │     let v71 : UH0 = UH0_0(1, v70)                                            │

00:00:14 #796 [Debug] > │     let v72 : UH0 = UH0_1                                                    │

00:00:14 #797 [Debug] > │     let v73 : UH0 = UH0_0(279936, v72)                                       │

00:00:14 #798 [Debug] > │     let v74 : UH0 = UH0_0(46656, v73)                                        │

00:00:14 #799 [Debug] > │     let v75 : UH0 = UH0_0(7776, v74)                                         │

00:00:14 #800 [Debug] > │     let v76 : UH0 = UH0_0(1296, v75)                                         │

00:00:14 #801 [Debug] > │     let v77 : UH0 = UH0_0(216, v76)                                          │

00:00:14 #802 [Debug] > │     let v78 : UH0 = UH0_0(36, v77)                                           │

00:00:14 #803 [Debug] > │     let v79 : UH0 = UH0_0(6, v78)                                            │

00:00:14 #804 [Debug] > │     let v80 : UH0 = UH0_0(1, v79)                                            │

00:00:14 #805 [Debug] > │     let v81 : string = $"_equal / actual: %A{v71} / expected: %A{v80}"       │

00:00:14 #806 [Debug] > │     ()                                                                       │

00:00:14 #807 [Debug] > │ method0()                                                                    │

00:00:14 #808 [Debug] > │                                                                              │

00:00:14 #809 [Debug] > │                                                                              │

00:00:14 #810 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:14 #811 [Debug] >

00:00:14 #812 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:14 #813 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:14 #814 [Debug] > │ ## indexed                                                                   │

00:00:14 #815 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:14 #816 [Debug] >

00:00:14 #817 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:14 #818 [Debug] > inl indexed s =

00:00:14 #819 [Debug] >     ((StreamNil, 0), s)

00:00:14 #820 [Debug] >     ||> fold fun (acc, i) x =>

00:00:14 #821 [Debug] >         StreamCons ((i, x), fun () => acc), i + 1

00:00:14 #822 [Debug] >     |> fst

00:00:14 #823 [Debug] >     |> rev

00:00:14 #824 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-4194-9452-9f0a76f79bbb\main.spi

00:00:15 #825 [Debug] >

00:00:15 #826 [Debug] > ╭─[ 151.44ms - stdout ]────────────────────────────────────────────────────────╮

00:00:15 #827 [Debug] > │ ()                                                                           │

00:00:15 #828 [Debug] > │                                                                              │

00:00:15 #829 [Debug] > │                                                                              │

00:00:15 #830 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #831 [Debug] >

00:00:15 #832 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:15 #833 [Debug] > // // test

00:00:15 #834 [Debug] >

00:00:15 #835 [Debug] > listm.init 10i32 ((*) 2)

00:00:15 #836 [Debug] > |> from_list

00:00:15 #837 [Debug] > |> indexed

00:00:15 #838 [Debug] > |> item 5i32

00:00:15 #839 [Debug] > |> _equal (5i32, 10i32)

00:00:15 #840 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-4209-0974-03defb9b8587\main.spi

00:00:15 #841 [Debug] >

00:00:15 #842 [Debug] > ╭─[ 170.89ms - stdout ]────────────────────────────────────────────────────────╮

00:00:15 #843 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:15 #844 [Debug] > │     let v0 : string = $"_equal / actual: %A{struct (5, 10)} / expected:      │

00:00:15 #845 [Debug] > │ %A{struct (5, 10)}"                                                          │

00:00:15 #846 [Debug] > │     ()                                                                       │

00:00:15 #847 [Debug] > │ method0()                                                                    │

00:00:15 #848 [Debug] > │                                                                              │

00:00:15 #849 [Debug] > │                                                                              │

00:00:15 #850 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #851 [Debug] >

00:00:15 #852 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:15 #853 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:15 #854 [Debug] > │ ## map                                                                       │

00:00:15 #855 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #856 [Debug] >

00:00:15 #857 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:15 #858 [Debug] > inl map fn s =

00:00:15 #859 [Debug] >     (s, StreamNil)

00:00:15 #860 [Debug] >     ||> fold_back fun x acc =>

00:00:15 #861 [Debug] >         StreamCons (fn x, fun () => acc)

00:00:15 #862 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-4227-2756-2c5d6d760c02\main.spi

00:00:15 #863 [Debug] >

00:00:15 #864 [Debug] > ╭─[ 164.88ms - stdout ]────────────────────────────────────────────────────────╮

00:00:15 #865 [Debug] > │ ()                                                                           │

00:00:15 #866 [Debug] > │                                                                              │

00:00:15 #867 [Debug] > │                                                                              │

00:00:15 #868 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #869 [Debug] >

00:00:15 #870 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:15 #871 [Debug] > // // test

00:00:15 #872 [Debug] >

00:00:15 #873 [Debug] > listm.init 10i32 id

00:00:15 #874 [Debug] > |> from_list

00:00:15 #875 [Debug] > |> map ((*) 2)

00:00:15 #876 [Debug] > |> item 5i32

00:00:15 #877 [Debug] > |> _equal 10i32

00:00:15 #878 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-4244-4425-45073d2cc799\main.spi

00:00:15 #879 [Debug] >

00:00:15 #880 [Debug] > ╭─[ 141.55ms - stdout ]────────────────────────────────────────────────────────╮

00:00:15 #881 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:15 #882 [Debug] > │     let v0 : string = $"_equal / actual: %A{10} / expected: %A{10}"          │

00:00:15 #883 [Debug] > │     ()                                                                       │

00:00:15 #884 [Debug] > │ method0()                                                                    │

00:00:15 #885 [Debug] > │                                                                              │

00:00:15 #886 [Debug] > │                                                                              │

00:00:15 #887 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #888 [Debug] >

00:00:15 #889 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:15 #890 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:15 #891 [Debug] > │ ## zip_with                                                                  │

00:00:15 #892 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #893 [Debug] >

00:00:15 #894 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:15 #895 [Debug] > inl zip_with fn s1 s2 =

00:00:15 #896 [Debug] >     inl rec loop s1 s2 =

00:00:15 #897 [Debug] >         match s1, s2 with

00:00:15 #898 [Debug] >         | StreamCons (st1, fn1), StreamCons (st2, fn2) =>

00:00:15 #899 [Debug] >             StreamCons (fn st1 st2, fun () => loop (fn1 ()) (fn2 ()))

00:00:15 #900 [Debug] >         | StreamNil, _ | _, StreamNil => StreamNil

00:00:15 #901 [Debug] >     loop s1 s2

00:00:15 #902 [Debug] >

00:00:15 #903 [Debug] > inl zip_with_ fn s1 s2 =

00:00:15 #904 [Debug] >     let rec loop s1 s2 =

00:00:15 #905 [Debug] >         match s1, s2 with

00:00:15 #906 [Debug] >         | StreamCons (st1, fn1), StreamCons (st2, fn2) =>

00:00:15 #907 [Debug] >             StreamCons (fn st1 st2, fun () => loop (fn1 ()) (fn2 ()))

00:00:15 #908 [Debug] >         | StreamNil, _ | _, StreamNil => StreamNil

00:00:15 #909 [Debug] >     loop s1 s2

00:00:15 #910 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-4259-5901-50fd4b867bce\main.spi

00:00:15 #911 [Debug] >

00:00:15 #912 [Debug] > ╭─[ 172.56ms - stdout ]────────────────────────────────────────────────────────╮

00:00:15 #913 [Debug] > │ ()                                                                           │

00:00:15 #914 [Debug] > │                                                                              │

00:00:15 #915 [Debug] > │                                                                              │

00:00:15 #916 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #917 [Debug] >

00:00:15 #918 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:15 #919 [Debug] > // // test

00:00:15 #920 [Debug] >

00:00:15 #921 [Debug] > ((listm.init 10i32 id |> from_list), (listm.init 10i32 ((*) 2) |> from_list))

00:00:15 #922 [Debug] > ||> zip_with (+)

00:00:15 #923 [Debug] > |> item 2i32

00:00:15 #924 [Debug] > |> _equal 6

00:00:15 #925 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-4276-7672-7dfd9a86e719\main.spi

00:00:15 #926 [Debug] >

00:00:15 #927 [Debug] > ╭─[ 148.77ms - stdout ]────────────────────────────────────────────────────────╮

00:00:15 #928 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:15 #929 [Debug] > │     let v0 : string = $"_equal / actual: %A{6} / expected: %A{6}"            │

00:00:15 #930 [Debug] > │     ()                                                                       │

00:00:15 #931 [Debug] > │ method0()                                                                    │

00:00:15 #932 [Debug] > │                                                                              │

00:00:15 #933 [Debug] > │                                                                              │

00:00:15 #934 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #935 [Debug] >

00:00:15 #936 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:15 #937 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:15 #938 [Debug] > │ ## zip                                                                       │

00:00:15 #939 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #940 [Debug] >

00:00:15 #941 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:15 #942 [Debug] > inl zip s1 s2 =

00:00:15 #943 [Debug] >     zip_with pair s1 s2

00:00:15 #944 [Debug] >

00:00:15 #945 [Debug] > inl zip_ s1 s2 =

00:00:15 #946 [Debug] >     zip_with_ pair s1 s2

00:00:15 #947 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-4292-9214-92e327a14669\main.spi

00:00:16 #948 [Debug] >

00:00:16 #949 [Debug] > ╭─[ 161.97ms - stdout ]────────────────────────────────────────────────────────╮

00:00:16 #950 [Debug] > │ ()                                                                           │

00:00:16 #951 [Debug] > │                                                                              │

00:00:16 #952 [Debug] > │                                                                              │

00:00:16 #953 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:16 #954 [Debug] >

00:00:16 #955 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:16 #956 [Debug] > // // test

00:00:16 #957 [Debug] >

00:00:16 #958 [Debug] > ((listm.init 10i32 id |> from_list), (listm.init 10i32 ((*) 2) |> from_list))

00:00:16 #959 [Debug] > ||> zip

00:00:16 #960 [Debug] > |> item 5i32

00:00:16 #961 [Debug] > |> _equal (5, 10)

00:00:16 #962 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-4308-0859-0f7c94b80075\main.spi

00:00:16 #963 [Debug] >

00:00:16 #964 [Debug] > ╭─[ 190.03ms - stdout ]────────────────────────────────────────────────────────╮

00:00:16 #965 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:16 #966 [Debug] > │     let v0 : string = $"_equal / actual: %A{struct (5, 10)} / expected:      │

00:00:16 #967 [Debug] > │ %A{struct (5, 10)}"                                                          │

00:00:16 #968 [Debug] > │     ()                                                                       │

00:00:16 #969 [Debug] > │ method0()                                                                    │

00:00:16 #970 [Debug] > │                                                                              │

00:00:16 #971 [Debug] > │                                                                              │

00:00:16 #972 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:16 #973 [Debug] >

00:00:16 #974 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:16 #975 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:16 #976 [Debug] > │ ## unzip                                                                     │

00:00:16 #977 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:16 #978 [Debug] >

00:00:16 #979 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:16 #980 [Debug] > inl unzip s =

00:00:16 #981 [Debug] >     inl rec body s =

00:00:16 #982 [Debug] >         match s with

00:00:16 #983 [Debug] >         | StreamCons ((x, y), fn) =>

00:00:16 #984 [Debug] >             inl xs, ys = loop (fn ())

00:00:16 #985 [Debug] >             StreamCons (x, fun () => xs), StreamCons (y, fun () => ys)

00:00:16 #986 [Debug] >         | StreamNil => pair StreamNil StreamNil

00:00:16 #987 [Debug] >     and inl loop x =

00:00:16 #988 [Debug] >         if var_is x |> not

00:00:16 #989 [Debug] >         then body x

00:00:16 #990 [Debug] >         else

00:00:16 #991 [Debug] >             inl x = dyn x

00:00:16 #992 [Debug] >             join body x

00:00:16 #993 [Debug] >     loop s

00:00:16 #994 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-4328-2851-282a0b51147c\main.spi

00:00:16 #995 [Debug] >

00:00:16 #996 [Debug] > ╭─[ 164.87ms - stdout ]────────────────────────────────────────────────────────╮

00:00:16 #997 [Debug] > │ ()                                                                           │

00:00:16 #998 [Debug] > │                                                                              │

00:00:16 #999 [Debug] > │                                                                              │

00:00:16 #1000 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:16 #1001 [Debug] >

00:00:16 #1002 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:16 #1003 [Debug] > // // test

00:00:16 #1004 [Debug] >

00:00:16 #1005 [Debug] > listm.init 10i32 id

00:00:16 #1006 [Debug] > |> listm.map (fun x => x, x)

00:00:16 #1007 [Debug] > |> from_list

00:00:16 #1008 [Debug] > |> unzip

00:00:16 #1009 [Debug] > |> fun x, y =>

00:00:16 #1010 [Debug] >     x |> sum

00:00:16 #1011 [Debug] >     |> _equal 45

00:00:16 #1012 [Debug] >

00:00:16 #1013 [Debug] >     y |> sum

00:00:16 #1014 [Debug] >     |> _equal 45

00:00:16 #1015 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-4345-4502-48ca3c77b3bf\main.spi

00:00:16 #1016 [Debug] >

00:00:16 #1017 [Debug] > ╭─[ 172.59ms - stdout ]────────────────────────────────────────────────────────╮

00:00:16 #1018 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:16 #1019 [Debug] > │     let v0 : string = $"_equal / actual: %A{45} / expected: %A{45}"          │

00:00:16 #1020 [Debug] > │     let v1 : string = $"_equal / actual: %A{45} / expected: %A{45}"          │

00:00:16 #1021 [Debug] > │     ()                                                                       │

00:00:16 #1022 [Debug] > │ method0()                                                                    │

00:00:16 #1023 [Debug] > │                                                                              │

00:00:16 #1024 [Debug] > │                                                                              │

00:00:16 #1025 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:18 #1026 [Debug] > [NbConvertApp] Converting notebook stream.dib.ipynb to html

00:00:18 #1027 [Debug] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

00:00:18 #1028 [Debug] >   validate(nb)

00:00:19 #1029 [Debug] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:72: UserWarning: IPython3 lexer unavailable, falling back on Python 3

00:00:19 #1030 [Debug] >   return _pygments_highlight(

00:00:19 #1031 [Debug] > [NbConvertApp] Writing 357092 bytes to stream.dib.html

00:00:20 #1032 [Debug] executeAsync / exitCode: 0 / output.Length: 58505

00:00:20 #1033 [Debug] main / executeCommand / exitCode: 0

00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60

00:00:00 #2 [Debug] executeAsync / options: { Command =

   "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" port=13805"

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = Some <fun:main@450-1020> }

00:00:00 #3 [Debug] > pwd: C:\home\git\polyglot\lib\spiral

00:00:00 #4 [Debug] > dll_path: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release

00:00:00 #5 [Debug] runWithTimeoutAsync / timeout: 500

00:00:00 #6 [Verbose] waitForPortAccess / port: 13805 / retry: 0

00:00:01 #7 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:

00:00:01 #8 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0

00:00:01 #9 [Debug] > Server bound to: http://localhost:13805

00:00:01 #10 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 seq.dib""

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = None }

00:00:03 #11 [Debug] >

00:00:03 #12 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:03 #13 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:03 #14 [Debug] > │ # seq                                                                        │

00:00:03 #15 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:03 #16 [Debug] >

00:00:03 #17 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:03 #18 [Debug] > // // test

00:00:03 #19 [Debug] >

00:00:03 #20 [Debug] > open testing

00:00:06 #21 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-5391-9148-989f83033d2a\main.spi

00:00:08 #22 [Debug] >

00:00:08 #23 [Debug] > ╭─[ 5.06s - stdout ]───────────────────────────────────────────────────────────╮

00:00:08 #24 [Debug] > │ ()                                                                           │

00:00:08 #25 [Debug] > │                                                                              │

00:00:08 #26 [Debug] > │                                                                              │

00:00:08 #27 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:08 #28 [Debug] >

00:00:08 #29 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:08 #30 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:08 #31 [Debug] > │ ## seq                                                                       │

00:00:08 #32 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:08 #33 [Debug] >

00:00:08 #34 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:08 #35 [Debug] > type seq dim el = dim -> option el

00:00:08 #36 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-5681-8167-822ae90bbe69\main.spi

00:00:08 #37 [Debug] >

00:00:08 #38 [Debug] > ╭─[ 190.55ms - stdout ]────────────────────────────────────────────────────────╮

00:00:08 #39 [Debug] > │ ()                                                                           │

00:00:08 #40 [Debug] > │                                                                              │

00:00:08 #41 [Debug] > │                                                                              │

00:00:08 #42 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:08 #43 [Debug] >

00:00:08 #44 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:08 #45 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:08 #46 [Debug] > │ ## item                                                                      │

00:00:08 #47 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:08 #48 [Debug] >

00:00:09 #49 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:09 #50 [Debug] > inl item n seq =

00:00:09 #51 [Debug] >     seq n

00:00:09 #52 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-5701-0115-0a3002ed1482\main.spi

00:00:09 #53 [Debug] >

00:00:09 #54 [Debug] > ╭─[ 149.98ms - stdout ]────────────────────────────────────────────────────────╮

00:00:09 #55 [Debug] > │ ()                                                                           │

00:00:09 #56 [Debug] > │                                                                              │

00:00:09 #57 [Debug] > │                                                                              │

00:00:09 #58 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:09 #59 [Debug] >

00:00:09 #60 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:09 #61 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:09 #62 [Debug] > │ ## from_list                                                                 │

00:00:09 #63 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:09 #64 [Debug] >

00:00:09 #65 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:09 #66 [Debug] > inl from_list list =

00:00:09 #67 [Debug] >     fun n =>

00:00:09 #68 [Debug] >         list |> listm'.try_item n

00:00:09 #69 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-5716-1636-179fd3f6abf3\main.spi

00:00:09 #70 [Debug] >

00:00:09 #71 [Debug] > ╭─[ 199.06ms - stdout ]────────────────────────────────────────────────────────╮

00:00:09 #72 [Debug] > │ ()                                                                           │

00:00:09 #73 [Debug] > │                                                                              │

00:00:09 #74 [Debug] > │                                                                              │

00:00:09 #75 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:09 #76 [Debug] >

00:00:09 #77 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:09 #78 [Debug] > // // test

00:00:09 #79 [Debug] >

00:00:09 #80 [Debug] > listm.init 10i32 print_and_return

00:00:09 #81 [Debug] > |> from_list

00:00:09 #82 [Debug] > |> item 5i32

00:00:09 #83 [Debug] > |> _equal (Some 5i32)

00:00:09 #84 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-5736-3657-36a23add4e4b\main.spi

00:00:10 #85 [Debug] >

00:00:10 #86 [Debug] > ╭─[ 1.48s - stdout ]───────────────────────────────────────────────────────────╮

00:00:10 #87 [Debug] > │ type [<Struct>] US0 =                                                        │

00:00:10 #88 [Debug] > │     | US0_0                                                                  │

00:00:10 #89 [Debug] > │     | US0_1 of f1_0 : int32                                                  │

00:00:10 #90 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:10 #91 [Debug] > │     printfn $"print_and_return / x: {0}"                                     │

00:00:10 #92 [Debug] > │     printfn $"print_and_return / x: {1}"                                     │

00:00:10 #93 [Debug] > │     printfn $"print_and_return / x: {2}"                                     │

00:00:10 #94 [Debug] > │     printfn $"print_and_return / x: {3}"                                     │

00:00:10 #95 [Debug] > │     printfn $"print_and_return / x: {4}"                                     │

00:00:10 #96 [Debug] > │     printfn $"print_and_return / x: {5}"                                     │

00:00:10 #97 [Debug] > │     printfn $"print_and_return / x: {6}"                                     │

00:00:10 #98 [Debug] > │     printfn $"print_and_return / x: {7}"                                     │

00:00:10 #99 [Debug] > │     printfn $"print_and_return / x: {8}"                                     │

00:00:10 #100 [Debug] > │     printfn $"print_and_return / x: {9}"                                     │

00:00:10 #101 [Debug] > │     let v3 : US0 = US0_1(5)                                                  │

00:00:10 #102 [Debug] > │     let v4 : US0 = US0_1(5)                                                  │

00:00:10 #103 [Debug] > │     let v5 : string = $"_equal / actual: %A{v3} / expected: %A{v4}"          │

00:00:10 #104 [Debug] > │     ()                                                                       │

00:00:10 #105 [Debug] > │ method0()                                                                    │

00:00:10 #106 [Debug] > │                                                                              │

00:00:10 #107 [Debug] > │ print_and_return / x: 0                                                      │

00:00:10 #108 [Debug] > │ print_and_return / x: 1                                                      │

00:00:10 #109 [Debug] > │ print_and_return / x: 2                                                      │

00:00:10 #110 [Debug] > │ print_and_return / x: 3                                                      │

00:00:10 #111 [Debug] > │ print_and_return / x: 4                                                      │

00:00:10 #112 [Debug] > │ print_and_return / x: 5                                                      │

00:00:10 #113 [Debug] > │ print_and_return / x: 6                                                      │

00:00:10 #114 [Debug] > │ print_and_return / x: 7                                                      │

00:00:10 #115 [Debug] > │ print_and_return / x: 8                                                      │

00:00:10 #116 [Debug] > │ print_and_return / x: 9                                                      │

00:00:10 #117 [Debug] > │                                                                              │

00:00:10 #118 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:10 #119 [Debug] >

00:00:10 #120 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:10 #121 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:10 #122 [Debug] > │ ## indexed                                                                   │

00:00:10 #123 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:10 #124 [Debug] >

00:00:10 #125 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:10 #126 [Debug] > inl indexed s =

00:00:10 #127 [Debug] >     fun n =>

00:00:10 #128 [Debug] >         s |> item n |> optionm.map (fun x => n, x)

00:00:10 #129 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-5886-8612-8dcde3ba03b6\main.spi

00:00:11 #130 [Debug] >

00:00:11 #131 [Debug] > ╭─[ 200.38ms - stdout ]────────────────────────────────────────────────────────╮

00:00:11 #132 [Debug] > │ ()                                                                           │

00:00:11 #133 [Debug] > │                                                                              │

00:00:11 #134 [Debug] > │                                                                              │

00:00:11 #135 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:11 #136 [Debug] >

00:00:11 #137 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:11 #138 [Debug] > // // test

00:00:11 #139 [Debug] >

00:00:11 #140 [Debug] > listm.init 10i32 ((*) 2)

00:00:11 #141 [Debug] > |> from_list

00:00:11 #142 [Debug] > |> indexed

00:00:11 #143 [Debug] > |> item 5i32

00:00:11 #144 [Debug] > |> _equal (Some (5i32, 10i32))

00:00:11 #145 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-5906-0619-032d20916781\main.spi

00:00:11 #146 [Debug] >

00:00:11 #147 [Debug] > ╭─[ 251.09ms - stdout ]────────────────────────────────────────────────────────╮

00:00:11 #148 [Debug] > │ type [<Struct>] US0 =                                                        │

00:00:11 #149 [Debug] > │     | US0_0                                                                  │

00:00:11 #150 [Debug] > │     | US0_1 of f1_0 : int32 * f1_1 : int32                                   │

00:00:11 #151 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:11 #152 [Debug] > │     let v3 : US0 = US0_1(5, 10)                                              │

00:00:11 #153 [Debug] > │     let v4 : US0 = US0_1(5, 10)                                              │

00:00:11 #154 [Debug] > │     let v5 : string = $"_equal / actual: %A{v3} / expected: %A{v4}"          │

00:00:11 #155 [Debug] > │     ()                                                                       │

00:00:11 #156 [Debug] > │ method0()                                                                    │

00:00:11 #157 [Debug] > │                                                                              │

00:00:11 #158 [Debug] > │                                                                              │

00:00:11 #159 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:11 #160 [Debug] >

00:00:11 #161 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:11 #162 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:11 #163 [Debug] > │ ## zip                                                                       │

00:00:11 #164 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:11 #165 [Debug] >

00:00:11 #166 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:11 #167 [Debug] > inl zip n seq1 seq2 =

00:00:11 #168 [Debug] >     seq1 n, seq2 n

00:00:11 #169 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-5933-3376-33f5f12a1df0\main.spi

00:00:11 #170 [Debug] >

00:00:11 #171 [Debug] > ╭─[ 189.00ms - stdout ]────────────────────────────────────────────────────────╮

00:00:11 #172 [Debug] > │ ()                                                                           │

00:00:11 #173 [Debug] > │                                                                              │

00:00:11 #174 [Debug] > │                                                                              │

00:00:11 #175 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:11 #176 [Debug] >

00:00:11 #177 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:11 #178 [Debug] > // // test

00:00:11 #179 [Debug] >

00:00:11 #180 [Debug] > ((listm.init 10i32 id |> from_list), (listm.init 10i32 ((*) 2) |> from_list))

00:00:11 #181 [Debug] > ||> zip 5i32

00:00:11 #182 [Debug] > |> _equal (Some 5, Some 10)

00:00:11 #183 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-5951-5155-50c7ed40a590\main.spi

00:00:11 #184 [Debug] >

00:00:11 #185 [Debug] > ╭─[ 161.52ms - stdout ]────────────────────────────────────────────────────────╮

00:00:11 #186 [Debug] > │ type [<Struct>] US0 =                                                        │

00:00:11 #187 [Debug] > │     | US0_0                                                                  │

00:00:11 #188 [Debug] > │     | US0_1 of f1_0 : int32                                                  │

00:00:11 #189 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:11 #190 [Debug] > │     let v6 : US0 = US0_1(5)                                                  │

00:00:11 #191 [Debug] > │     let v7 : US0 = US0_1(10)                                                 │

00:00:11 #192 [Debug] > │     let v8 : US0 = US0_1(5)                                                  │

00:00:11 #193 [Debug] > │     let v9 : US0 = US0_1(10)                                                 │

00:00:11 #194 [Debug] > │     let v10 : string = $"_equal / actual: %A{struct (v6, v7)} / expected:    │

00:00:11 #195 [Debug] > │ %A{struct (v8, v9)}"                                                         │

00:00:11 #196 [Debug] > │     ()                                                                       │

00:00:11 #197 [Debug] > │ method0()                                                                    │

00:00:11 #198 [Debug] > │                                                                              │

00:00:11 #199 [Debug] > │                                                                              │

00:00:11 #200 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:11 #201 [Debug] >

00:00:11 #202 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:11 #203 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:11 #204 [Debug] > │ ## zip_with                                                                  │

00:00:11 #205 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:11 #206 [Debug] >

00:00:11 #207 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:11 #208 [Debug] > inl zip_with fn seq1 seq2 =

00:00:11 #209 [Debug] >     fun n =>

00:00:11 #210 [Debug] >         fn (seq1 n) (seq2 n)

00:00:11 #211 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-5968-6869-6bfbcf3774e9\main.spi

00:00:11 #212 [Debug] >

00:00:11 #213 [Debug] > ╭─[ 188.32ms - stdout ]────────────────────────────────────────────────────────╮

00:00:11 #214 [Debug] > │ ()                                                                           │

00:00:11 #215 [Debug] > │                                                                              │

00:00:11 #216 [Debug] > │                                                                              │

00:00:11 #217 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:11 #218 [Debug] >

00:00:11 #219 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:11 #220 [Debug] > // // test

00:00:11 #221 [Debug] >

00:00:11 #222 [Debug] > ((listm.init 10i32 id |> from_list), (listm.init 10i32 ((*) 2) |> from_list))

00:00:11 #223 [Debug] > ||> zip_with (optionm'.choose (+))

00:00:11 #224 [Debug] > |> item 2i32

00:00:11 #225 [Debug] > |> _equal (Some 6)

00:00:11 #226 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1410-5988-8813-8c49e4567d60\main.spi

00:00:12 #227 [Debug] >

00:00:12 #228 [Debug] > ╭─[ 251.41ms - stdout ]────────────────────────────────────────────────────────╮

00:00:12 #229 [Debug] > │ type [<Struct>] US0 =                                                        │

00:00:12 #230 [Debug] > │     | US0_0                                                                  │

00:00:12 #231 [Debug] > │     | US0_1 of f1_0 : int32                                                  │

00:00:12 #232 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:12 #233 [Debug] > │     let v3 : US0 = US0_1(6)                                                  │

00:00:12 #234 [Debug] > │     let v4 : US0 = US0_1(6)                                                  │

00:00:12 #235 [Debug] > │     let v5 : string = $"_equal / actual: %A{v3} / expected: %A{v4}"          │

00:00:12 #236 [Debug] > │     ()                                                                       │

00:00:12 #237 [Debug] > │ method0()                                                                    │

00:00:12 #238 [Debug] > │                                                                              │

00:00:12 #239 [Debug] > │                                                                              │

00:00:12 #240 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:12 #241 [Debug] >

00:00:12 #242 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:12 #243 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:12 #244 [Debug] > │ ## fold                                                                      │

00:00:12 #245 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:12 #246 [Debug] >

00:00:12 #247 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:12 #248 [Debug] > inl fold fn init seq =

00:00:12 #249 [Debug] >     inl rec loop acc n =

00:00:12 #250 [Debug] >         match seq n with

00:00:12 #251 [Debug] >         | Some x => loop (fn acc x) (n + 1)

00:00:12 #252 [Debug] >         | None => acc

00:00:12 #253 [Debug] >     loop init 0

00:00:12 #254 [Debug] >

00:00:12 #255 [Debug] > inl fold_ fn init seq =

00:00:12 #256 [Debug] >     let rec loop acc n =

00:00:12 #257 [Debug] >         match seq n with

00:00:12 #258 [Debug] >         | Some x => loop (fn acc x) (n + 1)

00:00:12 #259 [Debug] >         | None => acc

00:00:12 #260 [Debug] >     loop init 0

00:00:12 #261 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-0018-1814-11c08dfa8de5\main.spi

00:00:12 #262 [Debug] >

00:00:12 #263 [Debug] > ╭─[ 209.66ms - stdout ]────────────────────────────────────────────────────────╮

00:00:12 #264 [Debug] > │ ()                                                                           │

00:00:12 #265 [Debug] > │                                                                              │

00:00:12 #266 [Debug] > │                                                                              │

00:00:12 #267 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:12 #268 [Debug] >

00:00:12 #269 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:12 #270 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:12 #271 [Debug] > │ ## sum                                                                       │

00:00:12 #272 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:12 #273 [Debug] >

00:00:12 #274 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:12 #275 [Debug] > inl sum seq =

00:00:12 #276 [Debug] >     seq |> fold (+) 0

00:00:12 #277 [Debug] >

00:00:12 #278 [Debug] > inl sum_ seq =

00:00:12 #279 [Debug] >     seq |> fold_ (+) 0

00:00:12 #280 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-0038-3837-377cbe7f4451\main.spi

00:00:12 #281 [Debug] >

00:00:12 #282 [Debug] > ╭─[ 167.89ms - stdout ]────────────────────────────────────────────────────────╮

00:00:12 #283 [Debug] > │ ()                                                                           │

00:00:12 #284 [Debug] > │                                                                              │

00:00:12 #285 [Debug] > │                                                                              │

00:00:12 #286 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:12 #287 [Debug] >

00:00:12 #288 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:12 #289 [Debug] > // // test

00:00:12 #290 [Debug] >

00:00:12 #291 [Debug] > listm.init 10i32 id

00:00:12 #292 [Debug] > |> from_list

00:00:12 #293 [Debug] > |> fun f (n : i32) => f n

00:00:12 #294 [Debug] > |> sum

00:00:12 #295 [Debug] > |> _equal 45

00:00:12 #296 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-0055-5541-56bebf47b71a\main.spi

00:00:12 #297 [Debug] >

00:00:12 #298 [Debug] > ╭─[ 161.62ms - stdout ]────────────────────────────────────────────────────────╮

00:00:12 #299 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:12 #300 [Debug] > │     let v0 : string = $"_equal / actual: %A{45} / expected: %A{45}"          │

00:00:12 #301 [Debug] > │     ()                                                                       │

00:00:12 #302 [Debug] > │ method0()                                                                    │

00:00:12 #303 [Debug] > │                                                                              │

00:00:12 #304 [Debug] > │                                                                              │

00:00:12 #305 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:12 #306 [Debug] >

00:00:12 #307 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:12 #308 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:12 #309 [Debug] > │ ## to_list                                                                   │

00:00:12 #310 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:12 #311 [Debug] >

00:00:12 #312 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:12 #313 [Debug] > inl to_list seq =

00:00:12 #314 [Debug] >     seq

00:00:12 #315 [Debug] >     |> fold (fun acc x => x :: acc) [[]]

00:00:12 #316 [Debug] >     |> listm.rev

00:00:12 #317 [Debug] >

00:00:12 #318 [Debug] > inl to_list_ seq =

00:00:12 #319 [Debug] >     seq

00:00:12 #320 [Debug] >     |> fold_ (fun acc x => x :: acc) [[]]

00:00:12 #321 [Debug] >     |> listm.rev

00:00:12 #322 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-0072-7221-77b0d9b13d9e\main.spi

00:00:12 #323 [Debug] >

00:00:12 #324 [Debug] > ╭─[ 160.53ms - stdout ]────────────────────────────────────────────────────────╮

00:00:12 #325 [Debug] > │ ()                                                                           │

00:00:12 #326 [Debug] > │                                                                              │

00:00:12 #327 [Debug] > │                                                                              │

00:00:12 #328 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:12 #329 [Debug] >

00:00:12 #330 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:12 #331 [Debug] > // // test

00:00:12 #332 [Debug] >

00:00:12 #333 [Debug] > listm.init 10i32 id

00:00:12 #334 [Debug] > |> from_list

00:00:12 #335 [Debug] > |> fun f (n : i32) => f n

00:00:12 #336 [Debug] > |> to_list

00:00:12 #337 [Debug] > |> _equal (listm.init 10i32 id)

00:00:12 #338 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-0088-8847-89944c9729fa\main.spi

00:00:13 #339 [Debug] >

00:00:13 #340 [Debug] > ╭─[ 238.29ms - stdout ]────────────────────────────────────────────────────────╮

00:00:13 #341 [Debug] > │ type UH0 =                                                                   │

00:00:13 #342 [Debug] > │     | UH0_0 of int32 * UH0                                                   │

00:00:13 #343 [Debug] > │     | UH0_1                                                                  │

00:00:13 #344 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:13 #345 [Debug] > │     let v88 : UH0 = UH0_1                                                    │

00:00:13 #346 [Debug] > │     let v89 : UH0 = UH0_0(9, v88)                                            │

00:00:13 #347 [Debug] > │     let v90 : UH0 = UH0_0(8, v89)                                            │

00:00:13 #348 [Debug] > │     let v91 : UH0 = UH0_0(7, v90)                                            │

00:00:13 #349 [Debug] > │     let v92 : UH0 = UH0_0(6, v91)                                            │

00:00:13 #350 [Debug] > │     let v93 : UH0 = UH0_0(5, v92)                                            │

00:00:13 #351 [Debug] > │     let v94 : UH0 = UH0_0(4, v93)                                            │

00:00:13 #352 [Debug] > │     let v95 : UH0 = UH0_0(3, v94)                                            │

00:00:13 #353 [Debug] > │     let v96 : UH0 = UH0_0(2, v95)                                            │

00:00:13 #354 [Debug] > │     let v97 : UH0 = UH0_0(1, v96)                                            │

00:00:13 #355 [Debug] > │     let v98 : UH0 = UH0_0(0, v97)                                            │

00:00:13 #356 [Debug] > │     let v99 : UH0 = UH0_1                                                    │

00:00:13 #357 [Debug] > │     let v100 : UH0 = UH0_0(9, v99)                                           │

00:00:13 #358 [Debug] > │     let v101 : UH0 = UH0_0(8, v100)                                          │

00:00:13 #359 [Debug] > │     let v102 : UH0 = UH0_0(7, v101)                                          │

00:00:13 #360 [Debug] > │     let v103 : UH0 = UH0_0(6, v102)                                          │

00:00:13 #361 [Debug] > │     let v104 : UH0 = UH0_0(5, v103)                                          │

00:00:13 #362 [Debug] > │     let v105 : UH0 = UH0_0(4, v104)                                          │

00:00:13 #363 [Debug] > │     let v106 : UH0 = UH0_0(3, v105)                                          │

00:00:13 #364 [Debug] > │     let v107 : UH0 = UH0_0(2, v106)                                          │

00:00:13 #365 [Debug] > │     let v108 : UH0 = UH0_0(1, v107)                                          │

00:00:13 #366 [Debug] > │     let v109 : UH0 = UH0_0(0, v108)                                          │

00:00:13 #367 [Debug] > │     let v110 : string = $"_equal / actual: %A{v98} / expected: %A{v109}"     │

00:00:13 #368 [Debug] > │     ()                                                                       │

00:00:13 #369 [Debug] > │ method0()                                                                    │

00:00:13 #370 [Debug] > │                                                                              │

00:00:13 #371 [Debug] > │                                                                              │

00:00:13 #372 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #373 [Debug] >

00:00:13 #374 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:13 #375 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:13 #376 [Debug] > │ ## take_while                                                                │

00:00:13 #377 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #378 [Debug] >

00:00:13 #379 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:13 #380 [Debug] > inl take_while cond seq =

00:00:13 #381 [Debug] >     inl rec loop acc i =

00:00:13 #382 [Debug] >         match seq i with

00:00:13 #383 [Debug] >         | Some st when cond st i => loop (st :: acc) (i + 1)

00:00:13 #384 [Debug] >         | _ => acc |> listm.rev

00:00:13 #385 [Debug] >     loop [[]] 0

00:00:13 #386 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-0114-1408-159d844be9bd\main.spi

00:00:13 #387 [Debug] >

00:00:13 #388 [Debug] > ╭─[ 165.35ms - stdout ]────────────────────────────────────────────────────────╮

00:00:13 #389 [Debug] > │ ()                                                                           │

00:00:13 #390 [Debug] > │                                                                              │

00:00:13 #391 [Debug] > │                                                                              │

00:00:13 #392 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #393 [Debug] >

00:00:13 #394 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:13 #395 [Debug] > // // test

00:00:13 #396 [Debug] >

00:00:13 #397 [Debug] > listm.init 10i32 id

00:00:13 #398 [Debug] > |> from_list

00:00:13 #399 [Debug] > |> take_while (fun n (_ : i32) => n < 5)

00:00:13 #400 [Debug] > |> listm'.sum

00:00:13 #401 [Debug] > |> _equal 10

00:00:13 #402 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-0130-3092-390374940eda\main.spi

00:00:13 #403 [Debug] >

00:00:13 #404 [Debug] > ╭─[ 251.91ms - stdout ]────────────────────────────────────────────────────────╮

00:00:13 #405 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:13 #406 [Debug] > │     let v0 : string = $"_equal / actual: %A{10} / expected: %A{10}"          │

00:00:13 #407 [Debug] > │     ()                                                                       │

00:00:13 #408 [Debug] > │ method0()                                                                    │

00:00:13 #409 [Debug] > │                                                                              │

00:00:13 #410 [Debug] > │                                                                              │

00:00:13 #411 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #412 [Debug] >

00:00:13 #413 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:13 #414 [Debug] > // // test

00:00:13 #415 [Debug] >

00:00:13 #416 [Debug] > stream.new_finite_stream print_and_return 10i32

00:00:13 #417 [Debug] > |> flip stream.try_item

00:00:13 #418 [Debug] > |> take_while (fun n (_ : i32) => n < 5)

00:00:13 #419 [Debug] > |> listm'.sum

00:00:13 #420 [Debug] > |> _equal 10

00:00:13 #421 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-0156-5627-5bfc9b3e7e74\main.spi

00:00:13 #422 [Debug] >

00:00:13 #423 [Debug] > ╭─[ 162.73ms - stdout ]────────────────────────────────────────────────────────╮

00:00:13 #424 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:13 #425 [Debug] > │     printfn $"print_and_return / x: {0}"                                     │

00:00:13 #426 [Debug] > │     printfn $"print_and_return / x: {1}"                                     │

00:00:13 #427 [Debug] > │     printfn $"print_and_return / x: {1}"                                     │

00:00:13 #428 [Debug] > │     printfn $"print_and_return / x: {2}"                                     │

00:00:13 #429 [Debug] > │     printfn $"print_and_return / x: {1}"                                     │

00:00:13 #430 [Debug] > │     printfn $"print_and_return / x: {2}"                                     │

00:00:13 #431 [Debug] > │     printfn $"print_and_return / x: {3}"                                     │

00:00:13 #432 [Debug] > │     printfn $"print_and_return / x: {1}"                                     │

00:00:13 #433 [Debug] > │     printfn $"print_and_return / x: {2}"                                     │

00:00:13 #434 [Debug] > │     printfn $"print_and_return / x: {3}"                                     │

00:00:13 #435 [Debug] > │     printfn $"print_and_return / x: {4}"                                     │

00:00:13 #436 [Debug] > │     printfn $"print_and_return / x: {1}"                                     │

00:00:13 #437 [Debug] > │     printfn $"print_and_return / x: {2}"                                     │

00:00:13 #438 [Debug] > │     printfn $"print_and_return / x: {3}"                                     │

00:00:13 #439 [Debug] > │     printfn $"print_and_return / x: {4}"                                     │

00:00:13 #440 [Debug] > │     printfn $"print_and_return / x: {5}"                                     │

00:00:13 #441 [Debug] > │     let v0 : string = $"_equal / actual: %A{10} / expected: %A{10}"          │

00:00:13 #442 [Debug] > │     ()                                                                       │

00:00:13 #443 [Debug] > │ method0()                                                                    │

00:00:13 #444 [Debug] > │                                                                              │

00:00:13 #445 [Debug] > │ print_and_return / x: 0                                                      │

00:00:13 #446 [Debug] > │ print_and_return / x: 1                                                      │

00:00:13 #447 [Debug] > │ print_and_return / x: 1                                                      │

00:00:13 #448 [Debug] > │ print_and_return / x: 2                                                      │

00:00:13 #449 [Debug] > │ print_and_return / x: 1                                                      │

00:00:13 #450 [Debug] > │ print_and_return / x: 2                                                      │

00:00:13 #451 [Debug] > │ print_and_return / x: 3                                                      │

00:00:13 #452 [Debug] > │ print_and_return / x: 1                                                      │

00:00:13 #453 [Debug] > │ print_and_return / x: 2                                                      │

00:00:13 #454 [Debug] > │ print_and_return / x: 3                                                      │

00:00:13 #455 [Debug] > │ print_and_return / x: 4                                                      │

00:00:13 #456 [Debug] > │ print_and_return / x: 1                                                      │

00:00:13 #457 [Debug] > │ print_and_return / x: 2                                                      │

00:00:13 #458 [Debug] > │ print_and_return / x: 3                                                      │

00:00:13 #459 [Debug] > │ print_and_return / x: 4                                                      │

00:00:13 #460 [Debug] > │ print_and_return / x: 5                                                      │

00:00:13 #461 [Debug] > │                                                                              │

00:00:13 #462 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #463 [Debug] >

00:00:13 #464 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:13 #465 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:13 #466 [Debug] > │ ## take_while_                                                               │

00:00:13 #467 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #468 [Debug] >

00:00:13 #469 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:13 #470 [Debug] > inl take_while_ cond seq =

00:00:13 #471 [Debug] >     let rec loop acc i =

00:00:13 #472 [Debug] >         match seq i with

00:00:13 #473 [Debug] >         | Some st when cond st i => loop (st :: acc) (i + 1)

00:00:13 #474 [Debug] >         | _ => acc |> listm.rev

00:00:13 #475 [Debug] >     loop [[]] 0

00:00:13 #476 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-0174-7435-74dc8ef30f23\main.spi

00:00:13 #477 [Debug] >

00:00:13 #478 [Debug] > ╭─[ 144.11ms - stdout ]────────────────────────────────────────────────────────╮

00:00:13 #479 [Debug] > │ ()                                                                           │

00:00:13 #480 [Debug] > │                                                                              │

00:00:13 #481 [Debug] > │                                                                              │

00:00:13 #482 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #483 [Debug] >

00:00:13 #484 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:13 #485 [Debug] > // // test

00:00:13 #486 [Debug] >

00:00:13 #487 [Debug] > stream.new_infinite_stream_ print_and_return

00:00:13 #488 [Debug] > |> flip stream.try_item

00:00:13 #489 [Debug] > |> take_while_ (fun n (_ : i32) => n < 5i32)

00:00:13 #490 [Debug] > |> listm'.sum

00:00:13 #491 [Debug] > |> _equal 10

00:00:13 #492 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-0189-8902-8f3f0e727da8\main.spi

00:00:14 #493 [Debug] >

00:00:14 #494 [Debug] > ╭─[ 581.82ms - stdout ]────────────────────────────────────────────────────────╮

00:00:14 #495 [Debug] > │ type UH0 =                                                                   │

00:00:14 #496 [Debug] > │     | UH0_0 of int32 * (unit -> UH0)                                         │

00:00:14 #497 [Debug] > │     | UH0_1                                                                  │

00:00:14 #498 [Debug] > │ and UH1 =                                                                    │

00:00:14 #499 [Debug] > │     | UH1_0 of int32 * UH1                                                   │

00:00:14 #500 [Debug] > │     | UH1_1                                                                  │

00:00:14 #501 [Debug] > │ and [<Struct>] US0 =                                                         │

00:00:14 #502 [Debug] > │     | US0_0                                                                  │

00:00:14 #503 [Debug] > │     | US0_1 of f1_0 : int32                                                  │

00:00:14 #504 [Debug] > │ let rec closure0 (v0 : int32) () : UH0 =                                     │

00:00:14 #505 [Debug] > │     let v1 : int32 = v0 + 1                                                  │

00:00:14 #506 [Debug] > │     method1(v1)                                                              │

00:00:14 #507 [Debug] > │ and method1 (v0 : int32) : UH0 =                                             │

00:00:14 #508 [Debug] > │     printfn $"print_and_return / x: {v0}"                                    │

00:00:14 #509 [Debug] > │     let v1 : (unit -> UH0) = closure0(v0)                                    │

00:00:14 #510 [Debug] > │     UH0_0(v0, v1)                                                            │

00:00:14 #511 [Debug] > │ and method3 (v0 : int32, v1 : UH0) : US0 =                                   │

00:00:14 #512 [Debug] > │     match v1 with                                                            │

00:00:14 #513 [Debug] > │     | UH0_0(v2, v3) -> (* StreamCons *)                                      │

00:00:14 #514 [Debug] > │         let v4 : bool = v0 <= 0                                              │

00:00:14 #515 [Debug] > │         if v4 then                                                           │

00:00:14 #516 [Debug] > │             US0_1(v2)                                                        │

00:00:14 #517 [Debug] > │         else                                                                 │

00:00:14 #518 [Debug] > │             let v6 : int32 = v0 - 1                                          │

00:00:14 #519 [Debug] > │             let v7 : UH0 = v3 ()                                             │

00:00:14 #520 [Debug] > │             method3(v6, v7)                                                  │

00:00:14 #521 [Debug] > │     | UH0_1 -> (* StreamNil *)                                               │

00:00:14 #522 [Debug] > │         US0_0                                                                │

00:00:14 #523 [Debug] > │ and method4 (v0 : UH1, v1 : UH1) : UH1 =                                     │

00:00:14 #524 [Debug] > │     match v0 with                                                            │

00:00:14 #525 [Debug] > │     | UH1_0(v2, v3) -> (* Cons *)                                            │

00:00:14 #526 [Debug] > │         let v4 : UH1 = UH1_0(v2, v1)                                         │

00:00:14 #527 [Debug] > │         method4(v3, v4)                                                      │

00:00:14 #528 [Debug] > │     | UH1_1 -> (* Nil *)                                                     │

00:00:14 #529 [Debug] > │         v1                                                                   │

00:00:14 #530 [Debug] > │ and method2 (v0 : UH0, v1 : UH1, v2 : int32) : UH1 =                         │

00:00:14 #531 [Debug] > │     let v3 : US0 = method3(v2, v0)                                           │

00:00:14 #532 [Debug] > │     match v3 with                                                            │

00:00:14 #533 [Debug] > │     | US0_1(v4) -> (* Some *)                                                │

00:00:14 #534 [Debug] > │         let v5 : bool = v4 < 5                                               │

00:00:14 #535 [Debug] > │         if v5 then                                                           │

00:00:14 #536 [Debug] > │             let v6 : UH1 = UH1_0(v4, v1)                                     │

00:00:14 #537 [Debug] > │             let v7 : int32 = v2 + 1                                          │

00:00:14 #538 [Debug] > │             method2(v0, v6, v7)                                              │

00:00:14 #539 [Debug] > │         else                                                                 │

00:00:14 #540 [Debug] > │             let v9 : UH1 = UH1_1                                             │

00:00:14 #541 [Debug] > │             method4(v1, v9)                                                  │

00:00:14 #542 [Debug] > │     | _ ->                                                                   │

00:00:14 #543 [Debug] > │         let v12 : UH1 = UH1_1                                                │

00:00:14 #544 [Debug] > │         method4(v1, v12)                                                     │

00:00:14 #545 [Debug] > │ and method5 (v0 : UH1, v1 : int32) : int32 =                                 │

00:00:14 #546 [Debug] > │     match v0 with                                                            │

00:00:14 #547 [Debug] > │     | UH1_0(v2, v3) -> (* Cons *)                                            │

00:00:14 #548 [Debug] > │         let v4 : int32 = v1 + v2                                             │

00:00:14 #549 [Debug] > │         method5(v3, v4)                                                      │

00:00:14 #550 [Debug] > │     | UH1_1 -> (* Nil *)                                                     │

00:00:14 #551 [Debug] > │         v1                                                                   │

00:00:14 #552 [Debug] > │ and method0 () : unit =                                                      │

00:00:14 #553 [Debug] > │     let v0 : int32 = 0                                                       │

00:00:14 #554 [Debug] > │     let v1 : UH0 = method1(v0)                                               │

00:00:14 #555 [Debug] > │     let v2 : UH1 = UH1_1                                                     │

00:00:14 #556 [Debug] > │     let v3 : int32 = 0                                                       │

00:00:14 #557 [Debug] > │     let v4 : UH1 = method2(v1, v2, v3)                                       │

00:00:14 #558 [Debug] > │     let v5 : int32 = 0                                                       │

00:00:14 #559 [Debug] > │     let v6 : int32 = method5(v4, v5)                                         │

00:00:14 #560 [Debug] > │     let v7 : bool = v6 = 10                                                  │

00:00:14 #561 [Debug] > │     let v8 : string = $"_equal / actual: %A{v6} / expected: %A{10}"          │

00:00:14 #562 [Debug] > │     let v9 : bool = v7 = false                                               │

00:00:14 #563 [Debug] > │     if v9 then                                                               │

00:00:14 #564 [Debug] > │         failwith<unit> v8                                                    │

00:00:14 #565 [Debug] > │ method0()                                                                    │

00:00:14 #566 [Debug] > │                                                                              │

00:00:14 #567 [Debug] > │ print_and_return / x: 0                                                      │

00:00:14 #568 [Debug] > │ print_and_return / x: 1                                                      │

00:00:14 #569 [Debug] > │ print_and_return / x: 1                                                      │

00:00:14 #570 [Debug] > │ print_and_return / x: 2                                                      │

00:00:14 #571 [Debug] > │ print_and_return / x: 1                                                      │

00:00:14 #572 [Debug] > │ print_and_return / x: 2                                                      │

00:00:14 #573 [Debug] > │ print_and_return / x: 3                                                      │

00:00:14 #574 [Debug] > │ print_and_return / x: 1                                                      │

00:00:14 #575 [Debug] > │ print_and_return / x: 2                                                      │

00:00:14 #576 [Debug] > │ print_and_return / x: 3                                                      │

00:00:14 #577 [Debug] > │ print_and_return / x: 4                                                      │

00:00:14 #578 [Debug] > │ print_and_return / x: 1                                                      │

00:00:14 #579 [Debug] > │ print_and_return / x: 2                                                      │

00:00:14 #580 [Debug] > │ print_and_return / x: 3                                                      │

00:00:14 #581 [Debug] > │ print_and_return / x: 4                                                      │

00:00:14 #582 [Debug] > │ print_and_return / x: 5                                                      │

00:00:14 #583 [Debug] > │                                                                              │

00:00:14 #584 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:14 #585 [Debug] >

00:00:14 #586 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:14 #587 [Debug] > // // test

00:00:14 #588 [Debug] >

00:00:14 #589 [Debug] > stream.new_infinite_stream_ print_and_return

00:00:14 #590 [Debug] > |> stream.memoize

00:00:14 #591 [Debug] > |> fun list =>

00:00:14 #592 [Debug] >     inl list = list ()

00:00:14 #593 [Debug] >     fun n =>

00:00:14 #594 [Debug] >         list |> stream.try_item n

00:00:14 #595 [Debug] > |> take_while_ (fun n (_ : i32) => n < 5i32)

00:00:14 #596 [Debug] > |> listm'.sum

00:00:14 #597 [Debug] > |> _equal 10

00:00:14 #598 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-0252-5236-595fe3d55ca3\main.spi

00:00:14 #599 [Debug] >

00:00:14 #600 [Debug] > ╭─[ 348.41ms - stdout ]────────────────────────────────────────────────────────╮

00:00:14 #601 [Debug] > │ type UH0 =                                                                   │

00:00:14 #602 [Debug] > │     | UH0_0 of int32 * (unit -> UH0)                                         │

00:00:14 #603 [Debug] > │     | UH0_1                                                                  │

00:00:14 #604 [Debug] > │ and [<Struct>] US0 =                                                         │

00:00:14 #605 [Debug] > │     | US0_0 of f0_0 : UH0                                                    │

00:00:14 #606 [Debug] > │     | US0_1 of f1_0 : (unit -> UH0)                                          │

00:00:14 #607 [Debug] > │ and Mut0 = {mutable l0 : US0}                                                │

00:00:14 #608 [Debug] > │ and UH1 =                                                                    │

00:00:14 #609 [Debug] > │     | UH1_0 of int32 * UH1                                                   │

00:00:14 #610 [Debug] > │     | UH1_1                                                                  │

00:00:14 #611 [Debug] > │ and [<Struct>] US1 =                                                         │

00:00:14 #612 [Debug] > │     | US1_0                                                                  │

00:00:14 #613 [Debug] > │     | US1_1 of f1_0 : int32                                                  │

00:00:14 #614 [Debug] > │ let rec closure0 (v0 : int32) () : UH0 =                                     │

00:00:14 #615 [Debug] > │     let v1 : int32 = v0 + 1                                                  │

00:00:14 #616 [Debug] > │     method1(v1)                                                              │

00:00:14 #617 [Debug] > │ and method1 (v0 : int32) : UH0 =                                             │

00:00:14 #618 [Debug] > │     printfn $"print_and_return / x: {v0}"                                    │

00:00:14 #619 [Debug] > │     let v1 : (unit -> UH0) = closure0(v0)                                    │

00:00:14 #620 [Debug] > │     UH0_0(v0, v1)                                                            │

00:00:14 #621 [Debug] > │ and closure1 (v0 : UH0) () : UH0 =                                           │

00:00:14 #622 [Debug] > │     v0                                                                       │

00:00:14 #623 [Debug] > │ and closure2 (v0 : UH0, v1 : Mut0) () : UH0 =                                │

00:00:14 #624 [Debug] > │     let v2 : US0 = v1.l0                                                     │

00:00:14 #625 [Debug] > │     match v2 with                                                            │

00:00:14 #626 [Debug] > │     | US0_0(v3) -> (* Computed *)                                            │

00:00:14 #627 [Debug] > │         v3                                                                   │

00:00:14 #628 [Debug] > │     | US0_1(v4) -> (* NotComputed *)                                         │

00:00:14 #629 [Debug] > │         let v5 : UH0 = v4 ()                                                 │

00:00:14 #630 [Debug] > │         let v12 : UH0 =                                                      │

00:00:14 #631 [Debug] > │             match v5 with                                                    │

00:00:14 #632 [Debug] > │             | UH0_0(v7, v8) -> (* StreamCons *)                              │

00:00:14 #633 [Debug] > │                 let v9 : (unit -> UH0) = method2(v0, v8)                     │

00:00:14 #634 [Debug] > │                 UH0_0(v7, v9)                                                │

00:00:14 #635 [Debug] > │             | UH0_1 -> (* StreamNil *)                                       │

00:00:14 #636 [Debug] > │                 UH0_1                                                        │

00:00:14 #637 [Debug] > │         let v13 : US0 = US0_0(v12)                                           │

00:00:14 #638 [Debug] > │         v1.l0 <- v13                                                         │

00:00:14 #639 [Debug] > │         v12                                                                  │

00:00:14 #640 [Debug] > │ and method2 (v0 : UH0, v1 : (unit -> UH0)) : (unit -> UH0) =                 │

00:00:14 #641 [Debug] > │     let v2 : US0 = US0_1(v1)                                                 │

00:00:14 #642 [Debug] > │     let v3 : Mut0 = {l0 = v2} : Mut0                                         │

00:00:14 #643 [Debug] > │     closure2(v0, v3)                                                         │

00:00:14 #644 [Debug] > │ and method4 (v0 : int32, v1 : UH0) : US1 =                                   │

00:00:14 #645 [Debug] > │     match v1 with                                                            │

00:00:14 #646 [Debug] > │     | UH0_0(v2, v3) -> (* StreamCons *)                                      │

00:00:14 #647 [Debug] > │         let v4 : bool = v0 <= 0                                              │

00:00:14 #648 [Debug] > │         if v4 then                                                           │

00:00:14 #649 [Debug] > │             US1_1(v2)                                                        │

00:00:14 #650 [Debug] > │         else                                                                 │

00:00:14 #651 [Debug] > │             let v6 : int32 = v0 - 1                                          │

00:00:14 #652 [Debug] > │             let v7 : UH0 = v3 ()                                             │

00:00:14 #653 [Debug] > │             method4(v6, v7)                                                  │

00:00:14 #654 [Debug] > │     | UH0_1 -> (* StreamNil *)                                               │

00:00:14 #655 [Debug] > │         US1_0                                                                │

00:00:14 #656 [Debug] > │ and method5 (v0 : UH1, v1 : UH1) : UH1 =                                     │

00:00:14 #657 [Debug] > │     match v0 with                                                            │

00:00:14 #658 [Debug] > │     | UH1_0(v2, v3) -> (* Cons *)                                            │

00:00:14 #659 [Debug] > │         let v4 : UH1 = UH1_0(v2, v1)                                         │

00:00:14 #660 [Debug] > │         method5(v3, v4)                                                      │

00:00:14 #661 [Debug] > │     | UH1_1 -> (* Nil *)                                                     │

00:00:14 #662 [Debug] > │         v1                                                                   │

00:00:14 #663 [Debug] > │ and method3 (v0 : UH0, v1 : UH1, v2 : int32) : UH1 =                         │

00:00:14 #664 [Debug] > │     let v3 : US1 = method4(v2, v0)                                           │

00:00:14 #665 [Debug] > │     match v3 with                                                            │

00:00:14 #666 [Debug] > │     | US1_1(v4) -> (* Some *)                                                │

00:00:14 #667 [Debug] > │         let v5 : bool = v4 < 5                                               │

00:00:14 #668 [Debug] > │         if v5 then                                                           │

00:00:14 #669 [Debug] > │             let v6 : UH1 = UH1_0(v4, v1)                                     │

00:00:14 #670 [Debug] > │             let v7 : int32 = v2 + 1                                          │

00:00:14 #671 [Debug] > │             method3(v0, v6, v7)                                              │

00:00:14 #672 [Debug] > │         else                                                                 │

00:00:14 #673 [Debug] > │             let v9 : UH1 = UH1_1                                             │

00:00:14 #674 [Debug] > │             method5(v1, v9)                                                  │

00:00:14 #675 [Debug] > │     | _ ->                                                                   │

00:00:14 #676 [Debug] > │         let v12 : UH1 = UH1_1                                                │

00:00:14 #677 [Debug] > │         method5(v1, v12)                                                     │

00:00:14 #678 [Debug] > │ and method6 (v0 : UH1, v1 : int32) : int32 =                                 │

00:00:14 #679 [Debug] > │     match v0 with                                                            │

00:00:14 #680 [Debug] > │     | UH1_0(v2, v3) -> (* Cons *)                                            │

00:00:14 #681 [Debug] > │         let v4 : int32 = v1 + v2                                             │

00:00:14 #682 [Debug] > │         method6(v3, v4)                                                      │

00:00:14 #683 [Debug] > │     | UH1_1 -> (* Nil *)                                                     │

00:00:14 #684 [Debug] > │         v1                                                                   │

00:00:14 #685 [Debug] > │ and method0 () : unit =                                                      │

00:00:14 #686 [Debug] > │     let v0 : int32 = 0                                                       │

00:00:14 #687 [Debug] > │     let v1 : UH0 = method1(v0)                                               │

00:00:14 #688 [Debug] > │     let v2 : (unit -> UH0) = closure1(v1)                                    │

00:00:14 #689 [Debug] > │     let v3 : (unit -> UH0) = method2(v1, v2)                                 │

00:00:14 #690 [Debug] > │     let v4 : UH0 = v3 ()                                                     │

00:00:14 #691 [Debug] > │     let v5 : UH1 = UH1_1                                                     │

00:00:14 #692 [Debug] > │     let v6 : int32 = 0                                                       │

00:00:14 #693 [Debug] > │     let v7 : UH1 = method3(v4, v5, v6)                                       │

00:00:14 #694 [Debug] > │     let v8 : int32 = 0                                                       │

00:00:14 #695 [Debug] > │     let v9 : int32 = method6(v7, v8)                                         │

00:00:14 #696 [Debug] > │     let v10 : bool = v9 = 10                                                 │

00:00:14 #697 [Debug] > │     let v11 : string = $"_equal / actual: %A{v9} / expected: %A{10}"         │

00:00:14 #698 [Debug] > │     let v12 : bool = v10 = false                                             │

00:00:14 #699 [Debug] > │     if v12 then                                                              │

00:00:14 #700 [Debug] > │         failwith<unit> v11                                                   │

00:00:14 #701 [Debug] > │ method0()                                                                    │

00:00:14 #702 [Debug] > │                                                                              │

00:00:14 #703 [Debug] > │ print_and_return / x: 0                                                      │

00:00:14 #704 [Debug] > │ print_and_return / x: 1                                                      │

00:00:14 #705 [Debug] > │ print_and_return / x: 2                                                      │

00:00:14 #706 [Debug] > │ print_and_return / x: 3                                                      │

00:00:14 #707 [Debug] > │ print_and_return / x: 4                                                      │

00:00:14 #708 [Debug] > │ print_and_return / x: 5                                                      │

00:00:14 #709 [Debug] > │                                                                              │

00:00:14 #710 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:14 #711 [Debug] >

00:00:14 #712 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:14 #713 [Debug] > // // test

00:00:14 #714 [Debug] >

00:00:14 #715 [Debug] > stream.new_finite_stream print_and_return 10i32

00:00:14 #716 [Debug] > |> stream.memoize

00:00:14 #717 [Debug] > |> fun list =>

00:00:14 #718 [Debug] >     inl list = list ()

00:00:14 #719 [Debug] >     fun n =>

00:00:14 #720 [Debug] >         list |> stream.try_item n

00:00:14 #721 [Debug] > |> take_while_ (fun n (_ : i32) => n < 5)

00:00:14 #722 [Debug] > |> listm'.sum

00:00:14 #723 [Debug] > |> _equal 10

00:00:15 #724 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-0291-9127-95b5a0d8af89\main.spi

00:00:15 #725 [Debug] >

00:00:15 #726 [Debug] > ╭─[ 275.30ms - stdout ]────────────────────────────────────────────────────────╮

00:00:15 #727 [Debug] > │ type UH0 =                                                                   │

00:00:15 #728 [Debug] > │     | UH0_0 of int32 * (unit -> UH0)                                         │

00:00:15 #729 [Debug] > │     | UH0_1                                                                  │

00:00:15 #730 [Debug] > │ and [<Struct>] US0 =                                                         │

00:00:15 #731 [Debug] > │     | US0_0 of f0_0 : UH0                                                    │

00:00:15 #732 [Debug] > │     | US0_1 of f1_0 : (unit -> UH0)                                          │

00:00:15 #733 [Debug] > │ and Mut0 = {mutable l0 : US0}                                                │

00:00:15 #734 [Debug] > │ and UH1 =                                                                    │

00:00:15 #735 [Debug] > │     | UH1_0 of int32 * UH1                                                   │

00:00:15 #736 [Debug] > │     | UH1_1                                                                  │

00:00:15 #737 [Debug] > │ and [<Struct>] US1 =                                                         │

00:00:15 #738 [Debug] > │     | US1_0                                                                  │

00:00:15 #739 [Debug] > │     | US1_1 of f1_0 : int32                                                  │

00:00:15 #740 [Debug] > │ let rec closure10 () () : UH0 =                                              │

00:00:15 #741 [Debug] > │     UH0_1                                                                    │

00:00:15 #742 [Debug] > │ and closure9 () () : UH0 =                                                   │

00:00:15 #743 [Debug] > │     printfn $"print_and_return / x: {9}"                                     │

00:00:15 #744 [Debug] > │     let v0 : (unit -> UH0) = closure10()                                     │

00:00:15 #745 [Debug] > │     UH0_0(9, v0)                                                             │

00:00:15 #746 [Debug] > │ and closure8 () () : UH0 =                                                   │

00:00:15 #747 [Debug] > │     printfn $"print_and_return / x: {8}"                                     │

00:00:15 #748 [Debug] > │     let v0 : (unit -> UH0) = closure9()                                      │

00:00:15 #749 [Debug] > │     UH0_0(8, v0)                                                             │

00:00:15 #750 [Debug] > │ and closure7 () () : UH0 =                                                   │

00:00:15 #751 [Debug] > │     printfn $"print_and_return / x: {7}"                                     │

00:00:15 #752 [Debug] > │     let v0 : (unit -> UH0) = closure8()                                      │

00:00:15 #753 [Debug] > │     UH0_0(7, v0)                                                             │

00:00:15 #754 [Debug] > │ and closure6 () () : UH0 =                                                   │

00:00:15 #755 [Debug] > │     printfn $"print_and_return / x: {6}"                                     │

00:00:15 #756 [Debug] > │     let v0 : (unit -> UH0) = closure7()                                      │

00:00:15 #757 [Debug] > │     UH0_0(6, v0)                                                             │

00:00:15 #758 [Debug] > │ and closure5 () () : UH0 =                                                   │

00:00:15 #759 [Debug] > │     printfn $"print_and_return / x: {5}"                                     │

00:00:15 #760 [Debug] > │     let v0 : (unit -> UH0) = closure6()                                      │

00:00:15 #761 [Debug] > │     UH0_0(5, v0)                                                             │

00:00:15 #762 [Debug] > │ and closure4 () () : UH0 =                                                   │

00:00:15 #763 [Debug] > │     printfn $"print_and_return / x: {4}"                                     │

00:00:15 #764 [Debug] > │     let v0 : (unit -> UH0) = closure5()                                      │

00:00:15 #765 [Debug] > │     UH0_0(4, v0)                                                             │

00:00:15 #766 [Debug] > │ and closure3 () () : UH0 =                                                   │

00:00:15 #767 [Debug] > │     printfn $"print_and_return / x: {3}"                                     │

00:00:15 #768 [Debug] > │     let v0 : (unit -> UH0) = closure4()                                      │

00:00:15 #769 [Debug] > │     UH0_0(3, v0)                                                             │

00:00:15 #770 [Debug] > │ and closure2 () () : UH0 =                                                   │

00:00:15 #771 [Debug] > │     printfn $"print_and_return / x: {2}"                                     │

00:00:15 #772 [Debug] > │     let v0 : (unit -> UH0) = closure3()                                      │

00:00:15 #773 [Debug] > │     UH0_0(2, v0)                                                             │

00:00:15 #774 [Debug] > │ and closure1 () () : UH0 =                                                   │

00:00:15 #775 [Debug] > │     printfn $"print_and_return / x: {1}"                                     │

00:00:15 #776 [Debug] > │     let v0 : (unit -> UH0) = closure2()                                      │

00:00:15 #777 [Debug] > │     UH0_0(1, v0)                                                             │

00:00:15 #778 [Debug] > │ and closure0 () () : UH0 =                                                   │

00:00:15 #779 [Debug] > │     let v0 : (unit -> UH0) = closure1()                                      │

00:00:15 #780 [Debug] > │     UH0_0(0, v0)                                                             │

00:00:15 #781 [Debug] > │ and closure11 (v0 : Mut0) () : UH0 =                                         │

00:00:15 #782 [Debug] > │     let v1 : US0 = v0.l0                                                     │

00:00:15 #783 [Debug] > │     match v1 with                                                            │

00:00:15 #784 [Debug] > │     | US0_0(v2) -> (* Computed *)                                            │

00:00:15 #785 [Debug] > │         v2                                                                   │

00:00:15 #786 [Debug] > │     | US0_1(v3) -> (* NotComputed *)                                         │

00:00:15 #787 [Debug] > │         let v4 : UH0 = v3 ()                                                 │

00:00:15 #788 [Debug] > │         let v13 : UH0 =                                                      │

00:00:15 #789 [Debug] > │             match v4 with                                                    │

00:00:15 #790 [Debug] > │             | UH0_0(v6, v7) -> (* StreamCons *)                              │

00:00:15 #791 [Debug] > │                 let v8 : US0 = US0_1(v7)                                     │

00:00:15 #792 [Debug] > │                 let v9 : Mut0 = {l0 = v8} : Mut0                             │

00:00:15 #793 [Debug] > │                 let v10 : (unit -> UH0) = closure11(v9)                      │

00:00:15 #794 [Debug] > │                 UH0_0(v6, v10)                                               │

00:00:15 #795 [Debug] > │             | UH0_1 -> (* StreamNil *)                                       │

00:00:15 #796 [Debug] > │                 UH0_1                                                        │

00:00:15 #797 [Debug] > │         let v14 : US0 = US0_0(v13)                                           │

00:00:15 #798 [Debug] > │         v0.l0 <- v14                                                         │

00:00:15 #799 [Debug] > │         v13                                                                  │

00:00:15 #800 [Debug] > │ and method2 (v0 : int32, v1 : UH0) : US1 =                                   │

00:00:15 #801 [Debug] > │     match v1 with                                                            │

00:00:15 #802 [Debug] > │     | UH0_0(v2, v3) -> (* StreamCons *)                                      │

00:00:15 #803 [Debug] > │         let v4 : bool = v0 <= 0                                              │

00:00:15 #804 [Debug] > │         if v4 then                                                           │

00:00:15 #805 [Debug] > │             US1_1(v2)                                                        │

00:00:15 #806 [Debug] > │         else                                                                 │

00:00:15 #807 [Debug] > │             let v6 : int32 = v0 - 1                                          │

00:00:15 #808 [Debug] > │             let v7 : UH0 = v3 ()                                             │

00:00:15 #809 [Debug] > │             method2(v6, v7)                                                  │

00:00:15 #810 [Debug] > │     | UH0_1 -> (* StreamNil *)                                               │

00:00:15 #811 [Debug] > │         US1_0                                                                │

00:00:15 #812 [Debug] > │ and method3 (v0 : UH1, v1 : UH1) : UH1 =                                     │

00:00:15 #813 [Debug] > │     match v0 with                                                            │

00:00:15 #814 [Debug] > │     | UH1_0(v2, v3) -> (* Cons *)                                            │

00:00:15 #815 [Debug] > │         let v4 : UH1 = UH1_0(v2, v1)                                         │

00:00:15 #816 [Debug] > │         method3(v3, v4)                                                      │

00:00:15 #817 [Debug] > │     | UH1_1 -> (* Nil *)                                                     │

00:00:15 #818 [Debug] > │         v1                                                                   │

00:00:15 #819 [Debug] > │ and method1 (v0 : UH0, v1 : UH1, v2 : int32) : UH1 =                         │

00:00:15 #820 [Debug] > │     let v3 : US1 = method2(v2, v0)                                           │

00:00:15 #821 [Debug] > │     match v3 with                                                            │

00:00:15 #822 [Debug] > │     | US1_1(v4) -> (* Some *)                                                │

00:00:15 #823 [Debug] > │         let v5 : bool = v4 < 5                                               │

00:00:15 #824 [Debug] > │         if v5 then                                                           │

00:00:15 #825 [Debug] > │             let v6 : UH1 = UH1_0(v4, v1)                                     │

00:00:15 #826 [Debug] > │             let v7 : int32 = v2 + 1                                          │

00:00:15 #827 [Debug] > │             method1(v0, v6, v7)                                              │

00:00:15 #828 [Debug] > │         else                                                                 │

00:00:15 #829 [Debug] > │             let v9 : UH1 = UH1_1                                             │

00:00:15 #830 [Debug] > │             method3(v1, v9)                                                  │

00:00:15 #831 [Debug] > │     | _ ->                                                                   │

00:00:15 #832 [Debug] > │         let v12 : UH1 = UH1_1                                                │

00:00:15 #833 [Debug] > │         method3(v1, v12)                                                     │

00:00:15 #834 [Debug] > │ and method4 (v0 : UH1, v1 : int32) : int32 =                                 │

00:00:15 #835 [Debug] > │     match v0 with                                                            │

00:00:15 #836 [Debug] > │     | UH1_0(v2, v3) -> (* Cons *)                                            │

00:00:15 #837 [Debug] > │         let v4 : int32 = v1 + v2                                             │

00:00:15 #838 [Debug] > │         method4(v3, v4)                                                      │

00:00:15 #839 [Debug] > │     | UH1_1 -> (* Nil *)                                                     │

00:00:15 #840 [Debug] > │         v1                                                                   │

00:00:15 #841 [Debug] > │ and method0 () : unit =                                                      │

00:00:15 #842 [Debug] > │     printfn $"print_and_return / x: {0}"                                     │

00:00:15 #843 [Debug] > │     let v0 : (unit -> UH0) = closure0()                                      │

00:00:15 #844 [Debug] > │     let v1 : US0 = US0_1(v0)                                                 │

00:00:15 #845 [Debug] > │     let v2 : Mut0 = {l0 = v1} : Mut0                                         │

00:00:15 #846 [Debug] > │     let v3 : US0 = v2.l0                                                     │

00:00:15 #847 [Debug] > │     let v18 : UH0 =                                                          │

00:00:15 #848 [Debug] > │         match v3 with                                                        │

00:00:15 #849 [Debug] > │         | US0_0(v4) -> (* Computed *)                                        │

00:00:15 #850 [Debug] > │             v4                                                               │

00:00:15 #851 [Debug] > │         | US0_1(v5) -> (* NotComputed *)                                     │

00:00:15 #852 [Debug] > │             let v6 : UH0 = v5 ()                                             │

00:00:15 #853 [Debug] > │             let v15 : UH0 =                                                  │

00:00:15 #854 [Debug] > │                 match v6 with                                                │

00:00:15 #855 [Debug] > │                 | UH0_0(v8, v9) -> (* StreamCons *)                          │

00:00:15 #856 [Debug] > │                     let v10 : US0 = US0_1(v9)                                │

00:00:15 #857 [Debug] > │                     let v11 : Mut0 = {l0 = v10} : Mut0                       │

00:00:15 #858 [Debug] > │                     let v12 : (unit -> UH0) = closure11(v11)                 │

00:00:15 #859 [Debug] > │                     UH0_0(v8, v12)                                           │

00:00:15 #860 [Debug] > │                 | UH0_1 -> (* StreamNil *)                                   │

00:00:15 #861 [Debug] > │                     UH0_1                                                    │

00:00:15 #862 [Debug] > │             let v16 : US0 = US0_0(v15)                                       │

00:00:15 #863 [Debug] > │             v2.l0 <- v16                                                     │

00:00:15 #864 [Debug] > │             v15                                                              │

00:00:15 #865 [Debug] > │     let v19 : UH1 = UH1_1                                                    │

00:00:15 #866 [Debug] > │     let v20 : int32 = 0                                                      │

00:00:15 #867 [Debug] > │     let v21 : UH1 = method1(v18, v19, v20)                                   │

00:00:15 #868 [Debug] > │     let v22 : int32 = 0                                                      │

00:00:15 #869 [Debug] > │     let v23 : int32 = method4(v21, v22)                                      │

00:00:15 #870 [Debug] > │     let v24 : bool = v23 = 10                                                │

00:00:15 #871 [Debug] > │     let v25 : string = $"_equal / actual: %A{v23} / expected: %A{10}"        │

00:00:15 #872 [Debug] > │     let v26 : bool = v24 = false                                             │

00:00:15 #873 [Debug] > │     if v26 then                                                              │

00:00:15 #874 [Debug] > │         failwith<unit> v25                                                   │

00:00:15 #875 [Debug] > │ method0()                                                                    │

00:00:15 #876 [Debug] > │                                                                              │

00:00:15 #877 [Debug] > │ print_and_return / x: 0                                                      │

00:00:15 #878 [Debug] > │ print_and_return / x: 1                                                      │

00:00:15 #879 [Debug] > │ print_and_return / x: 2                                                      │

00:00:15 #880 [Debug] > │ print_and_return / x: 3                                                      │

00:00:15 #881 [Debug] > │ print_and_return / x: 4                                                      │

00:00:15 #882 [Debug] > │ print_and_return / x: 5                                                      │

00:00:15 #883 [Debug] > │                                                                              │

00:00:15 #884 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #885 [Debug] >

00:00:15 #886 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:15 #887 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:15 #888 [Debug] > │ ## memoize                                                                   │

00:00:15 #889 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #890 [Debug] >

00:00:15 #891 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:15 #892 [Debug] > inl memoize seq =

00:00:15 #893 [Debug] >     inl state = mut [[]]

00:00:15 #894 [Debug] >     fun n =>

00:00:15 #895 [Debug] >         match *state |> listm'.try_find (fun (n', _) => n' = n) with

00:00:15 #896 [Debug] >         | Some (_, v) => v

00:00:15 #897 [Debug] >         | None =>

00:00:15 #898 [Debug] >             inl new_state = seq n

00:00:15 #899 [Debug] >             state <- (n, new_state) :: *state

00:00:15 #900 [Debug] >             new_state

00:00:15 #901 [Debug] >

00:00:15 #902 [Debug] > inl memoize_ seq =

00:00:15 #903 [Debug] >     inl state = mut [[]]

00:00:15 #904 [Debug] >     fun n =>

00:00:15 #905 [Debug] >         match *state |> listm'.try_find_ (fun (n', _) => n' = n) with

00:00:15 #906 [Debug] >         | Some (_, v) => v

00:00:15 #907 [Debug] >         | None =>

00:00:15 #908 [Debug] >             inl new_state = seq n

00:00:15 #909 [Debug] >             state <- (n, new_state) :: *state

00:00:15 #910 [Debug] >             new_state

00:00:15 #911 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-0325-2511-25c719c84e73\main.spi

00:00:15 #912 [Debug] >

00:00:15 #913 [Debug] > ╭─[ 144.89ms - stdout ]────────────────────────────────────────────────────────╮

00:00:15 #914 [Debug] > │ ()                                                                           │

00:00:15 #915 [Debug] > │                                                                              │

00:00:15 #916 [Debug] > │                                                                              │

00:00:15 #917 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #918 [Debug] >

00:00:15 #919 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:15 #920 [Debug] > // // test

00:00:15 #921 [Debug] >

00:00:15 #922 [Debug] > inl seq =

00:00:15 #923 [Debug] >     fun n =>

00:00:15 #924 [Debug] >         n |> print_and_return |> Some

00:00:15 #925 [Debug] >     |> memoize_

00:00:15 #926 [Debug] >

00:00:15 #927 [Debug] > seq

00:00:15 #928 [Debug] > |> take_while_ (fun n (_ : i32) => n < 5)

00:00:15 #929 [Debug] > |> listm'.sum

00:00:15 #930 [Debug] > |> _equal 10

00:00:15 #931 [Debug] >

00:00:15 #932 [Debug] > seq

00:00:15 #933 [Debug] > |> take_while_ (fun n _ => n < 5)

00:00:15 #934 [Debug] > |> listm'.sum

00:00:15 #935 [Debug] > |> _equal 10

00:00:15 #936 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-0339-3984-3efe83c5b9c9\main.spi

00:00:15 #937 [Debug] >

00:00:15 #938 [Debug] > ╭─[ 327.40ms - stdout ]────────────────────────────────────────────────────────╮

00:00:15 #939 [Debug] > │ type [<Struct>] US0 =                                                        │

00:00:15 #940 [Debug] > │     | US0_0                                                                  │

00:00:15 #941 [Debug] > │     | US0_1 of f1_0 : int32                                                  │

00:00:15 #942 [Debug] > │ and UH0 =                                                                    │

00:00:15 #943 [Debug] > │     | UH0_0 of int32 * US0 * UH0                                             │

00:00:15 #944 [Debug] > │     | UH0_1                                                                  │

00:00:15 #945 [Debug] > │ and Mut0 = {mutable l0 : UH0}                                                │

00:00:15 #946 [Debug] > │ and UH1 =                                                                    │

00:00:15 #947 [Debug] > │     | UH1_0 of int32 * UH1                                                   │

00:00:15 #948 [Debug] > │     | UH1_1                                                                  │

00:00:15 #949 [Debug] > │ and [<Struct>] US1 =                                                         │

00:00:15 #950 [Debug] > │     | US1_0                                                                  │

00:00:15 #951 [Debug] > │     | US1_1 of f1_0 : int32 * f1_1 : US0                                     │

00:00:15 #952 [Debug] > │ let rec method2 (v0 : int32, v1 : UH0) : US1 =                               │

00:00:15 #953 [Debug] > │     match v1 with                                                            │

00:00:15 #954 [Debug] > │     | UH0_0(v3, v4, v5) -> (* Cons *)                                        │

00:00:15 #955 [Debug] > │         let v6 : bool = v3 = v0                                              │

00:00:15 #956 [Debug] > │         if v6 then                                                           │

00:00:15 #957 [Debug] > │             US1_1(v3, v4)                                                    │

00:00:15 #958 [Debug] > │         else                                                                 │

00:00:15 #959 [Debug] > │             method2(v0, v5)                                                  │

00:00:15 #960 [Debug] > │     | UH0_1 -> (* Nil *)                                                     │

00:00:15 #961 [Debug] > │         US1_0                                                                │

00:00:15 #962 [Debug] > │ and method3 (v0 : UH1, v1 : UH1) : UH1 =                                     │

00:00:15 #963 [Debug] > │     match v0 with                                                            │

00:00:15 #964 [Debug] > │     | UH1_0(v2, v3) -> (* Cons *)                                            │

00:00:15 #965 [Debug] > │         let v4 : UH1 = UH1_0(v2, v1)                                         │

00:00:15 #966 [Debug] > │         method3(v3, v4)                                                      │

00:00:15 #967 [Debug] > │     | UH1_1 -> (* Nil *)                                                     │

00:00:15 #968 [Debug] > │         v1                                                                   │

00:00:15 #969 [Debug] > │ and method1 (v0 : Mut0, v1 : UH1, v2 : int32) : UH1 =                        │

00:00:15 #970 [Debug] > │     let v3 : UH0 = v0.l0                                                     │

00:00:15 #971 [Debug] > │     let v4 : US1 = method2(v2, v3)                                           │

00:00:15 #972 [Debug] > │     let v12 : US0 =                                                          │

00:00:15 #973 [Debug] > │         match v4 with                                                        │

00:00:15 #974 [Debug] > │         | US1_0 -> (* None *)                                                │

00:00:15 #975 [Debug] > │             printfn $"print_and_return / x: {v2}"                            │

00:00:15 #976 [Debug] > │             let v7 : UH0 = v0.l0                                             │

00:00:15 #977 [Debug] > │             let v8 : US0 = US0_1(v2)                                         │

00:00:15 #978 [Debug] > │             let v9 : UH0 = UH0_0(v2, v8, v7)                                 │

00:00:15 #979 [Debug] > │             v0.l0 <- v9                                                      │

00:00:15 #980 [Debug] > │             US0_1(v2)                                                        │

00:00:15 #981 [Debug] > │         | US1_1(v5, v6) -> (* Some *)                                        │

00:00:15 #982 [Debug] > │             v6                                                               │

00:00:15 #983 [Debug] > │     match v12 with                                                           │

00:00:15 #984 [Debug] > │     | US0_1(v13) -> (* Some *)                                               │

00:00:15 #985 [Debug] > │         let v14 : bool = v13 < 5                                             │

00:00:15 #986 [Debug] > │         if v14 then                                                          │

00:00:15 #987 [Debug] > │             let v15 : UH1 = UH1_0(v13, v1)                                   │

00:00:15 #988 [Debug] > │             let v16 : int32 = v2 + 1                                         │

00:00:15 #989 [Debug] > │             method1(v0, v15, v16)                                            │

00:00:15 #990 [Debug] > │         else                                                                 │

00:00:15 #991 [Debug] > │             let v18 : UH1 = UH1_1                                            │

00:00:15 #992 [Debug] > │             method3(v1, v18)                                                 │

00:00:15 #993 [Debug] > │     | _ ->                                                                   │

00:00:15 #994 [Debug] > │         let v21 : UH1 = UH1_1                                                │

00:00:15 #995 [Debug] > │         method3(v1, v21)                                                     │

00:00:15 #996 [Debug] > │ and method4 (v0 : UH1, v1 : int32) : int32 =                                 │

00:00:15 #997 [Debug] > │     match v0 with                                                            │

00:00:15 #998 [Debug] > │     | UH1_0(v2, v3) -> (* Cons *)                                            │

00:00:15 #999 [Debug] > │         let v4 : int32 = v1 + v2                                             │

00:00:15 #1000 [Debug] > │         method4(v3, v4)                                                      │

00:00:15 #1001 [Debug] > │     | UH1_1 -> (* Nil *)                                                     │

00:00:15 #1002 [Debug] > │         v1                                                                   │

00:00:15 #1003 [Debug] > │ and method5 (v0 : Mut0, v1 : UH1, v2 : int32) : UH1 =                        │

00:00:15 #1004 [Debug] > │     let v3 : UH0 = v0.l0                                                     │

00:00:15 #1005 [Debug] > │     let v4 : US1 = method2(v2, v3)                                           │

00:00:15 #1006 [Debug] > │     let v12 : US0 =                                                          │

00:00:15 #1007 [Debug] > │         match v4 with                                                        │

00:00:15 #1008 [Debug] > │         | US1_0 -> (* None *)                                                │

00:00:15 #1009 [Debug] > │             printfn $"print_and_return / x: {v2}"                            │

00:00:15 #1010 [Debug] > │             let v7 : UH0 = v0.l0                                             │

00:00:15 #1011 [Debug] > │             let v8 : US0 = US0_1(v2)                                         │

00:00:15 #1012 [Debug] > │             let v9 : UH0 = UH0_0(v2, v8, v7)                                 │

00:00:15 #1013 [Debug] > │             v0.l0 <- v9                                                      │

00:00:15 #1014 [Debug] > │             US0_1(v2)                                                        │

00:00:15 #1015 [Debug] > │         | US1_1(v5, v6) -> (* Some *)                                        │

00:00:15 #1016 [Debug] > │             v6                                                               │

00:00:15 #1017 [Debug] > │     match v12 with                                                           │

00:00:15 #1018 [Debug] > │     | US0_1(v13) -> (* Some *)                                               │

00:00:15 #1019 [Debug] > │         let v14 : bool = v13 < 5                                             │

00:00:15 #1020 [Debug] > │         if v14 then                                                          │

00:00:15 #1021 [Debug] > │             let v15 : UH1 = UH1_0(v13, v1)                                   │

00:00:15 #1022 [Debug] > │             let v16 : int32 = v2 + 1                                         │

00:00:15 #1023 [Debug] > │             method5(v0, v15, v16)                                            │

00:00:15 #1024 [Debug] > │         else                                                                 │

00:00:15 #1025 [Debug] > │             let v18 : UH1 = UH1_1                                            │

00:00:15 #1026 [Debug] > │             method3(v1, v18)                                                 │

00:00:15 #1027 [Debug] > │     | _ ->                                                                   │

00:00:15 #1028 [Debug] > │         let v21 : UH1 = UH1_1                                                │

00:00:15 #1029 [Debug] > │         method3(v1, v21)                                                     │

00:00:15 #1030 [Debug] > │ and method0 () : unit =                                                      │

00:00:15 #1031 [Debug] > │     let v0 : UH0 = UH0_1                                                     │

00:00:15 #1032 [Debug] > │     let v1 : Mut0 = {l0 = v0} : Mut0                                         │

00:00:15 #1033 [Debug] > │     let v2 : UH1 = UH1_1                                                     │

00:00:15 #1034 [Debug] > │     let v3 : int32 = 0                                                       │

00:00:15 #1035 [Debug] > │     let v4 : UH1 = method1(v1, v2, v3)                                       │

00:00:15 #1036 [Debug] > │     let v5 : int32 = 0                                                       │

00:00:15 #1037 [Debug] > │     let v6 : int32 = method4(v4, v5)                                         │

00:00:15 #1038 [Debug] > │     let v7 : bool = v6 = 10                                                  │

00:00:15 #1039 [Debug] > │     let v8 : string = $"_equal / actual: %A{v6} / expected: %A{10}"          │

00:00:15 #1040 [Debug] > │     let v9 : bool = v7 = false                                               │

00:00:15 #1041 [Debug] > │     if v9 then                                                               │

00:00:15 #1042 [Debug] > │         failwith<unit> v8                                                    │

00:00:15 #1043 [Debug] > │     let v10 : UH1 = UH1_1                                                    │

00:00:15 #1044 [Debug] > │     let v11 : int32 = 0                                                      │

00:00:15 #1045 [Debug] > │     let v12 : UH1 = method5(v1, v10, v11)                                    │

00:00:15 #1046 [Debug] > │     let v13 : int32 = 0                                                      │

00:00:15 #1047 [Debug] > │     let v14 : int32 = method4(v12, v13)                                      │

00:00:15 #1048 [Debug] > │     let v15 : bool = v14 = 10                                                │

00:00:15 #1049 [Debug] > │     let v16 : string = $"_equal / actual: %A{v14} / expected: %A{10}"        │

00:00:15 #1050 [Debug] > │     let v17 : bool = v15 = false                                             │

00:00:15 #1051 [Debug] > │     if v17 then                                                              │

00:00:15 #1052 [Debug] > │         failwith<unit> v16                                                   │

00:00:15 #1053 [Debug] > │ method0()                                                                    │

00:00:15 #1054 [Debug] > │                                                                              │

00:00:15 #1055 [Debug] > │ print_and_return / x: 0                                                      │

00:00:15 #1056 [Debug] > │ print_and_return / x: 1                                                      │

00:00:15 #1057 [Debug] > │ print_and_return / x: 2                                                      │

00:00:15 #1058 [Debug] > │ print_and_return / x: 3                                                      │

00:00:15 #1059 [Debug] > │ print_and_return / x: 4                                                      │

00:00:15 #1060 [Debug] > │ print_and_return / x: 5                                                      │

00:00:15 #1061 [Debug] > │                                                                              │

00:00:15 #1062 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #1063 [Debug] >

00:00:15 #1064 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:15 #1065 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:15 #1066 [Debug] > │ ## iterate                                                                   │

00:00:15 #1067 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #1068 [Debug] >

00:00:15 #1069 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:15 #1070 [Debug] > inl iterate f x0 num_steps =

00:00:15 #1071 [Debug] >     inl rec loop x n =

00:00:15 #1072 [Debug] >         if n <= 0

00:00:15 #1073 [Debug] >         then x

00:00:15 #1074 [Debug] >         else loop (f x) (n - 1)

00:00:15 #1075 [Debug] >     loop x0 num_steps

00:00:15 #1076 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-0377-7763-77c4921708f0\main.spi

00:00:15 #1077 [Debug] >

00:00:15 #1078 [Debug] > ╭─[ 138.73ms - stdout ]────────────────────────────────────────────────────────╮

00:00:15 #1079 [Debug] > │ ()                                                                           │

00:00:15 #1080 [Debug] > │                                                                              │

00:00:15 #1081 [Debug] > │                                                                              │

00:00:15 #1082 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #1083 [Debug] >

00:00:15 #1084 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:15 #1085 [Debug] > // // test

00:00:15 #1086 [Debug] >

00:00:15 #1087 [Debug] > 10i32 |> iterate ((*) 2) 1i32

00:00:15 #1088 [Debug] > |> _equal 1024

00:00:16 #1089 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-0391-9179-9cfee4e5e20a\main.spi

00:00:16 #1090 [Debug] >

00:00:16 #1091 [Debug] > ╭─[ 137.90ms - stdout ]────────────────────────────────────────────────────────╮

00:00:16 #1092 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:16 #1093 [Debug] > │     let v0 : string = $"_equal / actual: %A{1024} / expected: %A{1024}"      │

00:00:16 #1094 [Debug] > │     ()                                                                       │

00:00:16 #1095 [Debug] > │ method0()                                                                    │

00:00:16 #1096 [Debug] > │                                                                              │

00:00:16 #1097 [Debug] > │                                                                              │

00:00:16 #1098 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:16 #1099 [Debug] >

00:00:16 #1100 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:16 #1101 [Debug] > inl iterate_ f x0 num_steps =

00:00:16 #1102 [Debug] >     let rec loop x n =

00:00:16 #1103 [Debug] >         if n <= 0

00:00:16 #1104 [Debug] >         then x

00:00:16 #1105 [Debug] >         else loop (f x) (n - 1)

00:00:16 #1106 [Debug] >     loop x0 num_steps

00:00:16 #1107 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-0405-0582-007ffdc332d0\main.spi

00:00:16 #1108 [Debug] >

00:00:16 #1109 [Debug] > ╭─[ 166.42ms - stdout ]────────────────────────────────────────────────────────╮

00:00:16 #1110 [Debug] > │ ()                                                                           │

00:00:16 #1111 [Debug] > │                                                                              │

00:00:16 #1112 [Debug] > │                                                                              │

00:00:16 #1113 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:16 #1114 [Debug] >

00:00:16 #1115 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:16 #1116 [Debug] > // // test

00:00:16 #1117 [Debug] >

00:00:16 #1118 [Debug] > 10i32 |> iterate_ ((*) 2) 1i32

00:00:16 #1119 [Debug] > |> _equal 1024

00:00:16 #1120 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-0422-2280-2a12228916c7\main.spi

00:00:16 #1121 [Debug] >

00:00:16 #1122 [Debug] > ╭─[ 148.16ms - stdout ]────────────────────────────────────────────────────────╮

00:00:16 #1123 [Debug] > │ let rec method1 (v0 : int32, v1 : int32) : int32 =                           │

00:00:16 #1124 [Debug] > │     let v2 : bool = v1 <= 0                                                  │

00:00:16 #1125 [Debug] > │     if v2 then                                                               │

00:00:16 #1126 [Debug] > │         v0                                                                   │

00:00:16 #1127 [Debug] > │     else                                                                     │

00:00:16 #1128 [Debug] > │         let v3 : int32 = 2 * v0                                              │

00:00:16 #1129 [Debug] > │         let v4 : int32 = v1 - 1                                              │

00:00:16 #1130 [Debug] > │         method1(v3, v4)                                                      │

00:00:16 #1131 [Debug] > │ and method0 () : unit =                                                      │

00:00:16 #1132 [Debug] > │     let v0 : int32 = 1                                                       │

00:00:16 #1133 [Debug] > │     let v1 : int32 = 10                                                      │

00:00:16 #1134 [Debug] > │     let v2 : int32 = method1(v0, v1)                                         │

00:00:16 #1135 [Debug] > │     let v3 : bool = v2 = 1024                                                │

00:00:16 #1136 [Debug] > │     let v4 : string = $"_equal / actual: %A{v2} / expected: %A{1024}"        │

00:00:16 #1137 [Debug] > │     let v5 : bool = v3 = false                                               │

00:00:16 #1138 [Debug] > │     if v5 then                                                               │

00:00:16 #1139 [Debug] > │         failwith<unit> v4                                                    │

00:00:16 #1140 [Debug] > │ method0()                                                                    │

00:00:16 #1141 [Debug] > │                                                                              │

00:00:16 #1142 [Debug] > │                                                                              │

00:00:16 #1143 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:16 #1144 [Debug] >

00:00:16 #1145 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:16 #1146 [Debug] > inl iterate' f x0 num_steps =

00:00:16 #1147 [Debug] >     listm.init num_steps id

00:00:16 #1148 [Debug] >     |> listm.fold (fun x _ => f x) x0

00:00:16 #1149 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-0438-3868-3dde83ace0f4\main.spi

00:00:16 #1150 [Debug] >

00:00:16 #1151 [Debug] > ╭─[ 141.70ms - stdout ]────────────────────────────────────────────────────────╮

00:00:16 #1152 [Debug] > │ ()                                                                           │

00:00:16 #1153 [Debug] > │                                                                              │

00:00:16 #1154 [Debug] > │                                                                              │

00:00:16 #1155 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:16 #1156 [Debug] >

00:00:16 #1157 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:16 #1158 [Debug] > // // test

00:00:16 #1159 [Debug] >

00:00:16 #1160 [Debug] > 10i32 |> iterate' ((*) 2) 1i32

00:00:16 #1161 [Debug] > |> _equal 1024

00:00:16 #1162 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-0453-5318-58e0add9bfd4\main.spi

00:00:16 #1163 [Debug] >

00:00:16 #1164 [Debug] > ╭─[ 202.37ms - stdout ]────────────────────────────────────────────────────────╮

00:00:16 #1165 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:16 #1166 [Debug] > │     let v0 : string = $"_equal / actual: %A{1024} / expected: %A{1024}"      │

00:00:16 #1167 [Debug] > │     ()                                                                       │

00:00:16 #1168 [Debug] > │ method0()                                                                    │

00:00:16 #1169 [Debug] > │                                                                              │

00:00:16 #1170 [Debug] > │                                                                              │

00:00:16 #1171 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:18 #1172 [Debug] > [NbConvertApp] Converting notebook seq.dib.ipynb to html

00:00:18 #1173 [Debug] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

00:00:18 #1174 [Debug] >   validate(nb)

00:00:19 #1175 [Debug] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:72: UserWarning: IPython3 lexer unavailable, falling back on Python 3

00:00:19 #1176 [Debug] >   return _pygments_highlight(

00:00:19 #1177 [Debug] > [NbConvertApp] Writing 350375 bytes to seq.dib.html

00:00:20 #1178 [Debug] executeAsync / exitCode: 0 / output.Length: 74239

00:00:20 #1179 [Debug] main / executeCommand / exitCode: 0

00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60

00:00:00 #2 [Debug] executeAsync / options: { Command =

   "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" port=13805"

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = Some <fun:main@450-1020> }

00:00:00 #3 [Debug] > pwd: C:\home\git\polyglot\lib\spiral

00:00:00 #4 [Debug] > dll_path: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release

00:00:00 #5 [Debug] runWithTimeoutAsync / timeout: 500

00:00:00 #6 [Verbose] waitForPortAccess / port: 13805 / retry: 0

00:00:01 #7 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:

00:00:01 #8 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0

00:00:01 #9 [Debug] > Server bound to: http://localhost:13805

00:00:01 #10 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 util.dib""

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = None }

00:00:03 #11 [Debug] >

00:00:03 #12 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:03 #13 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:03 #14 [Debug] > │ # util                                                                       │

00:00:03 #15 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:03 #16 [Debug] >

00:00:03 #17 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:03 #18 [Debug] > // // test

00:00:03 #19 [Debug] >

00:00:03 #20 [Debug] > open testing

00:00:06 #21 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-1489-8998-865b602290a1\main.spi

00:00:08 #22 [Debug] >

00:00:08 #23 [Debug] > ╭─[ 5.14s - stdout ]───────────────────────────────────────────────────────────╮

00:00:08 #24 [Debug] > │ ()                                                                           │

00:00:08 #25 [Debug] > │                                                                              │

00:00:08 #26 [Debug] > │                                                                              │

00:00:08 #27 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:08 #28 [Debug] >

00:00:08 #29 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:08 #30 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:08 #31 [Debug] > │ ## ski                                                                       │

00:00:08 #32 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:08 #33 [Debug] >

00:00:08 #34 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:08 #35 [Debug] > union rec ski =

00:00:08 #36 [Debug] >     | I

00:00:08 #37 [Debug] >     | K

00:00:08 #38 [Debug] >     | S

00:00:08 #39 [Debug] >     | App : ski * ski

00:00:08 #40 [Debug] >

00:00:08 #41 [Debug] > inl rec eval ski =

00:00:08 #42 [Debug] >     match ski with

00:00:08 #43 [Debug] >     | App (App (K, x), y) => eval x

00:00:08 #44 [Debug] >     | App (App (App (S, x), y), z) => eval (App (App (x, z), App (y, z)))

00:00:08 #45 [Debug] >     | App (I, x) => eval x

00:00:08 #46 [Debug] >     | App (K, x) => App (K, eval x)

00:00:08 #47 [Debug] >     | App (f, x) => eval (App (eval f, x))

00:00:08 #48 [Debug] >     | _ => ski

00:00:09 #49 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-1774-7499-779910820c50\main.spi

00:00:09 #50 [Debug] >

00:00:09 #51 [Debug] > ╭─[ 246.32ms - stdout ]────────────────────────────────────────────────────────╮

00:00:09 #52 [Debug] > │ ()                                                                           │

00:00:09 #53 [Debug] > │                                                                              │

00:00:09 #54 [Debug] > │                                                                              │

00:00:09 #55 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:09 #56 [Debug] >

00:00:09 #57 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:09 #58 [Debug] > // // test

00:00:09 #59 [Debug] >

00:00:09 #60 [Debug] > eval I

00:00:09 #61 [Debug] > |> _equal I

00:00:09 #62 [Debug] >

00:00:09 #63 [Debug] > eval (App (I, I))

00:00:09 #64 [Debug] > |> _equal I

00:00:09 #65 [Debug] >

00:00:09 #66 [Debug] > eval (App (I, App (I, I)))

00:00:09 #67 [Debug] > |> _equal I

00:00:09 #68 [Debug] >

00:00:09 #69 [Debug] > eval (App (App (I, I), I))

00:00:09 #70 [Debug] > |> _equal I

00:00:09 #71 [Debug] >

00:00:09 #72 [Debug] > eval (App (App (App (I, I), I), I))

00:00:09 #73 [Debug] > |> _equal I

00:00:09 #74 [Debug] >

00:00:09 #75 [Debug] > eval K

00:00:09 #76 [Debug] > |> _equal K

00:00:09 #77 [Debug] >

00:00:09 #78 [Debug] > eval (App (K, I))

00:00:09 #79 [Debug] > |> _equal (App (K, I))

00:00:09 #80 [Debug] >

00:00:09 #81 [Debug] > eval (App (K, K))

00:00:09 #82 [Debug] > |> _equal (App (K, K))

00:00:09 #83 [Debug] >

00:00:09 #84 [Debug] > eval (App (App (K, I), K))

00:00:09 #85 [Debug] > |> _equal I

00:00:09 #86 [Debug] >

00:00:09 #87 [Debug] > eval (App (App (K, K), I))

00:00:09 #88 [Debug] > |> _equal K

00:00:09 #89 [Debug] >

00:00:09 #90 [Debug] > eval (App (App (App (App (K, K), I), S), K))

00:00:09 #91 [Debug] > |> _equal S

00:00:09 #92 [Debug] >

00:00:09 #93 [Debug] > eval S

00:00:09 #94 [Debug] > |> _equal S

00:00:09 #95 [Debug] >

00:00:09 #96 [Debug] > eval (App (App (App (S, I), I), I))

00:00:09 #97 [Debug] > |> _equal I

00:00:09 #98 [Debug] >

00:00:09 #99 [Debug] > eval (App (App (App (S, K), K), I))

00:00:09 #100 [Debug] > |> _equal I

00:00:09 #101 [Debug] >

00:00:09 #102 [Debug] > eval (App (App (App (S, K), I), (App (App (K, I), S))))

00:00:09 #103 [Debug] > |> _equal I

00:00:09 #104 [Debug] >

00:00:09 #105 [Debug] > eval (App (App (K, S), App (I, App (App (App (S, K), S), I))))

00:00:09 #106 [Debug] > |> _equal S

00:00:09 #107 [Debug] >

00:00:09 #108 [Debug] > eval (App (App (App (S, K), I), K))

00:00:09 #109 [Debug] > |> _equal K

00:00:09 #110 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-1799-9965-90a256ab9e0e\main.spi

00:00:10 #111 [Debug] >

00:00:10 #112 [Debug] > ╭─[ 1.52s - stdout ]───────────────────────────────────────────────────────────╮

00:00:10 #113 [Debug] > │ type UH0 =                                                                   │

00:00:10 #114 [Debug] > │     | UH0_0 of UH0 * UH0                                                     │

00:00:10 #115 [Debug] > │     | UH0_1                                                                  │

00:00:10 #116 [Debug] > │     | UH0_2                                                                  │

00:00:10 #117 [Debug] > │     | UH0_3                                                                  │

00:00:10 #118 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:10 #119 [Debug] > │     let v3 : UH0 = UH0_1                                                     │

00:00:10 #120 [Debug] > │     let v4 : UH0 = UH0_1                                                     │

00:00:10 #121 [Debug] > │     let v5 : string = $"_equal / actual: %A{v3} / expected: %A{v4}"          │

00:00:10 #122 [Debug] > │     let v9 : UH0 = UH0_1                                                     │

00:00:10 #123 [Debug] > │     let v10 : UH0 = UH0_1                                                    │

00:00:10 #124 [Debug] > │     let v11 : string = $"_equal / actual: %A{v9} / expected: %A{v10}"        │

00:00:10 #125 [Debug] > │     let v15 : UH0 = UH0_1                                                    │

00:00:10 #126 [Debug] > │     let v16 : UH0 = UH0_1                                                    │

00:00:10 #127 [Debug] > │     let v17 : string = $"_equal / actual: %A{v15} / expected: %A{v16}"       │

00:00:10 #128 [Debug] > │     let v21 : UH0 = UH0_1                                                    │

00:00:10 #129 [Debug] > │     let v22 : UH0 = UH0_1                                                    │

00:00:10 #130 [Debug] > │     let v23 : string = $"_equal / actual: %A{v21} / expected: %A{v22}"       │

00:00:10 #131 [Debug] > │     let v27 : UH0 = UH0_1                                                    │

00:00:10 #132 [Debug] > │     let v28 : UH0 = UH0_1                                                    │

00:00:10 #133 [Debug] > │     let v29 : string = $"_equal / actual: %A{v27} / expected: %A{v28}"       │

00:00:10 #134 [Debug] > │     let v33 : UH0 = UH0_2                                                    │

00:00:10 #135 [Debug] > │     let v34 : UH0 = UH0_2                                                    │

00:00:10 #136 [Debug] > │     let v35 : string = $"_equal / actual: %A{v33} / expected: %A{v34}"       │

00:00:10 #137 [Debug] > │     let v47 : UH0 = UH0_2                                                    │

00:00:10 #138 [Debug] > │     let v48 : UH0 = UH0_1                                                    │

00:00:10 #139 [Debug] > │     let v49 : UH0 = UH0_0(v47, v48)                                          │

00:00:10 #140 [Debug] > │     let v50 : UH0 = UH0_2                                                    │

00:00:10 #141 [Debug] > │     let v51 : UH0 = UH0_1                                                    │

00:00:10 #142 [Debug] > │     let v52 : UH0 = UH0_0(v50, v51)                                          │

00:00:10 #143 [Debug] > │     let v53 : string = $"_equal / actual: %A{v49} / expected: %A{v52}"       │

00:00:10 #144 [Debug] > │     let v65 : UH0 = UH0_2                                                    │

00:00:10 #145 [Debug] > │     let v66 : UH0 = UH0_2                                                    │

00:00:10 #146 [Debug] > │     let v67 : UH0 = UH0_0(v65, v66)                                          │

00:00:10 #147 [Debug] > │     let v68 : UH0 = UH0_2                                                    │

00:00:10 #148 [Debug] > │     let v69 : UH0 = UH0_2                                                    │

00:00:10 #149 [Debug] > │     let v70 : UH0 = UH0_0(v68, v69)                                          │

00:00:10 #150 [Debug] > │     let v71 : string = $"_equal / actual: %A{v67} / expected: %A{v70}"       │

00:00:10 #151 [Debug] > │     let v75 : UH0 = UH0_1                                                    │

00:00:10 #152 [Debug] > │     let v76 : UH0 = UH0_1                                                    │

00:00:10 #153 [Debug] > │     let v77 : string = $"_equal / actual: %A{v75} / expected: %A{v76}"       │

00:00:10 #154 [Debug] > │     let v81 : UH0 = UH0_2                                                    │

00:00:10 #155 [Debug] > │     let v82 : UH0 = UH0_2                                                    │

00:00:10 #156 [Debug] > │     let v83 : string = $"_equal / actual: %A{v81} / expected: %A{v82}"       │

00:00:10 #157 [Debug] > │     let v87 : UH0 = UH0_3                                                    │

00:00:10 #158 [Debug] > │     let v88 : UH0 = UH0_3                                                    │

00:00:10 #159 [Debug] > │     let v89 : string = $"_equal / actual: %A{v87} / expected: %A{v88}"       │

00:00:10 #160 [Debug] > │     let v93 : UH0 = UH0_3                                                    │

00:00:10 #161 [Debug] > │     let v94 : UH0 = UH0_3                                                    │

00:00:10 #162 [Debug] > │     let v95 : string = $"_equal / actual: %A{v93} / expected: %A{v94}"       │

00:00:10 #163 [Debug] > │     let v99 : UH0 = UH0_1                                                    │

00:00:10 #164 [Debug] > │     let v100 : UH0 = UH0_1                                                   │

00:00:10 #165 [Debug] > │     let v101 : string = $"_equal / actual: %A{v99} / expected: %A{v100}"     │

00:00:10 #166 [Debug] > │     let v105 : UH0 = UH0_1                                                   │

00:00:10 #167 [Debug] > │     let v106 : UH0 = UH0_1                                                   │

00:00:10 #168 [Debug] > │     let v107 : string = $"_equal / actual: %A{v105} / expected: %A{v106}"    │

00:00:10 #169 [Debug] > │     let v111 : UH0 = UH0_1                                                   │

00:00:10 #170 [Debug] > │     let v112 : UH0 = UH0_1                                                   │

00:00:10 #171 [Debug] > │     let v113 : string = $"_equal / actual: %A{v111} / expected: %A{v112}"    │

00:00:10 #172 [Debug] > │     let v117 : UH0 = UH0_3                                                   │

00:00:10 #173 [Debug] > │     let v118 : UH0 = UH0_3                                                   │

00:00:10 #174 [Debug] > │     let v119 : string = $"_equal / actual: %A{v117} / expected: %A{v118}"    │

00:00:10 #175 [Debug] > │     let v123 : UH0 = UH0_2                                                   │

00:00:10 #176 [Debug] > │     let v124 : UH0 = UH0_2                                                   │

00:00:10 #177 [Debug] > │     let v125 : string = $"_equal / actual: %A{v123} / expected: %A{v124}"    │

00:00:10 #178 [Debug] > │     ()                                                                       │

00:00:10 #179 [Debug] > │ method0()                                                                    │

00:00:10 #180 [Debug] > │                                                                              │

00:00:10 #181 [Debug] > │                                                                              │

00:00:10 #182 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:12 #183 [Debug] > [NbConvertApp] Converting notebook util.dib.ipynb to html

00:00:12 #184 [Debug] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

00:00:12 #185 [Debug] >   validate(nb)

00:00:12 #186 [Debug] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:72: UserWarning: IPython3 lexer unavailable, falling back on Python 3

00:00:12 #187 [Debug] >   return _pygments_highlight(

00:00:13 #188 [Debug] > [NbConvertApp] Writing 285538 bytes to util.dib.html

00:00:13 #189 [Debug] executeAsync / exitCode: 0 / output.Length: 9299

00:00:13 #190 [Debug] main / executeCommand / exitCode: 0

00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60

00:00:00 #2 [Debug] executeAsync / options: { Command =

   "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" port=13805"

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = Some <fun:main@450-1020> }

00:00:00 #3 [Debug] > pwd: C:\home\git\polyglot\lib\spiral

00:00:00 #4 [Debug] > dll_path: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release

00:00:00 #5 [Debug] runWithTimeoutAsync / timeout: 500

00:00:00 #6 [Verbose] waitForPortAccess / port: 13805 / retry: 0

00:00:01 #7 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:

00:00:01 #8 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0

00:00:01 #9 [Debug] > Server bound to: http://localhost:13805

00:00:01 #10 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 physics.dib""

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = None }

00:00:03 #11 [Debug] >

00:00:03 #12 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:03 #13 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:03 #14 [Debug] > │ # physics                                                                    │

00:00:03 #15 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:04 #16 [Debug] >

00:00:04 #17 [Debug] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:04 #18 [Debug] > #!import ../nbs/Plotting.dib

00:00:04 #19 [Debug] >

00:00:04 #20 [Debug] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:00:04 #21 [Debug] > #r

00:00:04 #22 [Debug] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A

00:00:04 #23 [Debug] > spNetCore.Html.Abstractions.dll"

00:00:04 #24 [Debug] > #r

00:00:04 #25 [Debug] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

00:00:04 #26 [Debug] > otNet.Interactive.dll"

00:00:04 #27 [Debug] > #r

00:00:04 #28 [Debug] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

00:00:04 #29 [Debug] > otNet.Interactive.FSharp.dll"

00:00:04 #30 [Debug] > #r

00:00:04 #31 [Debug] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

00:00:04 #32 [Debug] > otNet.Interactive.Formatting.dll"

00:00:04 #33 [Debug] > open System

00:00:04 #34 [Debug] > open System.IO

00:00:04 #35 [Debug] > open System.Text

00:00:04 #36 [Debug] > open Microsoft.DotNet.Interactive.Formatting

00:00:07 #37 [Debug] >

00:00:07 #38 [Debug] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:00:07 #39 [Debug] > #r

00:00:07 #40 [Debug] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

00:00:07 #41 [Debug] > otNet.Interactive.FSharp.dll"

00:00:07 #42 [Debug] > open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers

00:00:07 #43 [Debug] > #r

00:00:07 #44 [Debug] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

00:00:07 #45 [Debug] > otNet.Interactive.dll"

00:00:07 #46 [Debug] > open type Microsoft.DotNet.Interactive.Kernel

00:00:07 #47 [Debug] >

00:00:07 #48 [Debug] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:00:07 #49 [Debug] > //// test

00:00:07 #50 [Debug] >

00:00:07 #51 [Debug] > Formatter.ListExpansionLimit <- 100

00:00:07 #52 [Debug] >

00:00:07 #53 [Debug] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:00:07 #54 [Debug] > #r

00:00:07 #55 [Debug] > @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan

00:00:07 #56 [Debug] > dard2.1/FSharp.Control.AsyncSeq.dll"

00:00:07 #57 [Debug] > #r

00:00:07 #58 [Debug] > @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.

00:00:07 #59 [Debug] > 0/System.Reactive.dll"

00:00:07 #60 [Debug] > #r

00:00:07 #61 [Debug] > @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib

00:00:07 #62 [Debug] > netstandard2.0/System.Reactive.Linq.dll"

00:00:07 #63 [Debug] > #r

00:00:07 #64 [Debug] > @"../../../../../../../.nuget/packages/argu/6.1.1/lib/netstandard2.0/Argu.dll"

00:00:07 #65 [Debug] > #r

00:00:07 #66 [Debug] > @"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li

00:00:07 #67 [Debug] > b/net6.0/System.CommandLine.dll"

00:00:07 #68 [Debug] > #r

00:00:07 #69 [Debug] > @"../../../../../../../.nuget/packages/fsharp.json/0.4.1/lib/netstandard2.0/FSha

00:00:07 #70 [Debug] > rp.Json.dll"

00:00:07 #71 [Debug] >

00:00:07 #72 [Debug] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:00:07 #73 [Debug] > #if !INTERACTIVE

00:00:07 #74 [Debug] > namespace Polyglot

00:00:07 #75 [Debug] > #endif

00:00:07 #76 [Debug] >

00:00:07 #77 [Debug] > module Common =

00:00:07 #78 [Debug] >

00:00:07 #79 [Debug] >     let nl = System.Environment.NewLine

00:00:07 #80 [Debug] >     let q = @""""

00:00:07 #81 [Debug] >

00:00:07 #82 [Debug] >     let inline cons head tail = head :: tail

00:00:07 #83 [Debug] >

00:00:07 #84 [Debug] >     module String =

00:00:07 #85 [Debug] >         let inline contains (value : string) (input : string) =

00:00:07 #86 [Debug] >             input.Contains value

00:00:07 #87 [Debug] >

00:00:07 #88 [Debug] >         let inline endsWith (value : string) (input : string) =

00:00:07 #89 [Debug] >             input.EndsWith value

00:00:07 #90 [Debug] >

00:00:07 #91 [Debug] >         let inline padLeft totalWidth paddingChar (input : string) =

00:00:07 #92 [Debug] >             input.PadLeft (totalWidth, paddingChar)

00:00:07 #93 [Debug] >

00:00:07 #94 [Debug] >         let inline replace (oldValue : string) (newValue : string) (input :

00:00:07 #95 [Debug] > string) =

00:00:08 #96 [Debug] >             input.Replace (oldValue, newValue)

00:00:08 #97 [Debug] >

00:00:08 #98 [Debug] >         let inline split separator (input : string) =

00:00:08 #99 [Debug] >             input.Split separator

00:00:08 #100 [Debug] >

00:00:08 #101 [Debug] >         let inline spli...

00:00:09 #102 [Debug] >

00:00:09 #103 [Debug] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:00:09 #104 [Debug] > #if !INTERACTIVE

00:00:09 #105 [Debug] > namespace Polyglot

00:00:09 #106 [Debug] > #endif

00:00:09 #107 [Debug] >

00:00:09 #108 [Debug] > module CommonFSharp =

00:00:09 #109 [Debug] >

00:00:09 #110 [Debug] >     open Common

00:00:09 #111 [Debug] >

00:00:09 #112 [Debug] >     /// ## getUnionCaseName

00:00:09 #113 [Debug] >

00:00:09 #114 [Debug] >     let inline getUnionCaseName<'T> (x: 'T) =

00:00:09 #115 [Debug] >         match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with

00:00:09 #116 [Debug] >         | case, _ -> case.Name

00:00:09 #117 [Debug] >

00:00:09 #118 [Debug] >

00:00:09 #119 [Debug] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:00:09 #120 [Debug] > #if !INTERACTIVE

00:00:09 #121 [Debug] > namespace Polyglot

00:00:09 #122 [Debug] > #endif

00:00:09 #123 [Debug] >

00:00:09 #124 [Debug] > module Crypto =

00:00:09 #125 [Debug] >

00:00:09 #126 [Debug] >     open Common

00:00:09 #127 [Debug] >

00:00:09 #128 [Debug] >     /// ## hashText

00:00:09 #129 [Debug] >

00:00:09 #130 [Debug] >     let hashText (input : string) =

00:00:09 #131 [Debug] >         use sha256 = System.Security.Cryptography.SHA256.Create ()

00:00:09 #132 [Debug] >         input

00:00:09 #133 [Debug] >         |> System.Text.Encoding.UTF8.GetBytes

00:00:09 #134 [Debug] >         |> sha256.ComputeHash

00:00:09 #135 [Debug] >         |> Array.map (fun b -> b.ToString "x2")

00:00:09 #136 [Debug] >         |> String.concat ""

00:00:09 #137 [Debug] >

00:00:09 #138 [Debug] >

00:00:09 #139 [Debug] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:00:09 #140 [Debug] > #if !INTERACTIVE

00:00:09 #141 [Debug] > namespace Polyglot

00:00:09 #142 [Debug] > #endif

00:00:09 #143 [Debug] >

00:00:09 #144 [Debug] > module Async =

00:00:09 #145 [Debug] >

00:00:09 #146 [Debug] >     open Common

00:00:09 #147 [Debug] >

00:00:09 #148 [Debug] >     /// ## choice

00:00:09 #149 [Debug] >

00:00:09 #150 [Debug] >     let inline choice asyncs = async {

00:00:09 #151 [Debug] >         let e = Event<_> ()

00:00:09 #152 [Debug] >         use cts = new System.Threading.CancellationTokenSource ()

00:00:09 #153 [Debug] >         let fn =

00:00:09 #154 [Debug] >             asyncs

00:00:09 #155 [Debug] >             |> Seq.map (fun a -> async {

00:00:09 #156 [Debug] >                 let! x = a

00:00:09 #157 [Debug] >                 e.Trigger x

00:00:09 #158 [Debug] >             })

00:00:09 #159 [Debug] >             |> Async.Parallel

00:00:09 #160 [Debug] >             |> Async.Ignore

00:00:09 #161 [Debug] >         Async.Start (fn, cts.Token)

00:00:09 #162 [Debug] >         let! result = Async.AwaitEvent e.Publish

00:00:09 #163 [Debug] >         cts.Cancel ()

00:00:09 #164 [Debug] >         return result

00:00:09 #165 [Debug] >     }

00:00:09 #166 [Debug] >

00:00:09 #167 [Debug] >     /// ## map

00:00:09 #168 [Debug] >

00:00:09 #169 [Debug] >     let inline map fn a = async {

00:00:09 #170 [Debug] >         let! x = a

00:00:09 #171 [Debug] >         return fn x

00:00:09 #172 [Debug] >     }

00:00:09 #173 [Debug] >

00:00:09 #174 [Debug] >     /// ## catch

00:00:09 #175 [Debug] >

00:00:09 #176 [Debug] >     let inline catch a =

00:00:09 #177 [Debug] >         a

00:00:09 #178 [Debug] >         |> Async.Catch

00:00:09 #179 [Debug] >         ...

00:00:10 #180 [Debug] >

00:00:10 #181 [Debug] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:00:10 #182 [Debug] > #if !INTERACTIVE

00:00:10 #183 [Debug] > namespace Polyglot

00:00:10 #184 [Debug] > #endif

00:00:10 #185 [Debug] >

00:00:10 #186 [Debug] > module AsyncSeq =

00:00:10 #187 [Debug] >

00:00:10 #188 [Debug] >     open Common

00:00:10 #189 [Debug] >

00:00:10 #190 [Debug] >     /// ## subscribeEvent

00:00:10 #191 [Debug] >

00:00:10 #192 [Debug] >     let inline subscribeEvent (event: IEvent<'H, 'A>) map =

00:00:10 #193 [Debug] >         let observable = System.Reactive.Linq.Observable.FromEventPattern<'H,

00:00:10 #194 [Debug] > 'A>(event.AddHandler, event.RemoveHandler)

00:00:10 #195 [Debug] >         System.Reactive.Linq.Observable.Select (observable, fun event -> map

00:00:10 #196 [Debug] > event.EventArgs)

00:00:10 #197 [Debug] >         |> FSharp.Control.AsyncSeq.ofObservableBuffered

00:00:10 #198 [Debug] >

00:00:10 #199 [Debug] >     let subscribeToken (token : System.Threading.CancellationToken) =

00:00:10 #200 [Debug] >         let tcs = new System.Threading.Tasks.TaskCompletionSource ()

00:00:10 #201 [Debug] >         System.Action tcs.SetResult |> token.Register |> ignore

00:00:10 #202 [Debug] >         let start = System.DateTime.Now.Ticks

00:00:10 #203 [Debug] >         FSharp.Control.AsyncSeq.unfoldAsync

00:00:10 #204 [Debug] >             (fun (...

00:00:10 #205 [Debug] >

00:00:10 #206 [Debug] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:00:10 #207 [Debug] > #if !INTERACTIVE

00:00:10 #208 [Debug] > namespace Polyglot

00:00:10 #209 [Debug] > #endif

00:00:10 #210 [Debug] >

00:00:10 #211 [Debug] > module Networking =

00:00:10 #212 [Debug] >

00:00:10 #213 [Debug] >     open Common

00:00:10 #214 [Debug] >

00:00:10 #215 [Debug] >     /// ## testPortOpen

00:00:10 #216 [Debug] >

00:00:10 #217 [Debug] >     let inline testPortOpen port = async {

00:00:10 #218 [Debug] >         let! ct = Async.CancellationToken

00:00:10 #219 [Debug] >         use client = new System.Net.Sockets.TcpClient ()

00:00:10 #220 [Debug] >         try

00:00:10 #221 [Debug] >             do! client.ConnectAsync ("127.0.0.1", port, ct) |>

00:00:10 #222 [Debug] > Async.awaitValueTaskUnit

00:00:10 #223 [Debug] >             return true

00:00:10 #224 [Debug] >         with ex ->

00:00:10 #225 [Debug] >             trace Verbose (fun () -> $"testPortOpen / ex: {ex |>

00:00:10 #226 [Debug] > printException}") getLocals

00:00:10 #227 [Debug] >             return false

00:00:10 #228 [Debug] >     }

00:00:10 #229 [Debug] >

00:00:10 #230 [Debug] >     let inline testPortOpenTimeout timeout port = async {

00:00:10 #231 [Debug] >         let! result =

00:00:10 #232 [Debug] >             testPortOpen port

00:00:10 #233 [Debug] >             |> Async.runWithTimeoutAsync timeout

00:00:10 #234 [Debug] >         return

00:00:10 #235 [Debug] >             match result with

00:00:10 #236 [Debug] >             | None -> false

00:00:10 #237 [Debug] >  ...

00:00:10 #238 [Debug] >

00:00:10 #239 [Debug] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:00:10 #240 [Debug] > #if !INTERACTIVE

00:00:10 #241 [Debug] > namespace Polyglot

00:00:10 #242 [Debug] > #endif

00:00:10 #243 [Debug] >

00:00:10 #244 [Debug] > module Runtime =

00:00:10 #245 [Debug] >

00:00:10 #246 [Debug] >     open Common

00:00:10 #247 [Debug] >

00:00:10 #248 [Debug] >     /// ## isWindows

00:00:10 #249 [Debug] >

00:00:10 #250 [Debug] >     let isWindows =

00:00:10 #251 [Debug] >         fun () ->

00:00:10 #252 [Debug] >             System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform

00:00:10 #253 [Debug] >                 System.Runtime.InteropServices.OSPlatform.Windows

00:00:10 #254 [Debug] >         |> memoize

00:00:10 #255 [Debug] >

00:00:10 #256 [Debug] >     /// ## getExecutableSuffix

00:00:10 #257 [Debug] >

00:00:10 #258 [Debug] >     let inline getExecutableSuffix () =

00:00:10 #259 [Debug] >         if isWindows ()

00:00:10 #260 [Debug] >         then ".exe"

00:00:10 #261 [Debug] >         else ""

00:00:10 #262 [Debug] >

00:00:10 #263 [Debug] >     /// ## splitCommand

00:00:10 #264 [Debug] >

00:00:10 #265 [Debug] >     type private CommandParseStep =

00:00:10 #266 [Debug] >         | Start

00:00:10 #267 [Debug] >         | Path of quoted: bool

00:00:10 #268 [Debug] >         | Arguments

00:00:10 #269 [Debug] >

00:00:10 #270 [Debug] >     let splitCommand (command: string) =

00:00:10 #271 [Debug] >         let rec loop (path, args) chars step =

00:00:10 #272 [Debug] >             match chars, step with

00:00:10 #273 [Debug] >             | ('"' | '\'') :: tail, _ when path = "" -> loop (pat...

00:00:11 #274 [Debug] >

00:00:11 #275 [Debug] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:00:11 #276 [Debug] > #if !INTERACTIVE

00:00:11 #277 [Debug] > namespace Polyglot

00:00:11 #278 [Debug] > #endif

00:00:11 #279 [Debug] >

00:00:11 #280 [Debug] > module FileSystem =

00:00:11 #281 [Debug] >

00:00:11 #282 [Debug] >     open Common

00:00:11 #283 [Debug] >

00:00:11 #284 [Debug] >     /// ## Operators

00:00:11 #285 [Debug] >

00:00:11 #286 [Debug] >     module Operators =

00:00:11 #287 [Debug] >         let inline (</>) a b =

00:00:11 #288 [Debug] >             System.IO.Path.Combine (a, b)

00:00:11 #289 [Debug] >

00:00:11 #290 [Debug] >     open Operators

00:00:11 #291 [Debug] >

00:00:11 #292 [Debug] >     /// ## createTempDirectoryName

00:00:11 #293 [Debug] >

00:00:11 #294 [Debug] >     let inline createTempDirectoryName () =

00:00:11 #295 [Debug] >         let root = System.Reflection.Assembly.GetEntryAssembly().GetName().Name

00:00:11 #296 [Debug] >

00:00:11 #297 [Debug] >         System.IO.Path.GetTempPath ()

00:00:11 #298 [Debug] >         </> $"!{root}"

00:00:11 #299 [Debug] >         </> string (newGuidFromDateTime System.DateTime.Now)

00:00:11 #300 [Debug] >

00:00:11 #301 [Debug] >     /// ## createTempDirectory

00:00:11 #302 [Debug] >

00:00:11 #303 [Debug] >     let inline createTempDirectory () =

00:00:11 #304 [Debug] >         let tempFolder = createTempDirectoryName ()

00:00:11 #305 [Debug] >         let result = System.IO.Directory.CreateDirectory tempFolder

00:00:11 #306 [Debug] >

00:00:11 #307 [Debug] >         if not result.Exists then

00:00:11 #308 [Debug] >             let ge...

00:00:14 #309 [Debug] >

00:00:14 #310 [Debug] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:00:14 #311 [Debug] > open Common

00:00:14 #312 [Debug] > open FileSystem.Operators

00:00:14 #313 [Debug] >

00:00:14 #314 [Debug] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:00:14 #315 [Debug] > let tmpSpiralPath = Path.GetTempPath () </> "!dotnet-interactive-spiral"

00:00:14 #316 [Debug] > let linePlotsDataPath = tmpSpiralPath </> "line-plots-data"

00:00:14 #317 [Debug] > let linePlotsSvgPath = tmpSpiralPath </> "line-plots-svg"

00:00:14 #318 [Debug] >

00:00:14 #319 [Debug] > [[ tmpSpiralPath; linePlotsDataPath; linePlotsSvgPath ]]

00:00:14 #320 [Debug] > |> List.iter (fun dir -> if Directory.Exists dir |> not then

00:00:14 #321 [Debug] > Directory.CreateDirectory dir |> ignore)

00:00:14 #322 [Debug] >

00:00:14 #323 [Debug] > Formatter.Register<struct (string * string * string * struct (string * float

00:00:14 #324 [Debug] > array * float array) array)> (

00:00:14 #325 [Debug] >     (fun struct (caption, x_desc, y_desc, ys) ->

00:00:14 #326 [Debug] >         let json = (caption, x_desc, y_desc, ys) |> FSharp.Json.Json.serialize

00:00:14 #327 [Debug] >         async {

00:00:14 #328 [Debug] >             let hashHex = json |> Crypto.hashText

00:00:14 #329 [Debug] >             let svgPath = linePlotsSvgPath </> $"{hashHex}.svg"

00:00:14 #330 [Debug] >

00:00:14 #331 [Debug] >             if System.IO.File.Exi...

00:00:14 #332 [Debug] >

00:00:14 #333 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:14 #334 [Debug] > // // test

00:00:14 #335 [Debug] >

00:00:14 #336 [Debug] > open testing

00:00:16 #337 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-3857-5768-514348825b2d\main.spi

00:00:17 #338 [Debug] >

00:00:17 #339 [Debug] > ╭─[ 2.67s - stdout ]───────────────────────────────────────────────────────────╮

00:00:17 #340 [Debug] > │ ()                                                                           │

00:00:17 #341 [Debug] > │                                                                              │

00:00:17 #342 [Debug] > │                                                                              │

00:00:17 #343 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:17 #344 [Debug] >

00:00:17 #345 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:17 #346 [Debug] > inl (/@) x = listm'.(/@) x

00:00:17 #347 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-4071-7119-714172992ac9\main.spi

00:00:17 #348 [Debug] >

00:00:17 #349 [Debug] > ╭─[ 211.10ms - stdout ]────────────────────────────────────────────────────────╮

00:00:17 #350 [Debug] > │ ()                                                                           │

00:00:17 #351 [Debug] > │                                                                              │

00:00:17 #352 [Debug] > │                                                                              │

00:00:17 #353 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:17 #354 [Debug] >

00:00:17 #355 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:17 #356 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:17 #357 [Debug] > │ ## init_series                                                               │

00:00:17 #358 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:17 #359 [Debug] >

00:00:17 #360 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:17 #361 [Debug] > // // test

00:00:17 #362 [Debug] >

00:00:17 #363 [Debug] > inl x : a _ f64 = am'.init_series -3 3 0.01

00:00:17 #364 [Debug] > inl y = x |> am.map math.square

00:00:17 #365 [Debug] > "square", "x", "y", ;[[ "square", x, y ]]

00:00:17 #366 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-4092-9210-9a42f213cd99\main.spi

00:00:18 #367 [Debug] >

00:00:18 #368 [Debug] > ╭─[ 360.28ms - return value ]──────────────────────────────────────────────────╮

00:00:18 #369 [Debug] > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │

00:00:18 #370 [Debug] > │ xmlns="http://www.w3.org/2000/svg">                                          │

00:00:18 #371 [Debug] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │

00:00:18 #372 [Debug] > │ stroke="none"/>                                                              │

00:00:18 #373 [Debug] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │

00:00:18 #374 [Debug] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │

00:00:18 #375 [Debug] > │ fill="#FFFFFF">                                                              │

00:00:18 #376 [Debug] > │ square                                                                       │

00:00:18 #377 [Debug] > │ </text>                                                                      │

00:00:18 #378 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="61" y1="424" x2="61" │

00:00:18 #379 [Debug] > │ y2="75"/>                                                                    │

00:00:18 #380 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │

00:00:18 #381 [Debug] > │ y2="75"/>                                                                    │

00:00:18 #382 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="78" y1="424" x2="78" │

00:00:18 #383 [Debug] > │ y2="75"/>                                                                    │

00:00:18 #384 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="86" y1="424" x2="86" │

00:00:18 #385 [Debug] > │ y2="75"/>                                                                    │

00:00:18 #386 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x2="94" │

00:00:18 #387 [Debug] > │ ...                                                                          │

00:00:18 #388 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:18 #389 [Debug] >

00:00:18 #390 [Debug] > ╭─[ 380.63ms - stdout ]────────────────────────────────────────────────────────╮

00:00:18 #391 [Debug] > │ type Mut0 = {mutable l0 : int32}                                             │

00:00:18 #392 [Debug] > │ let rec method1 (v0 : Mut0) : bool =                                         │

00:00:18 #393 [Debug] > │     let v1 : int32 = v0.l0                                                   │

00:00:18 #394 [Debug] > │     let v2 : bool = v1 < 601                                                 │

00:00:18 #395 [Debug] > │     v2                                                                       │

00:00:18 #396 [Debug] > │ and method2 (v0 : int32, v1 : Mut0) : bool =                                 │

00:00:18 #397 [Debug] > │     let v2 : int32 = v1.l0                                                   │

00:00:18 #398 [Debug] > │     let v3 : bool = v2 < v0                                                  │

00:00:18 #399 [Debug] > │     v3                                                                       │

00:00:18 #400 [Debug] > │ and method0 () : struct (string * string * string * (struct (string * (float │

00:00:18 #401 [Debug] > │ []) * (float [])) [])) =                                                     │

00:00:18 #402 [Debug] > │     let v0 : (float []) = Array.zeroCreate<float> (601)                      │

00:00:18 #403 [Debug] > │     let v1 : Mut0 = {l0 = 0} : Mut0                                          │

00:00:18 #404 [Debug] > │     while method1(v1) do                                                     │

00:00:18 #405 [Debug] > │         let v3 : int32 = v1.l0                                               │

00:00:18 #406 [Debug] > │         let v4 : float = float v3                                            │

00:00:18 #407 [Debug] > │         let v5 : float = 0.01 * v4                                           │

00:00:18 #408 [Debug] > │         let v6 : float = -3.0 + v5                                           │

00:00:18 #409 [Debug] > │         v0.[int v3] <- v6                                                    │

00:00:18 #410 [Debug] > │         let v7 : int32 = v3 + 1                                              │

00:00:18 #411 [Debug] > │         v1.l0 <- v7                                                          │

00:00:18 #412 [Debug] > │         ()                                                                   │

00:00:18 #413 [Debug] > │     let v8 : int32 = v0.Length                                               │

00:00:18 #414 [Debug] > │     let v9 : (float []) = Array.zeroCreate<float> (v8)                       │

00:00:18 #415 [Debug] > │     let v10 : Mut0 = {l0 = 0} : Mut0                                         │

00:00:18 #416 [Debug] > │     while method2(v8, v10) do                                                │

00:00:18 #417 [Debug] > │         let v12 : int32 = v10.l0                                             │

00:00:18 #418 [Debug] > │         let v13 : float = v0.[int v12]                                       │

00:00:18 #419 [Debug] > │         let v14 : float = v13 ** 2.0                                         │

00:00:18 #420 [Debug] > │         v9.[int v12] <- v14                                                  │

00:00:18 #421 [Debug] > │         let v15 : int32 = v12 + 1                                            │

00:00:18 #422 [Debug] > │         v10.l0 <- v15                                                        │

00:00:18 #423 [Debug] > │         ()                                                                   │

00:00:18 #424 [Debug] > │     let v16 : string = "square"                                              │

00:00:18 #425 [Debug] > │     let v17 : (struct (string * (float []) * (float [])) []) = [|struct      │

00:00:18 #426 [Debug] > │ (v16, v0, v9)|]                                                              │

00:00:18 #427 [Debug] > │     let v18 : string = "x"                                                   │

00:00:18 #428 [Debug] > │     let v19 : string = "y"                                                   │

00:00:18 #429 [Debug] > │     struct (v16, v18, v19, v17)                                              │

00:00:18 #430 [Debug] > │ method0()                                                                    │

00:00:18 #431 [Debug] > │                                                                              │

00:00:18 #432 [Debug] > │                                                                              │

00:00:18 #433 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:18 #434 [Debug] >

00:00:18 #435 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:18 #436 [Debug] > // // test

00:00:18 #437 [Debug] >

00:00:18 #438 [Debug] > inl x : a _ f64 = am'.init_series -10 10 0.1

00:00:18 #439 [Debug] > inl y_sin = x |> am.map sin

00:00:18 #440 [Debug] > inl y_cos = x |> am.map cos

00:00:18 #441 [Debug] > "sin cos", "x", "y", ;[[ "sin", x, y_sin; "cos", x, y_cos ]]

00:00:18 #442 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-4132-3212-3d6da12ac90e\main.spi

00:00:18 #443 [Debug] >

00:00:18 #444 [Debug] > ╭─[ 205.02ms - return value ]──────────────────────────────────────────────────╮

00:00:18 #445 [Debug] > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │

00:00:18 #446 [Debug] > │ xmlns="http://www.w3.org/2000/svg">                                          │

00:00:18 #447 [Debug] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │

00:00:18 #448 [Debug] > │ stroke="none"/>                                                              │

00:00:18 #449 [Debug] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │

00:00:18 #450 [Debug] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │

00:00:18 #451 [Debug] > │ fill="#FFFFFF">                                                              │

00:00:18 #452 [Debug] > │ sin cos                                                                      │

00:00:18 #453 [Debug] > │ </text>                                                                      │

00:00:18 #454 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="57" y1="424" x2="57" │

00:00:18 #455 [Debug] > │ y2="75"/>                                                                    │

00:00:18 #456 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │

00:00:18 #457 [Debug] > │ y2="75"/>                                                                    │

00:00:18 #458 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="82" y1="424" x2="82" │

00:00:18 #459 [Debug] > │ y2="75"/>                                                                    │

00:00:18 #460 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x2="94" │

00:00:18 #461 [Debug] > │ y2="75"/>                                                                    │

00:00:18 #462 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="107" y1="424"        │

00:00:18 #463 [Debug] > │ x2="10...                                                                    │

00:00:18 #464 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:18 #465 [Debug] >

00:00:18 #466 [Debug] > ╭─[ 215.31ms - stdout ]────────────────────────────────────────────────────────╮

00:00:18 #467 [Debug] > │ type Mut0 = {mutable l0 : int32}                                             │

00:00:18 #468 [Debug] > │ let rec method1 (v0 : Mut0) : bool =                                         │

00:00:18 #469 [Debug] > │     let v1 : int32 = v0.l0                                                   │

00:00:18 #470 [Debug] > │     let v2 : bool = v1 < 201                                                 │

00:00:18 #471 [Debug] > │     v2                                                                       │

00:00:18 #472 [Debug] > │ and method2 (v0 : int32, v1 : Mut0) : bool =                                 │

00:00:18 #473 [Debug] > │     let v2 : int32 = v1.l0                                                   │

00:00:18 #474 [Debug] > │     let v3 : bool = v2 < v0                                                  │

00:00:18 #475 [Debug] > │     v3                                                                       │

00:00:18 #476 [Debug] > │ and method0 () : struct (string * string * string * (struct (string * (float │

00:00:18 #477 [Debug] > │ []) * (float [])) [])) =                                                     │

00:00:18 #478 [Debug] > │     let v0 : (float []) = Array.zeroCreate<float> (201)                      │

00:00:18 #479 [Debug] > │     let v1 : Mut0 = {l0 = 0} : Mut0                                          │

00:00:18 #480 [Debug] > │     while method1(v1) do                                                     │

00:00:18 #481 [Debug] > │         let v3 : int32 = v1.l0                                               │

00:00:18 #482 [Debug] > │         let v4 : float = float v3                                            │

00:00:18 #483 [Debug] > │         let v5 : float = 0.1 * v4                                            │

00:00:18 #484 [Debug] > │         let v6 : float = -10.0 + v5                                          │

00:00:18 #485 [Debug] > │         v0.[int v3] <- v6                                                    │

00:00:18 #486 [Debug] > │         let v7 : int32 = v3 + 1                                              │

00:00:18 #487 [Debug] > │         v1.l0 <- v7                                                          │

00:00:18 #488 [Debug] > │         ()                                                                   │

00:00:18 #489 [Debug] > │     let v8 : int32 = v0.Length                                               │

00:00:18 #490 [Debug] > │     let v9 : (float []) = Array.zeroCreate<float> (v8)                       │

00:00:18 #491 [Debug] > │     let v10 : Mut0 = {l0 = 0} : Mut0                                         │

00:00:18 #492 [Debug] > │     while method2(v8, v10) do                                                │

00:00:18 #493 [Debug] > │         let v12 : int32 = v10.l0                                             │

00:00:18 #494 [Debug] > │         let v13 : float = v0.[int v12]                                       │

00:00:18 #495 [Debug] > │         let v14 : float = sin v13                                            │

00:00:18 #496 [Debug] > │         v9.[int v12] <- v14                                                  │

00:00:18 #497 [Debug] > │         let v15 : int32 = v12 + 1                                            │

00:00:18 #498 [Debug] > │         v10.l0 <- v15                                                        │

00:00:18 #499 [Debug] > │         ()                                                                   │

00:00:18 #500 [Debug] > │     let v16 : (float []) = Array.zeroCreate<float> (v8)                      │

00:00:18 #501 [Debug] > │     let v17 : Mut0 = {l0 = 0} : Mut0                                         │

00:00:18 #502 [Debug] > │     while method2(v8, v17) do                                                │

00:00:18 #503 [Debug] > │         let v19 : int32 = v17.l0                                             │

00:00:18 #504 [Debug] > │         let v20 : float = v0.[int v19]                                       │

00:00:18 #505 [Debug] > │         let v21 : float = cos v20                                            │

00:00:18 #506 [Debug] > │         v16.[int v19] <- v21                                                 │

00:00:18 #507 [Debug] > │         let v22 : int32 = v19 + 1                                            │

00:00:18 #508 [Debug] > │         v17.l0 <- v22                                                        │

00:00:18 #509 [Debug] > │         ()                                                                   │

00:00:18 #510 [Debug] > │     let v23 : string = "sin"                                                 │

00:00:18 #511 [Debug] > │     let v24 : string = "cos"                                                 │

00:00:18 #512 [Debug] > │     let v25 : (struct (string * (float []) * (float [])) []) = [|struct      │

00:00:18 #513 [Debug] > │ (v23, v0, v9); struct (v24, v0, v16)|]                                       │

00:00:18 #514 [Debug] > │     let v26 : string = "sin cos"                                             │

00:00:18 #515 [Debug] > │     let v27 : string = "x"                                                   │

00:00:18 #516 [Debug] > │     let v28 : string = "y"                                                   │

00:00:18 #517 [Debug] > │     struct (v26, v27, v28, v25)                                              │

00:00:18 #518 [Debug] > │ method0()                                                                    │

00:00:18 #519 [Debug] > │                                                                              │

00:00:18 #520 [Debug] > │                                                                              │

00:00:18 #521 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:18 #522 [Debug] >

00:00:18 #523 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:18 #524 [Debug] > // // test

00:00:18 #525 [Debug] >

00:00:18 #526 [Debug] > inl y_pos y0 vy0 ay t =

00:00:18 #527 [Debug] >     y0 + vy0 * t + ay * (t |> math.square) / 2

00:00:18 #528 [Debug] >

00:00:18 #529 [Debug] > inl x : a _ f64 = am'.init_series 0 5 0.01

00:00:18 #530 [Debug] > inl y = x |> am.map (y_pos 0 20 -9.8)

00:00:18 #531 [Debug] > "projectile motion", "time (s)", "", ;[[ "height of projectile (m)", x, y ]]

00:00:18 #532 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-4156-5640-591f387c7496\main.spi

00:00:18 #533 [Debug] >

00:00:18 #534 [Debug] > ╭─[ 178.57ms - return value ]──────────────────────────────────────────────────╮

00:00:18 #535 [Debug] > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │

00:00:18 #536 [Debug] > │ xmlns="http://www.w3.org/2000/svg">                                          │

00:00:18 #537 [Debug] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │

00:00:18 #538 [Debug] > │ stroke="none"/>                                                              │

00:00:18 #539 [Debug] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │

00:00:18 #540 [Debug] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │

00:00:18 #541 [Debug] > │ fill="#FFFFFF">                                                              │

00:00:18 #542 [Debug] > │ projectile motion                                                            │

00:00:18 #543 [Debug] > │ </text>                                                                      │

00:00:18 #544 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │

00:00:18 #545 [Debug] > │ y2="75"/>                                                                    │

00:00:18 #546 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │

00:00:18 #547 [Debug] > │ y2="75"/>                                                                    │

00:00:18 #548 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │

00:00:18 #549 [Debug] > │ y2="75"/>                                                                    │

00:00:18 #550 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │

00:00:18 #551 [Debug] > │ y2="75"/>                                                                    │

00:00:18 #552 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="99" y1="42...        │

00:00:18 #553 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:18 #554 [Debug] >

00:00:18 #555 [Debug] > ╭─[ 189.10ms - stdout ]────────────────────────────────────────────────────────╮

00:00:18 #556 [Debug] > │ type Mut0 = {mutable l0 : int32}                                             │

00:00:18 #557 [Debug] > │ let rec method1 (v0 : Mut0) : bool =                                         │

00:00:18 #558 [Debug] > │     let v1 : int32 = v0.l0                                                   │

00:00:18 #559 [Debug] > │     let v2 : bool = v1 < 501                                                 │

00:00:18 #560 [Debug] > │     v2                                                                       │

00:00:18 #561 [Debug] > │ and method2 (v0 : int32, v1 : Mut0) : bool =                                 │

00:00:18 #562 [Debug] > │     let v2 : int32 = v1.l0                                                   │

00:00:18 #563 [Debug] > │     let v3 : bool = v2 < v0                                                  │

00:00:18 #564 [Debug] > │     v3                                                                       │

00:00:18 #565 [Debug] > │ and method0 () : struct (string * string * string * (struct (string * (float │

00:00:18 #566 [Debug] > │ []) * (float [])) [])) =                                                     │

00:00:18 #567 [Debug] > │     let v0 : (float []) = Array.zeroCreate<float> (501)                      │

00:00:18 #568 [Debug] > │     let v1 : Mut0 = {l0 = 0} : Mut0                                          │

00:00:18 #569 [Debug] > │     while method1(v1) do                                                     │

00:00:18 #570 [Debug] > │         let v3 : int32 = v1.l0                                               │

00:00:18 #571 [Debug] > │         let v4 : float = float v3                                            │

00:00:18 #572 [Debug] > │         let v5 : float = 0.01 * v4                                           │

00:00:18 #573 [Debug] > │         v0.[int v3] <- v5                                                    │

00:00:18 #574 [Debug] > │         let v6 : int32 = v3 + 1                                              │

00:00:18 #575 [Debug] > │         v1.l0 <- v6                                                          │

00:00:18 #576 [Debug] > │         ()                                                                   │

00:00:18 #577 [Debug] > │     let v7 : int32 = v0.Length                                               │

00:00:18 #578 [Debug] > │     let v8 : (float []) = Array.zeroCreate<float> (v7)                       │

00:00:18 #579 [Debug] > │     let v9 : Mut0 = {l0 = 0} : Mut0                                          │

00:00:18 #580 [Debug] > │     while method2(v7, v9) do                                                 │

00:00:18 #581 [Debug] > │         let v11 : int32 = v9.l0                                              │

00:00:18 #582 [Debug] > │         let v12 : float = v0.[int v11]                                       │

00:00:18 #583 [Debug] > │         let v13 : float = 20.0 * v12                                         │

00:00:18 #584 [Debug] > │         let v14 : float = v12 ** 2.0                                         │

00:00:18 #585 [Debug] > │         let v15 : float = -9.8 * v14                                         │

00:00:18 #586 [Debug] > │         let v16 : float = v15 / 2.0                                          │

00:00:18 #587 [Debug] > │         let v17 : float = v13 + v16                                          │

00:00:18 #588 [Debug] > │         v8.[int v11] <- v17                                                  │

00:00:18 #589 [Debug] > │         let v18 : int32 = v11 + 1                                            │

00:00:18 #590 [Debug] > │         v9.l0 <- v18                                                         │

00:00:18 #591 [Debug] > │         ()                                                                   │

00:00:18 #592 [Debug] > │     let v19 : string = "height of projectile (m)"                            │

00:00:18 #593 [Debug] > │     let v20 : (struct (string * (float []) * (float [])) []) = [|struct      │

00:00:18 #594 [Debug] > │ (v19, v0, v8)|]                                                              │

00:00:18 #595 [Debug] > │     let v21 : string = "projectile motion"                                   │

00:00:18 #596 [Debug] > │     let v22 : string = "time (s)"                                            │

00:00:18 #597 [Debug] > │     let v23 : string = ""                                                    │

00:00:18 #598 [Debug] > │     struct (v21, v22, v23, v20)                                              │

00:00:18 #599 [Debug] > │ method0()                                                                    │

00:00:18 #600 [Debug] > │                                                                              │

00:00:18 #601 [Debug] > │                                                                              │

00:00:18 #602 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:18 #603 [Debug] >

00:00:18 #604 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:18 #605 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:18 #606 [Debug] > │ ## velocity_cf                                                               │

00:00:18 #607 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:18 #608 [Debug] >

00:00:18 #609 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:18 #610 [Debug] > type mass = f64

00:00:18 #611 [Debug] > type time = f64

00:00:18 #612 [Debug] > type position = f64

00:00:18 #613 [Debug] > type velocity = f64

00:00:18 #614 [Debug] > type force = f64

00:00:18 #615 [Debug] >

00:00:18 #616 [Debug] > type velocity_cf = mass -> velocity -> list force -> (time -> velocity)

00:00:18 #617 [Debug] >

00:00:18 #618 [Debug] > inl velocity_cf m v0 fs =

00:00:18 #619 [Debug] >     inl f_net = fs |> listm'.sum

00:00:18 #620 [Debug] >     inl a0 = f_net / m

00:00:18 #621 [Debug] >     inl v t = v0 + a0 * t

00:00:18 #622 [Debug] >     v

00:00:18 #623 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-4177-7741-7096594d78c5\main.spi

00:00:18 #624 [Debug] >

00:00:18 #625 [Debug] > ╭─[ 177.28ms - stdout ]────────────────────────────────────────────────────────╮

00:00:18 #626 [Debug] > │ ()                                                                           │

00:00:18 #627 [Debug] > │                                                                              │

00:00:18 #628 [Debug] > │                                                                              │

00:00:18 #629 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:18 #630 [Debug] >

00:00:18 #631 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:18 #632 [Debug] > // // test

00:00:18 #633 [Debug] >

00:00:18 #634 [Debug] > velocity_cf 0.1f64 0.6 [[ 0.04; -0.08 ]] 0

00:00:18 #635 [Debug] > |> _equal 0.6

00:00:18 #636 [Debug] >

00:00:18 #637 [Debug] > velocity_cf 0.1f64 0.6 [[ 0.04; -0.08 ]] 1

00:00:18 #638 [Debug] > |> _equal 0.2

00:00:18 #639 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-4195-9536-9792c192fd91\main.spi

00:00:18 #640 [Debug] >

00:00:18 #641 [Debug] > ╭─[ 169.09ms - stdout ]────────────────────────────────────────────────────────╮

00:00:18 #642 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:18 #643 [Debug] > │     let v0 : string = $"_equal / actual: %A{0.6} / expected: %A{0.6}"        │

00:00:18 #644 [Debug] > │     let v1 : string = $"_equal / actual: %A{0.2} / expected: %A{0.2}"        │

00:00:18 #645 [Debug] > │     ()                                                                       │

00:00:18 #646 [Debug] > │ method0()                                                                    │

00:00:18 #647 [Debug] > │                                                                              │

00:00:18 #648 [Debug] > │                                                                              │

00:00:18 #649 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:18 #650 [Debug] >

00:00:18 #651 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:18 #652 [Debug] > // // test

00:00:18 #653 [Debug] >

00:00:18 #654 [Debug] > inl x = am'.init_series 0 4 0.1

00:00:18 #655 [Debug] > inl y = x |> am.map (velocity_cf 0.1f64 0.6 [[ 0.04; -0.08 ]])

00:00:18 #656 [Debug] > "car on an air track", "time (s)", "", ;[[ "velocity of car (m/s)", x, y ]]

00:00:18 #657 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-4212-1266-1a225a91c195\main.spi

00:00:19 #658 [Debug] >

00:00:19 #659 [Debug] > ╭─[ 162.36ms - return value ]──────────────────────────────────────────────────╮

00:00:19 #660 [Debug] > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │

00:00:19 #661 [Debug] > │ xmlns="http://www.w3.org/2000/svg">                                          │

00:00:19 #662 [Debug] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │

00:00:19 #663 [Debug] > │ stroke="none"/>                                                              │

00:00:19 #664 [Debug] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │

00:00:19 #665 [Debug] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │

00:00:19 #666 [Debug] > │ fill="#FFFFFF">                                                              │

00:00:19 #667 [Debug] > │ car on an air track                                                          │

00:00:19 #668 [Debug] > │ </text>                                                                      │

00:00:19 #669 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="57" y1="424" x2="57" │

00:00:19 #670 [Debug] > │ y2="75"/>                                                                    │

00:00:19 #671 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │

00:00:19 #672 [Debug] > │ y2="75"/>                                                                    │

00:00:19 #673 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="82" y1="424" x2="82" │

00:00:19 #674 [Debug] > │ y2="75"/>                                                                    │

00:00:19 #675 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x2="94" │

00:00:19 #676 [Debug] > │ y2="75"/>                                                                    │

00:00:19 #677 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="107" y1=...          │

00:00:19 #678 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:19 #679 [Debug] >

00:00:19 #680 [Debug] > ╭─[ 173.80ms - stdout ]────────────────────────────────────────────────────────╮

00:00:19 #681 [Debug] > │ type Mut0 = {mutable l0 : int32}                                             │

00:00:19 #682 [Debug] > │ let rec method1 (v0 : Mut0) : bool =                                         │

00:00:19 #683 [Debug] > │     let v1 : int32 = v0.l0                                                   │

00:00:19 #684 [Debug] > │     let v2 : bool = v1 < 41                                                  │

00:00:19 #685 [Debug] > │     v2                                                                       │

00:00:19 #686 [Debug] > │ and method2 (v0 : int32, v1 : Mut0) : bool =                                 │

00:00:19 #687 [Debug] > │     let v2 : int32 = v1.l0                                                   │

00:00:19 #688 [Debug] > │     let v3 : bool = v2 < v0                                                  │

00:00:19 #689 [Debug] > │     v3                                                                       │

00:00:19 #690 [Debug] > │ and method0 () : struct (string * string * string * (struct (string * (float │

00:00:19 #691 [Debug] > │ []) * (float [])) [])) =                                                     │

00:00:19 #692 [Debug] > │     let v0 : (float []) = Array.zeroCreate<float> (41)                       │

00:00:19 #693 [Debug] > │     let v1 : Mut0 = {l0 = 0} : Mut0                                          │

00:00:19 #694 [Debug] > │     while method1(v1) do                                                     │

00:00:19 #695 [Debug] > │         let v3 : int32 = v1.l0                                               │

00:00:19 #696 [Debug] > │         let v4 : float = float v3                                            │

00:00:19 #697 [Debug] > │         let v5 : float = 0.1 * v4                                            │

00:00:19 #698 [Debug] > │         v0.[int v3] <- v5                                                    │

00:00:19 #699 [Debug] > │         let v6 : int32 = v3 + 1                                              │

00:00:19 #700 [Debug] > │         v1.l0 <- v6                                                          │

00:00:19 #701 [Debug] > │         ()                                                                   │

00:00:19 #702 [Debug] > │     let v7 : int32 = v0.Length                                               │

00:00:19 #703 [Debug] > │     let v8 : (float []) = Array.zeroCreate<float> (v7)                       │

00:00:19 #704 [Debug] > │     let v9 : Mut0 = {l0 = 0} : Mut0                                          │

00:00:19 #705 [Debug] > │     while method2(v7, v9) do                                                 │

00:00:19 #706 [Debug] > │         let v11 : int32 = v9.l0                                              │

00:00:19 #707 [Debug] > │         let v12 : float = v0.[int v11]                                       │

00:00:19 #708 [Debug] > │         let v13 : float = -0.39999999999999997 * v12                         │

00:00:19 #709 [Debug] > │         let v14 : float = 0.6 + v13                                          │

00:00:19 #710 [Debug] > │         v8.[int v11] <- v14                                                  │

00:00:19 #711 [Debug] > │         let v15 : int32 = v11 + 1                                            │

00:00:19 #712 [Debug] > │         v9.l0 <- v15                                                         │

00:00:19 #713 [Debug] > │         ()                                                                   │

00:00:19 #714 [Debug] > │     let v16 : string = "velocity of car (m/s)"                               │

00:00:19 #715 [Debug] > │     let v17 : (struct (string * (float []) * (float [])) []) = [|struct      │

00:00:19 #716 [Debug] > │ (v16, v0, v8)|]                                                              │

00:00:19 #717 [Debug] > │     let v18 : string = "car on an air track"                                 │

00:00:19 #718 [Debug] > │     let v19 : string = "time (s)"                                            │

00:00:19 #719 [Debug] > │     let v20 : string = ""                                                    │

00:00:19 #720 [Debug] > │     struct (v18, v19, v20, v17)                                              │

00:00:19 #721 [Debug] > │ method0()                                                                    │

00:00:19 #722 [Debug] > │                                                                              │

00:00:19 #723 [Debug] > │                                                                              │

00:00:19 #724 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:19 #725 [Debug] >

00:00:19 #726 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:19 #727 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:19 #728 [Debug] > │ ## derivative                                                                │

00:00:19 #729 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:19 #730 [Debug] >

00:00:19 #731 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:19 #732 [Debug] > type derivative = (f64 -> f64) -> f64 -> f64

00:00:19 #733 [Debug] >

00:00:19 #734 [Debug] > inl derivative dt : derivative =

00:00:19 #735 [Debug] >     fun x t =>

00:00:19 #736 [Debug] >         (x (t + dt / 2) - x (t - dt / 2)) / dt

00:00:19 #737 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-4232-3241-3d35ed449dae\main.spi

00:00:19 #738 [Debug] >

00:00:19 #739 [Debug] > ╭─[ 147.47ms - stdout ]────────────────────────────────────────────────────────╮

00:00:19 #740 [Debug] > │ ()                                                                           │

00:00:19 #741 [Debug] > │                                                                              │

00:00:19 #742 [Debug] > │                                                                              │

00:00:19 #743 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:19 #744 [Debug] >

00:00:19 #745 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:19 #746 [Debug] > // // test

00:00:19 #747 [Debug] >

00:00:19 #748 [Debug] > derivative 1 (fun x => x ** 4 / 4) 1 - 1

00:00:19 #749 [Debug] > |> _almost_equal 0.25

00:00:19 #750 [Debug] >

00:00:19 #751 [Debug] > derivative 0.001 (fun x => x ** 4 / 4) 1 - 1

00:00:19 #752 [Debug] > |> _almost_equal 0.0000002499998827953931

00:00:19 #753 [Debug] >

00:00:19 #754 [Debug] > derivative 0.000001 (fun x => x ** 4 / 4) 1 - 1

00:00:19 #755 [Debug] > |> _almost_equal 0.000000000001000088900582341

00:00:19 #756 [Debug] >

00:00:19 #757 [Debug] > derivative 0.000000001 (fun x => x ** 4 / 4) 1 - 1

00:00:19 #758 [Debug] > |> _almost_equal 0.00000008274037099909037

00:00:19 #759 [Debug] >

00:00:19 #760 [Debug] > derivative 0.000000000001 (fun x => x ** 4 / 4) 1 - 1

00:00:19 #761 [Debug] > |> _almost_equal 0.00008890058234101161

00:00:19 #762 [Debug] >

00:00:19 #763 [Debug] > derivative 0.000000000000001 (fun x => x ** 4 / 4) 1 - 1

00:00:19 #764 [Debug] > |> _almost_equal -0.0007992778373592246

00:00:19 #765 [Debug] >

00:00:19 #766 [Debug] > derivative 0.000000000000000001 (fun x => x ** 4 / 4) 1 - 1

00:00:19 #767 [Debug] > |> _almost_equal -1

00:00:19 #768 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-4247-4741-4d5a4ce06c75\main.spi

00:00:19 #769 [Debug] >

00:00:19 #770 [Debug] > ╭─[ 227.01ms - stdout ]────────────────────────────────────────────────────────╮

00:00:19 #771 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:19 #772 [Debug] > │     let v0 : string = $"_almost_equal / actual: %A{0.25} / expected:         │

00:00:19 #773 [Debug] > │ %A{0.25}"                                                                    │

00:00:19 #774 [Debug] > │     let v1 : string = $"_almost_equal / actual: %A{2.499998827953931E-07} /  │

00:00:19 #775 [Debug] > │ expected: %A{2.499998827953931E-07}"                                         │

00:00:19 #776 [Debug] > │     let v2 : string = $"_almost_equal / actual: %A{1.000088900582341E-12} /  │

00:00:19 #777 [Debug] > │ expected: %A{1.000088900582341E-12}"                                         │

00:00:19 #778 [Debug] > │     let v3 : string = $"_almost_equal / actual: %A{8.274037099909037E-08} /  │

00:00:19 #779 [Debug] > │ expected: %A{8.274037099909037E-08}"                                         │

00:00:19 #780 [Debug] > │     let v4 : string = $"_almost_equal / actual: %A{8.890058234101161E-05} /  │

00:00:19 #781 [Debug] > │ expected: %A{8.890058234101161E-05}"                                         │

00:00:19 #782 [Debug] > │     let v5 : string = $"_almost_equal / actual: %A{-0.0007992778373592246} / │

00:00:19 #783 [Debug] > │ expected: %A{-0.0007992778373592246}"                                        │

00:00:19 #784 [Debug] > │     let v6 : string = $"_almost_equal / actual: %A{-1.0} / expected:         │

00:00:19 #785 [Debug] > │ %A{-1.0}"                                                                    │

00:00:19 #786 [Debug] > │     ()                                                                       │

00:00:19 #787 [Debug] > │ method0()                                                                    │

00:00:19 #788 [Debug] > │                                                                              │

00:00:19 #789 [Debug] > │                                                                              │

00:00:19 #790 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:19 #791 [Debug] >

00:00:19 #792 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:19 #793 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:19 #794 [Debug] > │ ## integration                                                               │

00:00:19 #795 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:19 #796 [Debug] >

00:00:19 #797 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:19 #798 [Debug] > type integration = (f64 -> f64) -> f64 -> f64 -> f64

00:00:19 #799 [Debug] >

00:00:19 #800 [Debug] > inl integral dt : integration =

00:00:19 #801 [Debug] >     fun f a b =>

00:00:19 #802 [Debug] >         inl rec loop t y =

00:00:19 #803 [Debug] >             if t < b

00:00:19 #804 [Debug] >             then loop (t + dt) (y + f t * dt)

00:00:19 #805 [Debug] >             else t, y

00:00:19 #806 [Debug] >         loop (a + dt / 2) 0

00:00:19 #807 [Debug] >         |> snd

00:00:19 #808 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-4271-7116-778ff765e6cd\main.spi

00:00:19 #809 [Debug] >

00:00:19 #810 [Debug] > ╭─[ 182.03ms - stdout ]────────────────────────────────────────────────────────╮

00:00:19 #811 [Debug] > │ ()                                                                           │

00:00:19 #812 [Debug] > │                                                                              │

00:00:19 #813 [Debug] > │                                                                              │

00:00:19 #814 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:19 #815 [Debug] >

00:00:19 #816 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:19 #817 [Debug] > // // test

00:00:19 #818 [Debug] >

00:00:19 #819 [Debug] > integral 0.01 math.square 0 1

00:00:19 #820 [Debug] > |> _almost_equal 0.33332500000000004

00:00:19 #821 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-4289-8960-803bd3fec84f\main.spi

00:00:19 #822 [Debug] >

00:00:19 #823 [Debug] > ╭─[ 176.98ms - stdout ]────────────────────────────────────────────────────────╮

00:00:19 #824 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:19 #825 [Debug] > │     let v0 : string = $"_almost_equal / actual: %A{0.3333250000000004} /     │

00:00:19 #826 [Debug] > │ expected: %A{0.33332500000000004}"                                           │

00:00:19 #827 [Debug] > │     ()                                                                       │

00:00:19 #828 [Debug] > │ method0()                                                                    │

00:00:19 #829 [Debug] > │                                                                              │

00:00:19 #830 [Debug] > │                                                                              │

00:00:19 #831 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:19 #832 [Debug] >

00:00:19 #833 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:19 #834 [Debug] > inl integral' dt : integration =

00:00:19 #835 [Debug] >     fun f a b =>

00:00:19 #836 [Debug] >         listm'.init_series (a + dt / 2) (b - dt / 2) dt

00:00:19 #837 [Debug] >         |> listm.map (f >> (*) dt)

00:00:19 #838 [Debug] >         |> listm'.sum

00:00:19 #839 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-4307-0770-03a77c703b24\main.spi

00:00:20 #840 [Debug] >

00:00:20 #841 [Debug] > ╭─[ 179.11ms - stdout ]────────────────────────────────────────────────────────╮

00:00:20 #842 [Debug] > │ ()                                                                           │

00:00:20 #843 [Debug] > │                                                                              │

00:00:20 #844 [Debug] > │                                                                              │

00:00:20 #845 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:20 #846 [Debug] >

00:00:20 #847 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:20 #848 [Debug] > // // test

00:00:20 #849 [Debug] >

00:00:20 #850 [Debug] > integral' 0.1 math.square 0 1

00:00:20 #851 [Debug] > |> _almost_equal (integral 0.1 math.square 0 1)

00:00:20 #852 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-4325-2576-2d39433cdc1d\main.spi

00:00:20 #853 [Debug] >

00:00:20 #854 [Debug] > ╭─[ 156.39ms - stdout ]────────────────────────────────────────────────────────╮

00:00:20 #855 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:20 #856 [Debug] > │     let v0 : string = $"_almost_equal / actual: %A{0.3325000000000001} /     │

00:00:20 #857 [Debug] > │ expected: %A{0.33249999999999996}"                                           │

00:00:20 #858 [Debug] > │     ()                                                                       │

00:00:20 #859 [Debug] > │ method0()                                                                    │

00:00:20 #860 [Debug] > │                                                                              │

00:00:20 #861 [Debug] > │                                                                              │

00:00:20 #862 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:20 #863 [Debug] >

00:00:20 #864 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:20 #865 [Debug] > inl integral'' dt : integration =

00:00:20 #866 [Debug] >     fun f a b =>

00:00:20 #867 [Debug] >         am'.init_series (a + dt / 2) (b - dt / 2) dt

00:00:20 #868 [Debug] >         |> am.map (f >> (*) dt)

00:00:20 #869 [Debug] >         |> am'.sum

00:00:20 #870 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-4341-4196-4406934e656b\main.spi

00:00:20 #871 [Debug] >

00:00:20 #872 [Debug] > ╭─[ 258.55ms - stdout ]────────────────────────────────────────────────────────╮

00:00:20 #873 [Debug] > │ ()                                                                           │

00:00:20 #874 [Debug] > │                                                                              │

00:00:20 #875 [Debug] > │                                                                              │

00:00:20 #876 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:20 #877 [Debug] >

00:00:20 #878 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:20 #879 [Debug] > // // test

00:00:20 #880 [Debug] >

00:00:20 #881 [Debug] > integral'' 0.01 math.square 0 1

00:00:20 #882 [Debug] > |> _almost_equal (integral 0.01 math.square 0 1)

00:00:20 #883 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-4367-6794-69b60ea58d44\main.spi

00:00:20 #884 [Debug] >

00:00:20 #885 [Debug] > ╭─[ 243.02ms - stdout ]────────────────────────────────────────────────────────╮

00:00:20 #886 [Debug] > │ type Mut0 = {mutable l0 : int32}                                             │

00:00:20 #887 [Debug] > │ and Mut1 = {mutable l0 : int32; mutable l1 : float}                          │

00:00:20 #888 [Debug] > │ let rec method1 (v0 : Mut0) : bool =                                         │

00:00:20 #889 [Debug] > │     let v1 : int32 = v0.l0                                                   │

00:00:20 #890 [Debug] > │     let v2 : bool = v1 < 100                                                 │

00:00:20 #891 [Debug] > │     v2                                                                       │

00:00:20 #892 [Debug] > │ and method2 (v0 : int32, v1 : Mut0) : bool =                                 │

00:00:20 #893 [Debug] > │     let v2 : int32 = v1.l0                                                   │

00:00:20 #894 [Debug] > │     let v3 : bool = v2 < v0                                                  │

00:00:20 #895 [Debug] > │     v3                                                                       │

00:00:20 #896 [Debug] > │ and method3 (v0 : int32, v1 : Mut1) : bool =                                 │

00:00:20 #897 [Debug] > │     let v2 : int32 = v1.l0                                                   │

00:00:20 #898 [Debug] > │     let v3 : bool = v2 < v0                                                  │

00:00:20 #899 [Debug] > │     v3                                                                       │

00:00:20 #900 [Debug] > │ and method0 () : unit =                                                      │

00:00:20 #901 [Debug] > │     let v0 : (float []) = Array.zeroCreate<float> (100)                      │

00:00:20 #902 [Debug] > │     let v1 : Mut0 = {l0 = 0} : Mut0                                          │

00:00:20 #903 [Debug] > │     while method1(v1) do                                                     │

00:00:20 #904 [Debug] > │         let v3 : int32 = v1.l0                                               │

00:00:20 #905 [Debug] > │         let v4 : float = float v3                                            │

00:00:20 #906 [Debug] > │         let v5 : float = 0.01 * v4                                           │

00:00:20 #907 [Debug] > │         let v6 : float = 0.005 + v5                                          │

00:00:20 #908 [Debug] > │         v0.[int v3] <- v6                                                    │

00:00:20 #909 [Debug] > │         let v7 : int32 = v3 + 1                                              │

00:00:20 #910 [Debug] > │         v1.l0 <- v7                                                          │

00:00:20 #911 [Debug] > │         ()                                                                   │

00:00:20 #912 [Debug] > │     let v8 : int32 = v0.Length                                               │

00:00:20 #913 [Debug] > │     let v9 : (float []) = Array.zeroCreate<float> (v8)                       │

00:00:20 #914 [Debug] > │     let v10 : Mut0 = {l0 = 0} : Mut0                                         │

00:00:20 #915 [Debug] > │     while method2(v8, v10) do                                                │

00:00:20 #916 [Debug] > │         let v12 : int32 = v10.l0                                             │

00:00:20 #917 [Debug] > │         let v13 : float = v0.[int v12]                                       │

00:00:20 #918 [Debug] > │         let v14 : float = v13 ** 2.0                                         │

00:00:20 #919 [Debug] > │         let v15 : float = 0.01 * v14                                         │

00:00:20 #920 [Debug] > │         v9.[int v12] <- v15                                                  │

00:00:20 #921 [Debug] > │         let v16 : int32 = v12 + 1                                            │

00:00:20 #922 [Debug] > │         v10.l0 <- v16                                                        │

00:00:20 #923 [Debug] > │         ()                                                                   │

00:00:20 #924 [Debug] > │     let v17 : int32 = v9.Length                                              │

00:00:20 #925 [Debug] > │     let v18 : Mut1 = {l0 = 0; l1 = 0.0} : Mut1                               │

00:00:20 #926 [Debug] > │     while method3(v17, v18) do                                               │

00:00:20 #927 [Debug] > │         let v20 : int32 = v18.l0                                             │

00:00:20 #928 [Debug] > │         let v21 : float = v18.l1                                             │

00:00:20 #929 [Debug] > │         let v22 : float = v9.[int v20]                                       │

00:00:20 #930 [Debug] > │         let v23 : float = v21 + v22                                          │

00:00:20 #931 [Debug] > │         let v24 : int32 = v20 + 1                                            │

00:00:20 #932 [Debug] > │         v18.l0 <- v24                                                        │

00:00:20 #933 [Debug] > │         v18.l1 <- v23                                                        │

00:00:20 #934 [Debug] > │         ()                                                                   │

00:00:20 #935 [Debug] > │     let v25 : float = v18.l1                                                 │

00:00:20 #936 [Debug] > │     let v26 : float = 0.3333250000000004 - v25                               │

00:00:20 #937 [Debug] > │     let v27 : float =  -v26                                                  │

00:00:20 #938 [Debug] > │     let v28 : bool = v26 >= v27                                              │

00:00:20 #939 [Debug] > │     let v29 : float =                                                        │

00:00:20 #940 [Debug] > │         if v28 then                                                          │

00:00:20 #941 [Debug] > │             v26                                                              │

00:00:20 #942 [Debug] > │         else                                                                 │

00:00:20 #943 [Debug] > │             v27                                                              │

00:00:20 #944 [Debug] > │     let v30 : bool = v29 < 1E-08                                             │

00:00:20 #945 [Debug] > │     let v31 : string = $"_almost_equal / actual: %A{v25} / expected:         │

00:00:20 #946 [Debug] > │ %A{0.3333250000000004}"                                                      │

00:00:20 #947 [Debug] > │     let v32 : bool = v30 = false                                             │

00:00:20 #948 [Debug] > │     if v32 then                                                              │

00:00:20 #949 [Debug] > │         failwith<unit> v31                                                   │

00:00:20 #950 [Debug] > │ method0()                                                                    │

00:00:20 #951 [Debug] > │                                                                              │

00:00:20 #952 [Debug] > │                                                                              │

00:00:20 #953 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:20 #954 [Debug] >

00:00:20 #955 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:20 #956 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:20 #957 [Debug] > │ ## anti_derivative                                                           │

00:00:20 #958 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:20 #959 [Debug] >

00:00:20 #960 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:20 #961 [Debug] > inl anti_derivative dt v0 a t =

00:00:20 #962 [Debug] >     v0 + integral' dt a 0 t

00:00:20 #963 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-4395-9546-9b5e4187d035\main.spi

00:00:20 #964 [Debug] >

00:00:20 #965 [Debug] > ╭─[ 179.55ms - stdout ]────────────────────────────────────────────────────────╮

00:00:20 #966 [Debug] > │ ()                                                                           │

00:00:20 #967 [Debug] > │                                                                              │

00:00:20 #968 [Debug] > │                                                                              │

00:00:20 #969 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:20 #970 [Debug] >

00:00:20 #971 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:20 #972 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:20 #973 [Debug] > │ ## velocity_ft                                                               │

00:00:20 #974 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:20 #975 [Debug] >

00:00:20 #976 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:20 #977 [Debug] > type velocity_ft = mass -> velocity -> list (time -> force) -> (time ->

00:00:20 #978 [Debug] > velocity)

00:00:20 #979 [Debug] >

00:00:20 #980 [Debug] > inl velocity_ft dt : velocity_ft =

00:00:20 #981 [Debug] >     fun m v0 fs =>

00:00:20 #982 [Debug] >         inl f_net t = fs |> listm.map (fun f => f t) |> listm'.sum

00:00:20 #983 [Debug] >         inl a t = f_net t / m

00:00:20 #984 [Debug] >         anti_derivative dt v0 a

00:00:21 #985 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-4413-1378-14fb8ef0e2e7\main.spi

00:00:21 #986 [Debug] >

00:00:21 #987 [Debug] > ╭─[ 152.01ms - stdout ]────────────────────────────────────────────────────────╮

00:00:21 #988 [Debug] > │ ()                                                                           │

00:00:21 #989 [Debug] > │                                                                              │

00:00:21 #990 [Debug] > │                                                                              │

00:00:21 #991 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:21 #992 [Debug] >

00:00:21 #993 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:21 #994 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:21 #995 [Debug] > │ ## position_ft                                                               │

00:00:21 #996 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:21 #997 [Debug] >

00:00:21 #998 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:21 #999 [Debug] > type position_ft = mass -> position -> velocity -> list (time -> force) -> (time

00:00:21 #1000 [Debug] > -> position)

00:00:21 #1001 [Debug] >

00:00:21 #1002 [Debug] > inl position_ft dt : position_ft =

00:00:21 #1003 [Debug] >     fun m x0 v0 fs =>

00:00:21 #1004 [Debug] >         velocity_ft dt m v0 fs

00:00:21 #1005 [Debug] >         |> anti_derivative dt x0

00:00:21 #1006 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-4429-2939-2545c5f02402\main.spi

00:00:21 #1007 [Debug] >

00:00:21 #1008 [Debug] > ╭─[ 168.20ms - stdout ]────────────────────────────────────────────────────────╮

00:00:21 #1009 [Debug] > │ ()                                                                           │

00:00:21 #1010 [Debug] > │                                                                              │

00:00:21 #1011 [Debug] > │                                                                              │

00:00:21 #1012 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:21 #1013 [Debug] >

00:00:21 #1014 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:21 #1015 [Debug] > // // test

00:00:21 #1016 [Debug] >

00:00:21 #1017 [Debug] > inl pedal_coast (t : time) : force =

00:00:21 #1018 [Debug] >     inl t_cycle = 20

00:00:21 #1019 [Debug] >     inl n_complete : i32 = t / t_cycle |> conv

00:00:21 #1020 [Debug] >     inl remainder = t - conv n_complete * t_cycle

00:00:21 #1021 [Debug] >     if remainder > 0 && remainder < 10

00:00:21 #1022 [Debug] >     then 10

00:00:21 #1023 [Debug] >     else 0

00:00:21 #1024 [Debug] >

00:00:21 #1025 [Debug] > inl x = am'.init_series -5 45 0.1

00:00:21 #1026 [Debug] > inl y = x |> am.map pedal_coast

00:00:21 #1027 [Debug] > "child pedaling then coasting", "time (s)", "", ;[[ "force on bike (N)", x, y ]]

00:00:21 #1028 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-4446-4685-4c9a33f07615\main.spi

00:00:21 #1029 [Debug] >

00:00:21 #1030 [Debug] > ╭─[ 226.86ms - return value ]──────────────────────────────────────────────────╮

00:00:21 #1031 [Debug] > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │

00:00:21 #1032 [Debug] > │ xmlns="http://www.w3.org/2000/svg">                                          │

00:00:21 #1033 [Debug] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │

00:00:21 #1034 [Debug] > │ stroke="none"/>                                                              │

00:00:21 #1035 [Debug] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │

00:00:21 #1036 [Debug] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │

00:00:21 #1037 [Debug] > │ fill="#FFFFFF">                                                              │

00:00:21 #1038 [Debug] > │ child pedaling then coasting                                                 │

00:00:21 #1039 [Debug] > │ </text>                                                                      │

00:00:21 #1040 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │

00:00:21 #1041 [Debug] > │ y2="75"/>                                                                    │

00:00:21 #1042 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │

00:00:21 #1043 [Debug] > │ y2="75"/>                                                                    │

00:00:21 #1044 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │

00:00:21 #1045 [Debug] > │ y2="75"/>                                                                    │

00:00:21 #1046 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │

00:00:21 #1047 [Debug] > │ y2="75"/>                                                                    │

00:00:21 #1048 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1=...                   │

00:00:21 #1049 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:21 #1050 [Debug] >

00:00:21 #1051 [Debug] > ╭─[ 237.19ms - stdout ]────────────────────────────────────────────────────────╮

00:00:21 #1052 [Debug] > │ type Mut0 = {mutable l0 : int32}                                             │

00:00:21 #1053 [Debug] > │ let rec method1 (v0 : Mut0) : bool =                                         │

00:00:21 #1054 [Debug] > │     let v1 : int32 = v0.l0                                                   │

00:00:21 #1055 [Debug] > │     let v2 : bool = v1 < 501                                                 │

00:00:21 #1056 [Debug] > │     v2                                                                       │

00:00:21 #1057 [Debug] > │ and method2 (v0 : int32, v1 : Mut0) : bool =                                 │

00:00:21 #1058 [Debug] > │     let v2 : int32 = v1.l0                                                   │

00:00:21 #1059 [Debug] > │     let v3 : bool = v2 < v0                                                  │

00:00:21 #1060 [Debug] > │     v3                                                                       │

00:00:21 #1061 [Debug] > │ and method0 () : struct (string * string * string * (struct (string * (float │

00:00:21 #1062 [Debug] > │ []) * (float [])) [])) =                                                     │

00:00:21 #1063 [Debug] > │     let v0 : (float []) = Array.zeroCreate<float> (501)                      │

00:00:21 #1064 [Debug] > │     let v1 : Mut0 = {l0 = 0} : Mut0                                          │

00:00:21 #1065 [Debug] > │     while method1(v1) do                                                     │

00:00:21 #1066 [Debug] > │         let v3 : int32 = v1.l0                                               │

00:00:21 #1067 [Debug] > │         let v4 : float = float v3                                            │

00:00:21 #1068 [Debug] > │         let v5 : float = 0.1 * v4                                            │

00:00:21 #1069 [Debug] > │         let v6 : float = -5.0 + v5                                           │

00:00:21 #1070 [Debug] > │         v0.[int v3] <- v6                                                    │

00:00:21 #1071 [Debug] > │         let v7 : int32 = v3 + 1                                              │

00:00:21 #1072 [Debug] > │         v1.l0 <- v7                                                          │

00:00:21 #1073 [Debug] > │         ()                                                                   │

00:00:21 #1074 [Debug] > │     let v8 : int32 = v0.Length                                               │

00:00:21 #1075 [Debug] > │     let v9 : (float []) = Array.zeroCreate<float> (v8)                       │

00:00:21 #1076 [Debug] > │     let v10 : Mut0 = {l0 = 0} : Mut0                                         │

00:00:21 #1077 [Debug] > │     while method2(v8, v10) do                                                │

00:00:21 #1078 [Debug] > │         let v12 : int32 = v10.l0                                             │

00:00:21 #1079 [Debug] > │         let v13 : float = v0.[int v12]                                       │

00:00:21 #1080 [Debug] > │         let v14 : float = v13 / 20.0                                         │

00:00:21 #1081 [Debug] > │         let v15 : int32 = int32 v14                                          │

00:00:21 #1082 [Debug] > │         let v16 : float = float v15                                          │

00:00:21 #1083 [Debug] > │         let v17 : float = v16 * 20.0                                         │

00:00:21 #1084 [Debug] > │         let v18 : float = v13 - v17                                          │

00:00:21 #1085 [Debug] > │         let v19 : bool = v18 > 0.0                                           │

00:00:21 #1086 [Debug] > │         let v21 : bool =                                                     │

00:00:21 #1087 [Debug] > │             if v19 then                                                      │

00:00:21 #1088 [Debug] > │                 let v20 : bool = v18 < 10.0                                  │

00:00:21 #1089 [Debug] > │                 v20                                                          │

00:00:21 #1090 [Debug] > │             else                                                             │

00:00:21 #1091 [Debug] > │                 false                                                        │

00:00:21 #1092 [Debug] > │         let v22 : float =                                                    │

00:00:21 #1093 [Debug] > │             if v21 then                                                      │

00:00:21 #1094 [Debug] > │                 10.0                                                         │

00:00:21 #1095 [Debug] > │             else                                                             │

00:00:21 #1096 [Debug] > │                 0.0                                                          │

00:00:21 #1097 [Debug] > │         v9.[int v12] <- v22                                                  │

00:00:21 #1098 [Debug] > │         let v23 : int32 = v12 + 1                                            │

00:00:21 #1099 [Debug] > │         v10.l0 <- v23                                                        │

00:00:21 #1100 [Debug] > │         ()                                                                   │

00:00:21 #1101 [Debug] > │     let v24 : string = "force on bike (N)"                                   │

00:00:21 #1102 [Debug] > │     let v25 : (struct (string * (float []) * (float [])) []) = [|struct      │

00:00:21 #1103 [Debug] > │ (v24, v0, v9)|]                                                              │

00:00:21 #1104 [Debug] > │     let v26 : string = "child pedaling then coasting"                        │

00:00:21 #1105 [Debug] > │     let v27 : string = "time (s)"                                            │

00:00:21 #1106 [Debug] > │     let v28 : string = ""                                                    │

00:00:21 #1107 [Debug] > │     struct (v26, v27, v28, v25)                                              │

00:00:21 #1108 [Debug] > │ method0()                                                                    │

00:00:21 #1109 [Debug] > │                                                                              │

00:00:21 #1110 [Debug] > │                                                                              │

00:00:21 #1111 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:21 #1112 [Debug] >

00:00:21 #1113 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:21 #1114 [Debug] > // // test

00:00:21 #1115 [Debug] >

00:00:21 #1116 [Debug] > inl x = am'.init_series -5 45 1

00:00:21 #1117 [Debug] > inl y = x |> am.map (position_ft 0.1f64 20 0 0 [[ pedal_coast ]])

00:00:21 #1118 [Debug] > "child pedaling then coasting", "time (s)", "", ;[[ "position of bike (m)", x, y

00:00:21 #1119 [Debug] > ]]

00:00:21 #1120 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-4473-7308-7598247adabb\main.spi

00:00:21 #1121 [Debug] >

00:00:21 #1122 [Debug] > ╭─[ 485.84ms - return value ]──────────────────────────────────────────────────╮

00:00:21 #1123 [Debug] > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │

00:00:21 #1124 [Debug] > │ xmlns="http://www.w3.org/2000/svg">                                          │

00:00:21 #1125 [Debug] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │

00:00:21 #1126 [Debug] > │ stroke="none"/>                                                              │

00:00:21 #1127 [Debug] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │

00:00:21 #1128 [Debug] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │

00:00:21 #1129 [Debug] > │ fill="#FFFFFF">                                                              │

00:00:21 #1130 [Debug] > │ child pedaling then coasting                                                 │

00:00:21 #1131 [Debug] > │ </text>                                                                      │

00:00:21 #1132 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │

00:00:21 #1133 [Debug] > │ y2="75"/>                                                                    │

00:00:21 #1134 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │

00:00:21 #1135 [Debug] > │ y2="75"/>                                                                    │

00:00:21 #1136 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │

00:00:21 #1137 [Debug] > │ y2="75"/>                                                                    │

00:00:21 #1138 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │

00:00:21 #1139 [Debug] > │ y2="75"/>                                                                    │

00:00:21 #1140 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1=...                   │

00:00:21 #1141 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:21 #1142 [Debug] >

00:00:21 #1143 [Debug] > ╭─[ 498.80ms - stdout ]────────────────────────────────────────────────────────╮

00:00:22 #1144 [Debug] > │ type Mut0 = {mutable l0 : int32}                                             │

00:00:22 #1145 [Debug] > │ and UH0 =                                                                    │

00:00:22 #1146 [Debug] > │     | UH0_0 of float * UH0                                                   │

00:00:22 #1147 [Debug] > │     | UH0_1                                                                  │

00:00:22 #1148 [Debug] > │ let rec method1 (v0 : Mut0) : bool =                                         │

00:00:22 #1149 [Debug] > │     let v1 : int32 = v0.l0                                                   │

00:00:22 #1150 [Debug] > │     let v2 : bool = v1 < 51                                                  │

00:00:22 #1151 [Debug] > │     v2                                                                       │

00:00:22 #1152 [Debug] > │ and method2 (v0 : int32, v1 : Mut0) : bool =                                 │

00:00:22 #1153 [Debug] > │     let v2 : int32 = v1.l0                                                   │

00:00:22 #1154 [Debug] > │     let v3 : bool = v2 < v0                                                  │

00:00:22 #1155 [Debug] > │     v3                                                                       │

00:00:22 #1156 [Debug] > │ and method3 (v0 : float, v1 : float) : UH0 =                                 │

00:00:22 #1157 [Debug] > │     let v2 : bool = v1 < v0                                                  │

00:00:22 #1158 [Debug] > │     if v2 then                                                               │

00:00:22 #1159 [Debug] > │         let v3 : float = 0.1 * v1                                            │

00:00:22 #1160 [Debug] > │         let v4 : float = 0.05 + v3                                           │

00:00:22 #1161 [Debug] > │         let v5 : float = v1 + 1.0                                            │

00:00:22 #1162 [Debug] > │         let v6 : UH0 = method3(v0, v5)                                       │

00:00:22 #1163 [Debug] > │         UH0_0(v4, v6)                                                        │

00:00:22 #1164 [Debug] > │     else                                                                     │

00:00:22 #1165 [Debug] > │         UH0_1                                                                │

00:00:22 #1166 [Debug] > │ and method5 (v0 : UH0, v1 : UH0) : UH0 =                                     │

00:00:22 #1167 [Debug] > │     match v0 with                                                            │

00:00:22 #1168 [Debug] > │     | UH0_0(v2, v3) -> (* Cons *)                                            │

00:00:22 #1169 [Debug] > │         let v4 : UH0 = method5(v3, v1)                                       │

00:00:22 #1170 [Debug] > │         let v5 : float = v2 / 20.0                                           │

00:00:22 #1171 [Debug] > │         let v6 : int32 = int32 v5                                            │

00:00:22 #1172 [Debug] > │         let v7 : float = float v6                                            │

00:00:22 #1173 [Debug] > │         let v8 : float = v7 * 20.0                                           │

00:00:22 #1174 [Debug] > │         let v9 : float = v2 - v8                                             │

00:00:22 #1175 [Debug] > │         let v10 : bool = v9 > 0.0                                            │

00:00:22 #1176 [Debug] > │         let v12 : bool =                                                     │

00:00:22 #1177 [Debug] > │             if v10 then                                                      │

00:00:22 #1178 [Debug] > │                 let v11 : bool = v9 < 10.0                                   │

00:00:22 #1179 [Debug] > │                 v11                                                          │

00:00:22 #1180 [Debug] > │             else                                                             │

00:00:22 #1181 [Debug] > │                 false                                                        │

00:00:22 #1182 [Debug] > │         let v13 : float =                                                    │

00:00:22 #1183 [Debug] > │             if v12 then                                                      │

00:00:22 #1184 [Debug] > │                 10.0                                                         │

00:00:22 #1185 [Debug] > │             else                                                             │

00:00:22 #1186 [Debug] > │                 0.0                                                          │

00:00:22 #1187 [Debug] > │         let v14 : float = v13 / 20.0                                         │

00:00:22 #1188 [Debug] > │         let v15 : float = 0.1 * v14                                          │

00:00:22 #1189 [Debug] > │         UH0_0(v15, v4)                                                       │

00:00:22 #1190 [Debug] > │     | UH0_1 -> (* Nil *)                                                     │

00:00:22 #1191 [Debug] > │         v1                                                                   │

00:00:22 #1192 [Debug] > │ and method6 (v0 : UH0, v1 : float) : float =                                 │

00:00:22 #1193 [Debug] > │     match v0 with                                                            │

00:00:22 #1194 [Debug] > │     | UH0_0(v2, v3) -> (* Cons *)                                            │

00:00:22 #1195 [Debug] > │         let v4 : float = v1 + v2                                             │

00:00:22 #1196 [Debug] > │         method6(v3, v4)                                                      │

00:00:22 #1197 [Debug] > │     | UH0_1 -> (* Nil *)                                                     │

00:00:22 #1198 [Debug] > │         v1                                                                   │

00:00:22 #1199 [Debug] > │ and method4 (v0 : UH0, v1 : UH0) : UH0 =                                     │

00:00:22 #1200 [Debug] > │     match v0 with                                                            │

00:00:22 #1201 [Debug] > │     | UH0_0(v2, v3) -> (* Cons *)                                            │

00:00:22 #1202 [Debug] > │         let v4 : UH0 = method4(v3, v1)                                       │

00:00:22 #1203 [Debug] > │         let v5 : float = v2 - 0.05                                           │

00:00:22 #1204 [Debug] > │         let v6 : float = v5 - 0.05                                           │

00:00:22 #1205 [Debug] > │         let v7 : float = v6 / 0.1                                            │

00:00:22 #1206 [Debug] > │         let v8 : float = v7 + 1.0                                            │

00:00:22 #1207 [Debug] > │         let v9 : float = 0.0                                                 │

00:00:22 #1208 [Debug] > │         let v10 : UH0 = method3(v8, v9)                                      │

00:00:22 #1209 [Debug] > │         let v11 : UH0 = UH0_1                                                │

00:00:22 #1210 [Debug] > │         let v12 : UH0 = method5(v10, v11)                                    │

00:00:22 #1211 [Debug] > │         let v13 : float = 0.0                                                │

00:00:22 #1212 [Debug] > │         let v14 : float = method6(v12, v13)                                  │

00:00:22 #1213 [Debug] > │         let v15 : float = 0.1 * v14                                          │

00:00:22 #1214 [Debug] > │         UH0_0(v15, v4)                                                       │

00:00:22 #1215 [Debug] > │     | UH0_1 -> (* Nil *)                                                     │

00:00:22 #1216 [Debug] > │         v1                                                                   │

00:00:22 #1217 [Debug] > │ and method0 () : struct (string * string * string * (struct (string * (float │

00:00:22 #1218 [Debug] > │ []) * (float [])) [])) =                                                     │

00:00:22 #1219 [Debug] > │     let v0 : (float []) = Array.zeroCreate<float> (51)                       │

00:00:22 #1220 [Debug] > │     let v1 : Mut0 = {l0 = 0} : Mut0                                          │

00:00:22 #1221 [Debug] > │     while method1(v1) do                                                     │

00:00:22 #1222 [Debug] > │         let v3 : int32 = v1.l0                                               │

00:00:22 #1223 [Debug] > │         let v4 : float = float v3                                            │

00:00:22 #1224 [Debug] > │         let v5 : float = -5.0 + v4                                           │

00:00:22 #1225 [Debug] > │         v0.[int v3] <- v5                                                    │

00:00:22 #1226 [Debug] > │         let v6 : int32 = v3 + 1                                              │

00:00:22 #1227 [Debug] > │         v1.l0 <- v6                                                          │

00:00:22 #1228 [Debug] > │         ()                                                                   │

00:00:22 #1229 [Debug] > │     let v7 : int32 = v0.Length                                               │

00:00:22 #1230 [Debug] > │     let v8 : (float []) = Array.zeroCreate<float> (v7)                       │

00:00:22 #1231 [Debug] > │     let v9 : Mut0 = {l0 = 0} : Mut0                                          │

00:00:22 #1232 [Debug] > │     while method2(v7, v9) do                                                 │

00:00:22 #1233 [Debug] > │         let v11 : int32 = v9.l0                                              │

00:00:22 #1234 [Debug] > │         let v12 : float = v0.[int v11]                                       │

00:00:22 #1235 [Debug] > │         let v13 : float = v12 - 0.05                                         │

00:00:22 #1236 [Debug] > │         let v14 : float = v13 - 0.05                                         │

00:00:22 #1237 [Debug] > │         let v15 : float = v14 / 0.1                                          │

00:00:22 #1238 [Debug] > │         let v16 : float = v15 + 1.0                                          │

00:00:22 #1239 [Debug] > │         let v17 : float = 0.0                                                │

00:00:22 #1240 [Debug] > │         let v18 : UH0 = method3(v16, v17)                                    │

00:00:22 #1241 [Debug] > │         let v19 : UH0 = UH0_1                                                │

00:00:22 #1242 [Debug] > │         let v20 : UH0 = method4(v18, v19)                                    │

00:00:22 #1243 [Debug] > │         let v21 : float = 0.0                                                │

00:00:22 #1244 [Debug] > │         let v22 : float = method6(v20, v21)                                  │

00:00:22 #1245 [Debug] > │         v8.[int v11] <- v22                                                  │

00:00:22 #1246 [Debug] > │         let v23 : int32 = v11 + 1                                            │

00:00:22 #1247 [Debug] > │         v9.l0 <- v23                                                         │

00:00:22 #1248 [Debug] > │         ()                                                                   │

00:00:22 #1249 [Debug] > │     let v24 : string = "position of bike (m)"                                │

00:00:22 #1250 [Debug] > │     let v25 : (struct (string * (float []) * (float [])) []) = [|struct      │

00:00:22 #1251 [Debug] > │ (v24, v0, v8)|]                                                              │

00:00:22 #1252 [Debug] > │     let v26 : string = "child pedaling then coasting"                        │

00:00:22 #1253 [Debug] > │     let v27 : string = "time (s)"                                            │

00:00:22 #1254 [Debug] > │     let v28 : string = ""                                                    │

00:00:22 #1255 [Debug] > │     struct (v26, v27, v28, v25)                                              │

00:00:22 #1256 [Debug] > │ method0()                                                                    │

00:00:22 #1257 [Debug] > │                                                                              │

00:00:22 #1258 [Debug] > │                                                                              │

00:00:22 #1259 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:22 #1260 [Debug] >

00:00:22 #1261 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:22 #1262 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:22 #1263 [Debug] > │ ## velocity_fv                                                               │

00:00:22 #1264 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:22 #1265 [Debug] >

00:00:22 #1266 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:22 #1267 [Debug] > inl newton_second_v m fs v0 =

00:00:22 #1268 [Debug] >     fs |> listm.map (fun f => f v0) |> listm'.sum |> fun x => x / m

00:00:22 #1269 [Debug] >

00:00:22 #1270 [Debug] > inl update_velocity dt m fs v0 =

00:00:22 #1271 [Debug] >     v0 + newton_second_v m fs v0 * dt

00:00:22 #1272 [Debug] >

00:00:22 #1273 [Debug] > inl velocity_fv dt m v0 fs t =

00:00:22 #1274 [Debug] >     stream.iterate (update_velocity dt m fs) v0

00:00:22 #1275 [Debug] >     |> stream.try_item (t / dt |> math.round |> abs)

00:00:22 #1276 [Debug] >     |> optionm'.default_value 0

00:00:22 #1277 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-4528-2880-233eff840a1c\main.spi

00:00:22 #1278 [Debug] >

00:00:22 #1279 [Debug] > ╭─[ 149.79ms - stdout ]────────────────────────────────────────────────────────╮

00:00:22 #1280 [Debug] > │ ()                                                                           │

00:00:22 #1281 [Debug] > │                                                                              │

00:00:22 #1282 [Debug] > │                                                                              │

00:00:22 #1283 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:22 #1284 [Debug] >

00:00:22 #1285 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:22 #1286 [Debug] > inl f_air drag rho area v =

00:00:22 #1287 [Debug] >     -drag * rho * area * abs v * v / 2

00:00:22 #1288 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-4543-4381-44fd99c50241\main.spi

00:00:22 #1289 [Debug] >

00:00:22 #1290 [Debug] > ╭─[ 172.70ms - stdout ]────────────────────────────────────────────────────────╮

00:00:22 #1291 [Debug] > │ ()                                                                           │

00:00:22 #1292 [Debug] > │                                                                              │

00:00:22 #1293 [Debug] > │                                                                              │

00:00:22 #1294 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:22 #1295 [Debug] >

00:00:22 #1296 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:22 #1297 [Debug] > // // test

00:00:22 #1298 [Debug] >

00:00:22 #1299 [Debug] > inl x = am'.init_series 0 60 0.5

00:00:22 #1300 [Debug] > inl y = x |> am.map (velocity_fv 1 70 0f64 [[ fun _ => 100; f_air 2 1.225 0.6

00:00:22 #1301 [Debug] > ]])

00:00:22 #1302 [Debug] > "bike velocity", "time (s)", "", ;[[ "velocity of bike (m/s)", x, y ]]

00:00:22 #1303 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-4561-6132-69517fc646f6\main.spi

00:00:22 #1304 [Debug] >

00:00:22 #1305 [Debug] > ╭─[ 594.63ms - return value ]──────────────────────────────────────────────────╮

00:00:22 #1306 [Debug] > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │

00:00:22 #1307 [Debug] > │ xmlns="http://www.w3.org/2000/svg">                                          │

00:00:22 #1308 [Debug] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │

00:00:22 #1309 [Debug] > │ stroke="none"/>                                                              │

00:00:22 #1310 [Debug] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │

00:00:22 #1311 [Debug] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │

00:00:22 #1312 [Debug] > │ fill="#FFFFFF">                                                              │

00:00:22 #1313 [Debug] > │ bike velocity                                                                │

00:00:22 #1314 [Debug] > │ </text>                                                                      │

00:00:22 #1315 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="61" y1="424" x2="61" │

00:00:22 #1316 [Debug] > │ y2="75"/>                                                                    │

00:00:22 #1317 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │

00:00:22 #1318 [Debug] > │ y2="75"/>                                                                    │

00:00:22 #1319 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="78" y1="424" x2="78" │

00:00:22 #1320 [Debug] > │ y2="75"/>                                                                    │

00:00:22 #1321 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="86" y1="424" x2="86" │

00:00:22 #1322 [Debug] > │ y2="75"/>                                                                    │

00:00:22 #1323 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x...    │

00:00:22 #1324 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:22 #1325 [Debug] >

00:00:23 #1326 [Debug] > ╭─[ 610.94ms - stdout ]────────────────────────────────────────────────────────╮

00:00:23 #1327 [Debug] > │ type Mut0 = {mutable l0 : int32}                                             │

00:00:23 #1328 [Debug] > │ and UH0 =                                                                    │

00:00:23 #1329 [Debug] > │     | UH0_0 of float * (unit -> UH0)                                         │

00:00:23 #1330 [Debug] > │     | UH0_1                                                                  │

00:00:23 #1331 [Debug] > │ and [<Struct>] US0 =                                                         │

00:00:23 #1332 [Debug] > │     | US0_0                                                                  │

00:00:23 #1333 [Debug] > │     | US0_1 of f1_0 : float                                                  │

00:00:23 #1334 [Debug] > │ let rec method1 (v0 : Mut0) : bool =                                         │

00:00:23 #1335 [Debug] > │     let v1 : int32 = v0.l0                                                   │

00:00:23 #1336 [Debug] > │     let v2 : bool = v1 < 121                                                 │

00:00:23 #1337 [Debug] > │     v2                                                                       │

00:00:23 #1338 [Debug] > │ and method2 (v0 : int32, v1 : Mut0) : bool =                                 │

00:00:23 #1339 [Debug] > │     let v2 : int32 = v1.l0                                                   │

00:00:23 #1340 [Debug] > │     let v3 : bool = v2 < v0                                                  │

00:00:23 #1341 [Debug] > │     v3                                                                       │

00:00:23 #1342 [Debug] > │ and closure129 () () : UH0 =                                                 │

00:00:23 #1343 [Debug] > │     let v0 : (unit -> UH0) = closure129()                                    │

00:00:23 #1344 [Debug] > │     UH0_0(11.664236870396083, v0)                                            │

00:00:23 #1345 [Debug] > │ and closure128 () () : UH0 =                                                 │

00:00:23 #1346 [Debug] > │     let v0 : (unit -> UH0) = closure129()                                    │

00:00:23 #1347 [Debug] > │     UH0_0(11.664236870396081, v0)                                            │

00:00:23 #1348 [Debug] > │ and closure127 () () : UH0 =                                                 │

00:00:23 #1349 [Debug] > │     let v0 : (unit -> UH0) = closure128()                                    │

00:00:23 #1350 [Debug] > │     UH0_0(11.66423687039608, v0)                                             │

00:00:23 #1351 [Debug] > │ and closure126 () () : UH0 =                                                 │

00:00:23 #1352 [Debug] > │     let v0 : (unit -> UH0) = closure127()                                    │

00:00:23 #1353 [Debug] > │     UH0_0(11.664236870396078, v0)                                            │

00:00:23 #1354 [Debug] > │ and closure125 () () : UH0 =                                                 │

00:00:23 #1355 [Debug] > │     let v0 : (unit -> UH0) = closure126()                                    │

00:00:23 #1356 [Debug] > │     UH0_0(11.664236870396074, v0)                                            │

00:00:23 #1357 [Debug] > │ and closure124 () () : UH0 =                                                 │

00:00:23 #1358 [Debug] > │     let v0 : (unit -> UH0) = closure125()                                    │

00:00:23 #1359 [Debug] > │     UH0_0(11.66423687039607, v0)                                             │

00:00:23 #1360 [Debug] > │ and closure123 () () : UH0 =                                                 │

00:00:23 #1361 [Debug] > │     let v0 : (unit -> UH0) = closure124()                                    │

00:00:23 #1362 [Debug] > │     UH0_0(11.664236870396065, v0)                                            │

00:00:23 #1363 [Debug] > │ and closure122 () () : UH0 =                                                 │

00:00:23 #1364 [Debug] > │     let v0 : (unit -> UH0) = closure123()                                    │

00:00:23 #1365 [Debug] > │     UH0_0(11.664236870396058, v0)                                            │

00:00:23 #1366 [Debug] > │ and closure121 () () : UH0 =                                                 │

00:00:23 #1367 [Debug] > │     let v0 : (unit -> UH0) = closure122()                                    │

00:00:23 #1368 [Debug] > │     UH0_0(11.66423687039605, v0)                                             │

00:00:23 #1369 [Debug] > │ and closure120 () () : UH0 =                                                 │

00:00:23 #1370 [Debug] > │     let v0 : (unit -> UH0) = closure121()                                    │

00:00:23 #1371 [Debug] > │     UH0_0(11.664236870396037, v0)                                            │

00:00:23 #1372 [Debug] > │ and closure119 () () : UH0 =                                                 │

00:00:23 #1373 [Debug] > │     let v0 : (unit -> UH0) = closure120()                                    │

00:00:23 #1374 [Debug] > │     UH0_0(11.66423687039602, v0)                                             │

00:00:23 #1375 [Debug] > │ and closure118 () () : UH0 =                                                 │

00:00:23 #1376 [Debug] > │     let v0 : (unit -> UH0) = closure119()                                    │

00:00:23 #1377 [Debug] > │     UH0_0(11.664236870396, v0)                                               │

00:00:23 #1378 [Debug] > │ and closure117 () () : UH0 =                                                 │

00:00:23 #1379 [Debug] > │     let v0 : (unit -> UH0) = closure118()                                    │

00:00:23 #1380 [Debug] > │     UH0_0(11.664236870395971, v0)                                            │

00:00:23 #1381 [Debug] > │ and closure116 () () : UH0 =                                                 │

00:00:23 #1382 [Debug] > │     let v0 : (unit -> UH0) = closure117()                                    │

00:00:23 #1383 [Debug] > │     UH0_0(11.664236870395934, v0)                                            │

00:00:23 #1384 [Debug] > │ and closure115 () () : UH0 =                                                 │

00:00:23 #1385 [Debug] > │     let v0 : (unit -> UH0) = closure116()                                    │

00:00:23 #1386 [Debug] > │     UH0_0(11.664236870395884, v0)                                            │

00:00:23 #1387 [Debug] > │ and closure114 () () : UH0 =                                                 │

00:00:23 #1388 [Debug] > │     let v0 : (unit -> UH0) = closure115()                                    │

00:00:23 #1389 [Debug] > │     UH0_0(11.664236870395818, v0)                                            │

00:00:23 #1390 [Debug] > │ and closure113 () () : UH0 =                                                 │

00:00:23 #1391 [Debug] > │     let v0 : (unit -> UH0) = closure114()                                    │

00:00:23 #1392 [Debug] > │     UH0_0(11.664236870395731, v0)                                            │

00:00:23 #1393 [Debug] > │ and closure112 () () : UH0 =                                                 │

00:00:23 #1394 [Debug] > │     let v0 : (unit -> UH0) = closure113()                                    │

00:00:23 #1395 [Debug] > │     UH0_0(11.664236870395616, v0)                                            │

00:00:23 #1396 [Debug] > │ and closure111 () () : UH0 =                                                 │

00:00:23 #1397 [Debug] > │     let v0 : (unit -> UH0) = closure112()                                    │

00:00:23 #1398 [Debug] > │     UH0_0(11.664236870395463, v0)                                            │

00:00:23 #1399 [Debug] > │ and closure110 () () : UH0 =                                                 │

00:00:23 #1400 [Debug] > │     let v0 : (unit -> UH0) = closure111()                                    │

00:00:23 #1401 [Debug] > │     UH0_0(11.66423687039526, v0)                                             │

00:00:23 #1402 [Debug] > │ and closure109 () () : UH0 =                                                 │

00:00:23 #1403 [Debug] > │     let v0 : (unit -> UH0) = closure110()                                    │

00:00:23 #1404 [Debug] > │     UH0_0(11.664236870394992, v0)                                            │

00:00:23 #1405 [Debug] > │ and closure108 () () : UH0 =                                                 │

00:00:23 #1406 [Debug] > │     let v0 : (unit -> UH0) = closure109()                                    │

00:00:23 #1407 [Debug] > │     UH0_0(11.664236870394637, v0)                                            │

00:00:23 #1408 [Debug] > │ and closure107 () () : UH0 =                                                 │

00:00:23 #1409 [Debug] > │     let v0 : (unit -> UH0) = closure108()                                    │

00:00:23 #1410 [Debug] > │     UH0_0(11.664236870394168, v0)                                            │

00:00:23 #1411 [Debug] > │ and closure106 () () : UH0 =                                                 │

00:00:23 #1412 [Debug] > │     let v0 : (unit -> UH0) = closure107()                                    │

00:00:23 #1413 [Debug] > │     UH0_0(11.664236870393546, v0)                                            │

00:00:23 #1414 [Debug] > │ and closure105 () () : UH0 =                                                 │

00:00:23 #1415 [Debug] > │     let v0 : (unit -> UH0) = closure106()                                    │

00:00:23 #1416 [Debug] > │     UH0_0(11.664236870392722, v0)                                            │

00:00:23 #1417 [Debug] > │ and closure104 () () : UH0 =                                                 │

00:00:23 #1418 [Debug] > │     let v0 : (unit -> UH0) = closure105()                                    │

00:00:23 #1419 [Debug] > │     UH0_0(11.664236870391631, v0)                                            │

00:00:23 #1420 [Debug] > │ and closure103 () () : UH0 =                                                 │

00:00:23 #1421 [Debug] > │     let v0 : (unit -> UH0) = closure104()                                    │

00:00:23 #1422 [Debug] > │     UH0_0(11.664236870390187, v0)                                            │

00:00:23 #1423 [Debug] > │ and closure102 () () : UH0 =                                                 │

00:00:23 #1424 [Debug] > │     let v0 : (unit -> UH0) = closure103()                                    │

00:00:23 #1425 [Debug] > │     UH0_0(11.664236870388274, v0)                                            │

00:00:23 #1426 [Debug] > │ and closure101 () () : UH0 =                                                 │

00:00:23 #1427 [Debug] > │     let v0 : (unit -> UH0) = closure102()                                    │

00:00:23 #1428 [Debug] > │     UH0_0(11.66423687038574, v0)                                             │

00:00:23 #1429 [Debug] > │ and closure100 () () : UH0 =                                                 │

00:00:23 #1430 [Debug] > │     let v0 : (unit -> UH0) = closure101()                                    │

00:00:23 #1431 [Debug] > │     UH0_0(11.664236870382384, v0)                                            │

00:00:23 #1432 [Debug] > │ and closure99 () () : UH0 =                                                  │

00:00:23 #1433 [Debug] > │     let v0 : (unit -> UH0) = closure100()                                    │

00:00:23 #1434 [Debug] > │     UH0_0(11.664236870377938, v0)                                            │

00:00:23 #1435 [Debug] > │ and closure98 () () : UH0 =                                                  │

00:00:23 #1436 [Debug] > │     let v0 : (unit -> UH0) = closure99()                                     │

00:00:23 #1437 [Debug] > │     UH0_0(11.66423687037205, v0)                                             │

00:00:23 #1438 [Debug] > │ and closure97 () () : UH0 =                                                  │

00:00:23 #1439 [Debug] > │     let v0 : (unit -> UH0) = closure98()                                     │

00:00:23 #1440 [Debug] > │     UH0_0(11.664236870364254, v0)                                            │

00:00:23 #1441 [Debug] > │ and closure96 () () : UH0 =                                                  │

00:00:23 #1442 [Debug] > │     let v0 : (unit -> UH0) = closure97()                                     │

00:00:23 #1443 [Debug] > │     UH0_0(11.664236870353927, v0)                                            │

00:00:23 #1444 [Debug] > │ and closure95 () () : UH0 =                                                  │

00:00:23 #1445 [Debug] > │     let v0 : (unit -> UH0) = closure96()                                     │

00:00:23 #1446 [Debug] > │     UH0_0(11.664236870340249, v0)                                            │

00:00:23 #1447 [Debug] > │ and closure94 () () : UH0 =                                                  │

00:00:23 #1448 [Debug] > │     let v0 : (unit -> UH0) = closure95()                                     │

00:00:23 #1449 [Debug] > │     UH0_0(11.664236870322135, v0)                                            │

00:00:23 #1450 [Debug] > │ and closure93 () () : UH0 =                                                  │

00:00:23 #1451 [Debug] > │     let v0 : (unit -> UH0) = closure94()                                     │

00:00:23 #1452 [Debug] > │     UH0_0(11.664236870298145, v0)                                            │

00:00:23 #1453 [Debug] > │ and closure92 () () : UH0 =                                                  │

00:00:23 #1454 [Debug] > │     let v0 : (unit -> UH0) = closure93()                                     │

00:00:23 #1455 [Debug] > │     UH0_0(11.664236870266372, v0)                                            │

00:00:23 #1456 [Debug] > │ and closure91 () () : UH0 =                                                  │

00:00:23 #1457 [Debug] > │     let v0 : (unit -> UH0) = closure92()                                     │

00:00:23 #1458 [Debug] > │     UH0_0(11.664236870224292, v0)                                            │

00:00:23 #1459 [Debug] > │ and closure90 () () : UH0 =                                                  │

00:00:23 #1460 [Debug] > │     let v0 : (unit -> UH0) = closure91()                                     │

00:00:23 #1461 [Debug] > │     UH0_0(11.66423687016856, v0)                                             │

00:00:23 #1462 [Debug] > │ and closure89 () () : UH0 =                                                  │

00:00:23 #1463 [Debug] > │     let v0 : (unit -> UH0) = closure90()                                     │

00:00:23 #1464 [Debug] > │     UH0_0(11.664236870094747, v0)                                            │

00:00:23 #1465 [Debug] > │ and closure88 () () : UH0 =                                                  │

00:00:23 #1466 [Debug] > │     let v0 : (unit -> UH0) = closure89()                                     │

00:00:23 #1467 [Debug] > │     UH0_0(11.664236869996989, v0)                                            │

00:00:23 #1468 [Debug] > │ and closure87 () () : UH0 =                                                  │

00:00:23 #1469 [Debug] > │     let v0 : (unit -> UH0) = closure88()                                     │

00:00:23 #1470 [Debug] > │     UH0_0(11.664236869867516, v0)                                            │

00:00:23 #1471 [Debug] > │ and closure86 () () : UH0 =                                                  │

00:00:23 #1472 [Debug] > │     let v0 : (unit -> UH0) = closure87()                                     │

00:00:23 #1473 [Debug] > │     UH0_0(11.66423686969604, v0)                                             │

00:00:23 #1474 [Debug] > │ and closure85 () () : UH0 =                                                  │

00:00:23 #1475 [Debug] > │     let v0 : (unit -> UH0) = closure86()                                     │

00:00:23 #1476 [Debug] > │     UH0_0(11.664236869468937, v0)                                            │

00:00:23 #1477 [Debug] > │ and closure84 () () : UH0 =                                                  │

00:00:23 #1478 [Debug] > │     let v0 : (unit -> UH0) = closure85()                                     │

00:00:23 #1479 [Debug] > │     UH0_0(11.664236869168157, v0)                                            │

00:00:23 #1480 [Debug] > │ and closure83 () () : UH0 =                                                  │

00:00:23 #1481 [Debug] > │     let v0 : (unit -> UH0) = closure84()                                     │

00:00:23 #1482 [Debug] > │     UH0_0(11.6642368687698, v0)                                              │

00:00:23 #1483 [Debug] > │ and closure82 () () : UH0 =                                                  │

00:00:23 #1484 [Debug] > │     let v0 : (unit -> UH0) = closure83()                                     │

00:00:23 #1485 [Debug] > │     UH0_0(11.664236868242211, v0)                                            │

00:00:23 #1486 [Debug] > │ and closure81 () () : UH0 =                                                  │

00:00:23 #1487 [Debug] > │     let v0 : (unit -> UH0) = closure82()                                     │

00:00:23 #1488 [Debug] > │     UH0_0(11.664236867543465, v0)                                            │

00:00:23 #1489 [Debug] > │ and closure80 () () : UH0 =                                                  │

00:00:23 #1490 [Debug] > │     let v0 : (unit -> UH0) = closure81()                                     │

00:00:23 #1491 [Debug] > │     UH0_0(11.664236866618037, v0)                                            │

00:00:23 #1492 [Debug] > │ and closure79 () () : UH0 =                                                  │

00:00:23 #1493 [Debug] > │     let v0 : (unit -> UH0) = closure80()                                     │

00:00:23 #1494 [Debug] > │     UH0_0(11.664236865392386, v0)                                            │

00:00:23 #1495 [Debug] > │ and closure78 () () : UH0 =                                                  │

00:00:23 #1496 [Debug] > │     let v0 : (unit -> UH0) = closure79()                                     │

00:00:23 #1497 [Debug] > │     UH0_0(11.664236863769117, v0)                                            │

00:00:23 #1498 [Debug] > │ and closure77 () () : UH0 =                                                  │

00:00:23 #1499 [Debug] > │     let v0 : (unit -> UH0) = closure78()                                     │

00:00:23 #1500 [Debug] > │     UH0_0(11.664236861619237, v0)                                            │

00:00:23 #1501 [Debug] > │ and closure76 () () : UH0 =                                                  │

00:00:23 #1502 [Debug] > │     let v0 : (unit -> UH0) = closure77()                                     │

00:00:23 #1503 [Debug] > │     UH0_0(11.664236858771906, v0)                                            │

00:00:23 #1504 [Debug] > │ and closure75 () () : UH0 =                                                  │

00:00:23 #1505 [Debug] > │     let v0 : (unit -> UH0) = closure76()                                     │

00:00:23 #1506 [Debug] > │     UH0_0(11.66423685500086, v0)                                             │

00:00:23 #1507 [Debug] > │ and closure74 () () : UH0 =                                                  │

00:00:23 #1508 [Debug] > │     let v0 : (unit -> UH0) = closure75()                                     │

00:00:23 #1509 [Debug] > │     UH0_0(11.664236850006436, v0)                                            │

00:00:23 #1510 [Debug] > │ and closure73 () () : UH0 =                                                  │

00:00:23 #1511 [Debug] > │     let v0 : (unit -> UH0) = closure74()                                     │

00:00:23 #1512 [Debug] > │     UH0_0(11.664236843391752, v0)                                            │

00:00:23 #1513 [Debug] > │ and closure72 () () : UH0 =                                                  │

00:00:23 #1514 [Debug] > │     let v0 : (unit -> UH0) = closure73()                                     │

00:00:23 #1515 [Debug] > │     UH0_0(11.664236834631172, v0)                                            │

00:00:23 #1516 [Debug] > │ and closure71 () () : UH0 =                                                  │

00:00:23 #1517 [Debug] > │     let v0 : (unit -> UH0) = closure72()                                     │

00:00:23 #1518 [Debug] > │     UH0_0(11.66423682302854, v0)                                             │

00:00:23 #1519 [Debug] > │ and closure70 () () : UH0 =                                                  │

00:00:23 #1520 [Debug] > │     let v0 : (unit -> UH0) = closure71()                                     │

00:00:23 #1521 [Debug] > │     UH0_0(11.664236807661855, v0)                                            │

00:00:23 #1522 [Debug] > │ and closure69 () () : UH0 =                                                  │

00:00:23 #1523 [Debug] > │     let v0 : (unit -> UH0) = closure70()                                     │

00:00:23 #1524 [Debug] > │     UH0_0(11.664236787310005, v0)                                            │

00:00:23 #1525 [Debug] > │ and closure68 () () : UH0 =                                                  │

00:00:23 #1526 [Debug] > │     let v0 : (unit -> UH0) = closure69()                                     │

00:00:23 #1527 [Debug] > │     UH0_0(11.664236760355733, v0)                                            │

00:00:23 #1528 [Debug] > │ and closure67 () () : UH0 =                                                  │

00:00:23 #1529 [Debug] > │     let v0 : (unit -> UH0) = closure68()                                     │

00:00:23 #1530 [Debug] > │     UH0_0(11.664236724657123, v0)                                            │

00:00:23 #1531 [Debug] > │ and closure66 () () : UH0 =                                                  │

00:00:23 #1532 [Debug] > │     let v0 : (unit -> UH0) = closure67()                                     │

00:00:23 #1533 [Debug] > │     UH0_0(11.66423667737739, v0)                                             │

00:00:23 #1534 [Debug] > │ and closure65 () () : UH0 =                                                  │

00:00:23 #1535 [Debug] > │     let v0 : (unit -> UH0) = closure66()                                     │

00:00:23 #1536 [Debug] > │     UH0_0(11.664236614759462, v0)                                            │

00:00:23 #1537 [Debug] > │ and closure64 () () : UH0 =                                                  │

00:00:23 #1538 [Debug] > │     let v0 : (unit -> UH0) = closure65()                                     │

00:00:23 #1539 [Debug] > │     UH0_0(11.664236531827415, v0)                                            │

00:00:23 #1540 [Debug] > │ and closure63 () () : UH0 =                                                  │

00:00:23 #1541 [Debug] > │     let v0 : (unit -> UH0) = closure64()                                     │

00:00:23 #1542 [Debug] > │     UH0_0(11.664236421991067, v0)                                            │

00:00:23 #1543 [Debug] > │ and closure62 () () : UH0 =                                                  │

00:00:23 #1544 [Debug] > │     let v0 : (unit -> UH0) = closure63()                                     │

00:00:23 #1545 [Debug] > │     UH0_0(11.664236276522294, v0)                                            │

00:00:23 #1546 [Debug] > │ and closure61 () () : UH0 =                                                  │

00:00:23 #1547 [Debug] > │     let v0 : (unit -> UH0) = closure62()                                     │

00:00:23 #1548 [Debug] > │     UH0_0(11.664236083861448, v0)                                            │

00:00:23 #1549 [Debug] > │ and closure60 () () : UH0 =                                                  │

00:00:23 #1550 [Debug] > │     let v0 : (unit -> UH0) = closure61()                                     │

00:00:23 #1551 [Debug] > │     UH0_0(11.664235828698772, v0)                                            │

00:00:23 #1552 [Debug] > │ and closure59 () () : UH0 =                                                  │

00:00:23 #1553 [Debug] > │     let v0 : (unit -> UH0) = closure60()                                     │

00:00:23 #1554 [Debug] > │     UH0_0(11.664235490757811, v0)                                            │

00:00:23 #1555 [Debug] > │ and closure58 () () : UH0 =                                                  │

00:00:23 #1556 [Debug] > │     let v0 : (unit -> UH0) = closure59()                                     │

00:00:23 #1557 [Debug] > │     UH0_0(11.664235043184158, v0)                                            │

00:00:23 #1558 [Debug] > │ and closure57 () () : UH0 =                                                  │

00:00:23 #1559 [Debug] > │     let v0 : (unit -> UH0) = closure58()                                     │

00:00:23 #1560 [Debug] > │     UH0_0(11.66423445041147, v0)                                             │

00:00:23 #1561 [Debug] > │ and closure56 () () : UH0 =                                                  │

00:00:23 #1562 [Debug] > │     let v0 : (unit -> UH0) = closure57()                                     │

00:00:23 #1563 [Debug] > │     UH0_0(11.664233665335203, v0)                                            │

00:00:23 #1564 [Debug] > │ and closure55 () () : UH0 =                                                  │

00:00:23 #1565 [Debug] > │     let v0 : (unit -> UH0) = closure56()                                     │

00:00:23 #1566 [Debug] > │     UH0_0(11.664232625569467, v0)                                            │

00:00:23 #1567 [Debug] > │ and closure54 () () : UH0 =                                                  │

00:00:23 #1568 [Debug] > │     let v0 : (unit -> UH0) = closure55()                                     │

00:00:23 #1569 [Debug] > │     UH0_0(11.664231248489562, v0)                                            │

00:00:23 #1570 [Debug] > │ and closure53 () () : UH0 =                                                  │

00:00:23 #1571 [Debug] > │     let v0 : (unit -> UH0) = closure54()                                     │

00:00:23 #1572 [Debug] > │     UH0_0(11.664229424666262, v0)                                            │

00:00:23 #1573 [Debug] > │ and closure52 () () : UH0 =                                                  │

00:00:23 #1574 [Debug] > │     let v0 : (unit -> UH0) = closure53()                                     │

00:00:23 #1575 [Debug] > │     UH0_0(11.66422700917009, v0)                                             │

00:00:23 #1576 [Debug] > │ and closure51 () () : UH0 =                                                  │

00:00:23 #1577 [Debug] > │     let v0 : (unit -> UH0) = closure52()                                     │

00:00:23 #1578 [Debug] > │     UH0_0(11.664223810054642, v0)                                            │

00:00:23 #1579 [Debug] > │ and closure50 () () : UH0 =                                                  │

00:00:23 #1580 [Debug] > │     let v0 : (unit -> UH0) = closure51()                                     │

00:00:23 #1581 [Debug] > │     UH0_0(11.664219573103773, v0)                                            │

00:00:23 #1582 [Debug] > │ and closure49 () () : UH0 =                                                  │

00:00:23 #1583 [Debug] > │     let v0 : (unit -> UH0) = closure50()                                     │

00:00:23 #1584 [Debug] > │     UH0_0(11.6642139616307, v0)                                              │

00:00:23 #1585 [Debug] > │ and closure48 () () : UH0 =                                                  │

00:00:23 #1586 [Debug] > │     let v0 : (unit -> UH0) = closure49()                                     │

00:00:23 #1587 [Debug] > │     UH0_0(11.664206529723813, v0)                                            │

00:00:23 #1588 [Debug] > │ and closure47 () () : UH0 =                                                  │

00:00:23 #1589 [Debug] > │     let v0 : (unit -> UH0) = closure48()                                     │

00:00:23 #1590 [Debug] > │     UH0_0(11.664196686813408, v0)                                            │

00:00:23 #1591 [Debug] > │ and closure46 () () : UH0 =                                                  │

00:00:23 #1592 [Debug] > │     let v0 : (unit -> UH0) = closure47()                                     │

00:00:23 #1593 [Debug] > │     UH0_0(11.664183650743945, v0)                                            │

00:00:23 #1594 [Debug] > │ and closure45 () () : UH0 =                                                  │

00:00:23 #1595 [Debug] > │     let v0 : (unit -> UH0) = closure46()                                     │

00:00:23 #1596 [Debug] > │     UH0_0(11.664166385623318, v0)                                            │

00:00:23 #1597 [Debug] > │ and closure44 () () : UH0 =                                                  │

00:00:23 #1598 [Debug] > │     let v0 : (unit -> UH0) = closure45()                                     │

00:00:23 #1599 [Debug] > │     UH0_0(11.664143519511356, v0)                                            │

00:00:23 #1600 [Debug] > │ and closure43 () () : UH0 =                                                  │

00:00:23 #1601 [Debug] > │     let v0 : (unit -> UH0) = closure44()                                     │

00:00:23 #1602 [Debug] > │     UH0_0(11.664113235408447, v0)                                            │

00:00:23 #1603 [Debug] > │ and closure42 () () : UH0 =                                                  │

00:00:23 #1604 [Debug] > │     let v0 : (unit -> UH0) = closure43()                                     │

00:00:23 #1605 [Debug] > │     UH0_0(11.66407312688485, v0)                                             │

00:00:23 #1606 [Debug] > │ and closure41 () () : UH0 =                                                  │

00:00:23 #1607 [Debug] > │     let v0 : (unit -> UH0) = closure42()                                     │

00:00:23 #1608 [Debug] > │     UH0_0(11.664020006883758, v0)                                            │

00:00:23 #1609 [Debug] > │ and closure40 () () : UH0 =                                                  │

00:00:23 #1610 [Debug] > │     let v0 : (unit -> UH0) = closure41()                                     │

00:00:23 #1611 [Debug] > │     UH0_0(11.663949654514292, v0)                                            │

00:00:23 #1612 [Debug] > │ and closure39 () () : UH0 =                                                  │

00:00:23 #1613 [Debug] > │     let v0 : (unit -> UH0) = closure40()                                     │

00:00:23 #1614 [Debug] > │     UH0_0(11.663856479730171, v0)                                            │

00:00:23 #1615 [Debug] > │ and closure38 () () : UH0 =                                                  │

00:00:23 #1616 [Debug] > │     let v0 : (unit -> UH0) = closure39()                                     │

00:00:23 #1617 [Debug] > │     UH0_0(11.663733079277343, v0)                                            │

00:00:23 #1618 [Debug] > │ and closure37 () () : UH0 =                                                  │

00:00:23 #1619 [Debug] > │     let v0 : (unit -> UH0) = closure38()                                     │

00:00:23 #1620 [Debug] > │     UH0_0(11.663569648675777, v0)                                            │

00:00:23 #1621 [Debug] > │ and closure36 () () : UH0 =                                                  │

00:00:23 #1622 [Debug] > │     let v0 : (unit -> UH0) = closure37()                                     │

00:00:23 #1623 [Debug] > │     UH0_0(11.663353203599439, v0)                                            │

00:00:23 #1624 [Debug] > │ and closure35 () () : UH0 =                                                  │

00:00:23 #1625 [Debug] > │     let v0 : (unit -> UH0) = closure36()                                     │

00:00:23 #1626 [Debug] > │     UH0_0(11.663066548940721, v0)                                            │

00:00:23 #1627 [Debug] > │ and closure34 () () : UH0 =                                                  │

00:00:23 #1628 [Debug] > │     let v0 : (unit -> UH0) = closure35()                                     │

00:00:23 #1629 [Debug] > │     UH0_0(11.662686913915445, v0)                                            │

00:00:23 #1630 [Debug] > │ and closure33 () () : UH0 =                                                  │

00:00:23 #1631 [Debug] > │     let v0 : (unit -> UH0) = closure34()                                     │

00:00:23 #1632 [Debug] > │     UH0_0(11.662184145236864, v0)                                            │

00:00:23 #1633 [Debug] > │ and closure32 () () : UH0 =                                                  │

00:00:23 #1634 [Debug] > │     let v0 : (unit -> UH0) = closure33()                                     │

00:00:23 #1635 [Debug] > │     UH0_0(11.661518315638029, v0)                                            │

00:00:23 #1636 [Debug] > │ and closure31 () () : UH0 =                                                  │

00:00:23 #1637 [Debug] > │     let v0 : (unit -> UH0) = closure32()                                     │

00:00:23 #1638 [Debug] > │     UH0_0(11.66063655920926, v0)                                             │

00:00:23 #1639 [Debug] > │ and closure30 () () : UH0 =                                                  │

00:00:23 #1640 [Debug] > │     let v0 : (unit -> UH0) = closure31()                                     │

00:00:23 #1641 [Debug] > │     UH0_0(11.659468884709733, v0)                                            │

00:00:23 #1642 [Debug] > │ and closure29 () () : UH0 =                                                  │

00:00:23 #1643 [Debug] > │     let v0 : (unit -> UH0) = closure30()                                     │

00:00:23 #1644 [Debug] > │     UH0_0(11.657922638782631, v0)                                            │

00:00:23 #1645 [Debug] > │ and closure28 () () : UH0 =                                                  │

00:00:23 #1646 [Debug] > │     let v0 : (unit -> UH0) = closure29()                                     │

00:00:23 #1647 [Debug] > │     UH0_0(11.655875187195818, v0)                                            │

00:00:23 #1648 [Debug] > │ and closure27 () () : UH0 =                                                  │

00:00:23 #1649 [Debug] > │     let v0 : (unit -> UH0) = closure28()                                     │

00:00:23 #1650 [Debug] > │     UH0_0(11.653164246713697, v0)                                            │

00:00:23 #1651 [Debug] > │ and closure26 () () : UH0 =                                                  │

00:00:23 #1652 [Debug] > │     let v0 : (unit -> UH0) = closure27()                                     │

00:00:23 #1653 [Debug] > │     UH0_0(11.64957512416459, v0)                                             │

00:00:23 #1654 [Debug] > │ and closure25 () () : UH0 =                                                  │

00:00:23 #1655 [Debug] > │     let v0 : (unit -> UH0) = closure26()                                     │

00:00:23 #1656 [Debug] > │     UH0_0(11.644823892116417, v0)                                            │

00:00:23 #1657 [Debug] > │ and closure24 () () : UH0 =                                                  │

00:00:23 #1658 [Debug] > │     let v0 : (unit -> UH0) = closure25()                                     │

00:00:23 #1659 [Debug] > │     UH0_0(11.63853524018339, v0)                                             │

00:00:23 #1660 [Debug] > │ and closure23 () () : UH0 =                                                  │

00:00:23 #1661 [Debug] > │     let v0 : (unit -> UH0) = closure24()                                     │

00:00:23 #1662 [Debug] > │     UH0_0(11.630213374558416, v0)                                            │

00:00:23 #1663 [Debug] > │ and closure22 () () : UH0 =                                                  │

00:00:23 #1664 [Debug] > │     let v0 : (unit -> UH0) = closure23()                                     │

00:00:23 #1665 [Debug] > │     UH0_0(11.619203884549703, v0)                                            │

00:00:23 #1666 [Debug] > │ and closure21 () () : UH0 =                                                  │

00:00:23 #1667 [Debug] > │     let v0 : (unit -> UH0) = closure22()                                     │

00:00:23 #1668 [Debug] > │     UH0_0(11.604643948207235, v0)                                            │

00:00:23 #1669 [Debug] > │ and closure20 () () : UH0 =                                                  │

00:00:23 #1670 [Debug] > │     let v0 : (unit -> UH0) = closure21()                                     │

00:00:23 #1671 [Debug] > │     UH0_0(11.585397618384544, v0)                                            │

00:00:23 #1672 [Debug] > │ and closure19 () () : UH0 =                                                  │

00:00:23 #1673 [Debug] > │     let v0 : (unit -> UH0) = closure20()                                     │

00:00:23 #1674 [Debug] > │     UH0_0(11.559972254267073, v0)                                            │

00:00:23 #1675 [Debug] > │ and closure18 () () : UH0 =                                                  │

00:00:23 #1676 [Debug] > │     let v0 : (unit -> UH0) = closure19()                                     │

00:00:23 #1677 [Debug] > │     UH0_0(11.526411536153837, v0)                                            │

00:00:23 #1678 [Debug] > │ and closure17 () () : UH0 =                                                  │

00:00:23 #1679 [Debug] > │     let v0 : (unit -> UH0) = closure18()                                     │

00:00:23 #1680 [Debug] > │     UH0_0(11.48216011776808, v0)                                             │

00:00:23 #1681 [Debug] > │ and closure16 () () : UH0 =                                                  │

00:00:23 #1682 [Debug] > │     let v0 : (unit -> UH0) = closure17()                                     │

00:00:23 #1683 [Debug] > │     UH0_0(11.42389519391233, v0)                                             │

00:00:23 #1684 [Debug] > │ and closure15 () () : UH0 =                                                  │

00:00:23 #1685 [Debug] > │     let v0 : (unit -> UH0) = closure16()                                     │

00:00:23 #1686 [Debug] > │     UH0_0(11.347321723441393, v0)                                            │

00:00:23 #1687 [Debug] > │ and closure14 () () : UH0 =                                                  │

00:00:23 #1688 [Debug] > │     let v0 : (unit -> UH0) = closure15()                                     │

00:00:23 #1689 [Debug] > │     UH0_0(11.246931775734161, v0)                                            │

00:00:23 #1690 [Debug] > │ and closure13 () () : UH0 =                                                  │

00:00:23 #1691 [Debug] > │     let v0 : (unit -> UH0) = closure14()                                     │

00:00:23 #1692 [Debug] > │     UH0_0(11.115736011467376, v0)                                            │

00:00:23 #1693 [Debug] > │ and closure12 () () : UH0 =                                                  │

00:00:23 #1694 [Debug] > │     let v0 : (unit -> UH0) = closure13()                                     │

00:00:23 #1695 [Debug] > │     UH0_0(10.94498876251829, v0)                                             │

00:00:23 #1696 [Debug] > │ and closure11 () () : UH0 =                                                  │

00:00:23 #1697 [Debug] > │     let v0 : (unit -> UH0) = closure12()                                     │

00:00:23 #1698 [Debug] > │     UH0_0(10.72394989903564, v0)                                             │

00:00:23 #1699 [Debug] > │ and closure10 () () : UH0 =                                                  │

00:00:23 #1700 [Debug] > │     let v0 : (unit -> UH0) = closure11()                                     │

00:00:23 #1701 [Debug] > │     UH0_0(10.439758275369812, v0)                                            │

00:00:23 #1702 [Debug] > │ and closure9 () () : UH0 =                                                   │

00:00:23 #1703 [Debug] > │     let v0 : (unit -> UH0) = closure10()                                     │

00:00:23 #1704 [Debug] > │     UH0_0(10.077531599826058, v0)                                            │

00:00:23 #1705 [Debug] > │ and closure8 () () : UH0 =                                                   │

00:00:23 #1706 [Debug] > │     let v0 : (unit -> UH0) = closure9()                                      │

00:00:23 #1707 [Debug] > │     UH0_0(9.62084761372258, v0)                                              │

00:00:23 #1708 [Debug] > │ and closure7 () () : UH0 =                                                   │

00:00:23 #1709 [Debug] > │     let v0 : (unit -> UH0) = closure8()                                      │

00:00:23 #1710 [Debug] > │     UH0_0(9.052781056066443, v0)                                             │

00:00:23 #1711 [Debug] > │ and closure6 () () : UH0 =                                                   │

00:00:23 #1712 [Debug] > │     let v0 : (unit -> UH0) = closure7()                                      │

00:00:23 #1713 [Debug] > │     UH0_0(8.357635347880503, v0)                                             │

00:00:23 #1714 [Debug] > │ and closure5 () () : UH0 =                                                   │

00:00:23 #1715 [Debug] > │     let v0 : (unit -> UH0) = closure6()                                      │

00:00:23 #1716 [Debug] > │     UH0_0(7.523376447621674, v0)                                             │

00:00:23 #1717 [Debug] > │ and closure4 () () : UH0 =                                                   │

00:00:23 #1718 [Debug] > │     let v0 : (unit -> UH0) = closure5()                                      │

00:00:23 #1719 [Debug] > │     UH0_0(6.544529054818572, v0)                                             │

00:00:23 #1720 [Debug] > │ and closure3 () () : UH0 =                                                   │

00:00:23 #1721 [Debug] > │     let v0 : (unit -> UH0) = closure4()                                      │

00:00:23 #1722 [Debug] > │     UH0_0(5.424976512996006, v0)                                             │

00:00:23 #1723 [Debug] > │ and closure2 () () : UH0 =                                                   │

00:00:23 #1724 [Debug] > │     let v0 : (unit -> UH0) = closure3()                                      │

00:00:23 #1725 [Debug] > │     UH0_0(4.179852321428571, v0)                                             │

00:00:23 #1726 [Debug] > │ and closure1 () () : UH0 =                                                   │

00:00:23 #1727 [Debug] > │     let v0 : (unit -> UH0) = closure2()                                      │

00:00:23 #1728 [Debug] > │     UH0_0(2.835714285714286, v0)                                             │

00:00:23 #1729 [Debug] > │ and closure0 () () : UH0 =                                                   │

00:00:23 #1730 [Debug] > │     let v0 : (unit -> UH0) = closure1()                                      │

00:00:23 #1731 [Debug] > │     UH0_0(1.4285714285714286, v0)                                            │

00:00:23 #1732 [Debug] > │ and method3 (v0 : float, v1 : UH0) : US0 =                                   │

00:00:23 #1733 [Debug] > │     match v1 with                                                            │

00:00:23 #1734 [Debug] > │     | UH0_0(v2, v3) -> (* StreamCons *)                                      │

00:00:23 #1735 [Debug] > │         let v4 : bool = v0 <= 0.0                                            │

00:00:23 #1736 [Debug] > │         if v4 then                                                           │

00:00:23 #1737 [Debug] > │             US0_1(v2)                                                        │

00:00:23 #1738 [Debug] > │         else                                                                 │

00:00:23 #1739 [Debug] > │             let v6 : float = v0 - 1.0                                        │

00:00:23 #1740 [Debug] > │             let v7 : UH0 = v3 ()                                             │

00:00:23 #1741 [Debug] > │             method3(v6, v7)                                                  │

00:00:23 #1742 [Debug] > │     | UH0_1 -> (* StreamNil *)                                               │

00:00:23 #1743 [Debug] > │         US0_0                                                                │

00:00:23 #1744 [Debug] > │ and method0 () : struct (string * string * string * (struct (string * (float │

00:00:23 #1745 [Debug] > │ []) * (float [])) [])) =                                                     │

00:00:23 #1746 [Debug] > │     let v0 : (float []) = Array.zeroCreate<float> (121)                      │

00:00:23 #1747 [Debug] > │     let v1 : Mut0 = {l0 = 0} : Mut0                                          │

00:00:23 #1748 [Debug] > │     while method1(v1) do                                                     │

00:00:23 #1749 [Debug] > │         let v3 : int32 = v1.l0                                               │

00:00:23 #1750 [Debug] > │         let v4 : float = float v3                                            │

00:00:23 #1751 [Debug] > │         let v5 : float = 0.5 * v4                                            │

00:00:23 #1752 [Debug] > │         v0.[int v3] <- v5                                                    │

00:00:23 #1753 [Debug] > │         let v6 : int32 = v3 + 1                                              │

00:00:23 #1754 [Debug] > │         v1.l0 <- v6                                                          │

00:00:23 #1755 [Debug] > │         ()                                                                   │

00:00:23 #1756 [Debug] > │     let v7 : int32 = v0.Length                                               │

00:00:23 #1757 [Debug] > │     let v8 : (float []) = Array.zeroCreate<float> (v7)                       │

00:00:23 #1758 [Debug] > │     let v9 : Mut0 = {l0 = 0} : Mut0                                          │

00:00:23 #1759 [Debug] > │     while method2(v7, v9) do                                                 │

00:00:23 #1760 [Debug] > │         let v11 : int32 = v9.l0                                              │

00:00:23 #1761 [Debug] > │         let v12 : float = v0.[int v11]                                       │

00:00:23 #1762 [Debug] > │         let v13 : float = round v12                                          │

00:00:23 #1763 [Debug] > │         let v14 : float =  -v13                                              │

00:00:23 #1764 [Debug] > │         let v15 : bool = v13 >= v14                                          │

00:00:23 #1765 [Debug] > │         let v16 : float =                                                    │

00:00:23 #1766 [Debug] > │             if v15 then                                                      │

00:00:23 #1767 [Debug] > │                 v13                                                          │

00:00:23 #1768 [Debug] > │             else                                                             │

00:00:23 #1769 [Debug] > │                 v14                                                          │

00:00:23 #1770 [Debug] > │         let v17 : float = 0.0                                                │

00:00:23 #1771 [Debug] > │         let v18 : (unit -> UH0) = closure0()                                 │

00:00:23 #1772 [Debug] > │         let v19 : UH0 = UH0_0(v17, v18)                                      │

00:00:23 #1773 [Debug] > │         let v20 : US0 = method3(v16, v19)                                    │

00:00:23 #1774 [Debug] > │         let v23 : float =                                                    │

00:00:23 #1775 [Debug] > │             match v20 with                                                   │

00:00:23 #1776 [Debug] > │             | US0_0 -> (* None *)                                            │

00:00:23 #1777 [Debug] > │                 0.0                                                          │

00:00:23 #1778 [Debug] > │             | US0_1(v21) -> (* Some *)                                       │

00:00:23 #1779 [Debug] > │                 v21                                                          │

00:00:23 #1780 [Debug] > │         v8.[int v11] <- v23                                                  │

00:00:23 #1781 [Debug] > │         let v24 : int32 = v11 + 1                                            │

00:00:23 #1782 [Debug] > │         v9.l0 <- v24                                                         │

00:00:23 #1783 [Debug] > │         ()                                                                   │

00:00:23 #1784 [Debug] > │     let v25 : string = "velocity of bike (m/s)"                              │

00:00:23 #1785 [Debug] > │     let v26 : (struct (string * (float []) * (float [])) []) = [|struct      │

00:00:23 #1786 [Debug] > │ (v25, v0, v8)|]                                                              │

00:00:23 #1787 [Debug] > │     let v27 : string = "bike velocity"                                       │

00:00:23 #1788 [Debug] > │     let v28 : string = "time (s)"                                            │

00:00:23 #1789 [Debug] > │     let v29 : string = ""                                                    │

00:00:23 #1790 [Debug] > │     struct (v27, v28, v29, v26)                                              │

00:00:23 #1791 [Debug] > │ method0()                                                                    │

00:00:23 #1792 [Debug] > │                                                                              │

00:00:23 #1793 [Debug] > │                                                                              │

00:00:23 #1794 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:23 #1795 [Debug] >

00:00:23 #1796 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:23 #1797 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:23 #1798 [Debug] > │ ## velocity_ftv                                                              │

00:00:23 #1799 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:23 #1800 [Debug] >

00:00:23 #1801 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:23 #1802 [Debug] > inl newton_second_tv m fs (t, v0) =

00:00:23 #1803 [Debug] >     inl f_net = fs |> listm.map (fun f => f (t, v0)) |> listm'.sum

00:00:23 #1804 [Debug] >     inl acc = f_net / m

00:00:23 #1805 [Debug] >     1, acc

00:00:23 #1806 [Debug] >

00:00:23 #1807 [Debug] > inl update_tv dt m fs (t, v0) =

00:00:23 #1808 [Debug] >     inl dtdt, dvdt = newton_second_tv m fs (t, v0)

00:00:23 #1809 [Debug] >     t + dtdt * dt, v0 + dvdt * dt

00:00:23 #1810 [Debug] >

00:00:23 #1811 [Debug] > inl velocity_ftv dt m tv0 fs t =

00:00:23 #1812 [Debug] >     stream.iterate (join update_tv dt m fs) tv0

00:00:23 #1813 [Debug] >     |> stream.try_item (t / dt |> math.round |> abs)

00:00:23 #1814 [Debug] >     |> optionm.map snd

00:00:23 #1815 [Debug] >     |> optionm'.default_value 0

00:00:23 #1816 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-4648-4824-4960ae96c838\main.spi

00:00:23 #1817 [Debug] >

00:00:23 #1818 [Debug] > ╭─[ 179.77ms - stdout ]────────────────────────────────────────────────────────╮

00:00:23 #1819 [Debug] > │ ()                                                                           │

00:00:23 #1820 [Debug] > │                                                                              │

00:00:23 #1821 [Debug] > │                                                                              │

00:00:23 #1822 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:23 #1823 [Debug] >

00:00:23 #1824 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:23 #1825 [Debug] > // // test

00:00:23 #1826 [Debug] >

00:00:23 #1827 [Debug] > inl x = am'.init_series 0 100 0.1

00:00:23 #1828 [Debug] > inl y =

00:00:23 #1829 [Debug] >     x

00:00:23 #1830 [Debug] >     |> am.map (

00:00:23 #1831 [Debug] >         velocity_ftv 0.1 20 (dyn (0, 0)) [[ fun (t, _) => pedal_coast t; fun (_,

00:00:23 #1832 [Debug] > v) => f_air 2 1.225 0.5 v ]]

00:00:23 #1833 [Debug] >     )

00:00:23 #1834 [Debug] > "pedaling and coasting with air", "time (s)", "", ;[[ "velocity of bike (m/s)",

00:00:23 #1835 [Debug] > x, y ]]

00:00:23 #1836 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-4666-6614-6df75d02f17d\main.spi

00:00:23 #1837 [Debug] >

00:00:23 #1838 [Debug] > ╭─[ 468.24ms - return value ]──────────────────────────────────────────────────╮

00:00:23 #1839 [Debug] > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │

00:00:23 #1840 [Debug] > │ xmlns="http://www.w3.org/2000/svg">                                          │

00:00:23 #1841 [Debug] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │

00:00:23 #1842 [Debug] > │ stroke="none"/>                                                              │

00:00:23 #1843 [Debug] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │

00:00:23 #1844 [Debug] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │

00:00:23 #1845 [Debug] > │ fill="#FFFFFF">                                                              │

00:00:23 #1846 [Debug] > │ pedaling and coasting with air                                               │

00:00:23 #1847 [Debug] > │ </text>                                                                      │

00:00:23 #1848 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │

00:00:23 #1849 [Debug] > │ y2="75"/>                                                                    │

00:00:23 #1850 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │

00:00:23 #1851 [Debug] > │ y2="75"/>                                                                    │

00:00:23 #1852 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │

00:00:23 #1853 [Debug] > │ y2="75"/>                                                                    │

00:00:23 #1854 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │

00:00:23 #1855 [Debug] > │ y2="75"/>                                                                    │

00:00:23 #1856 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x...                     │

00:00:23 #1857 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:23 #1858 [Debug] >

00:00:23 #1859 [Debug] > ╭─[ 478.77ms - stdout ]────────────────────────────────────────────────────────╮

00:00:23 #1860 [Debug] > │ type Mut0 = {mutable l0 : int32}                                             │

00:00:23 #1861 [Debug] > │ and UH0 =                                                                    │

00:00:23 #1862 [Debug] > │     | UH0_0 of float * float * (unit -> UH0)                                 │

00:00:23 #1863 [Debug] > │     | UH0_1                                                                  │

00:00:23 #1864 [Debug] > │ and [<Struct>] US0 =                                                         │

00:00:23 #1865 [Debug] > │     | US0_0                                                                  │

00:00:23 #1866 [Debug] > │     | US0_1 of f1_0 : float * f1_1 : float                                   │

00:00:23 #1867 [Debug] > │ and [<Struct>] US1 =                                                         │

00:00:23 #1868 [Debug] > │     | US1_0                                                                  │

00:00:23 #1869 [Debug] > │     | US1_1 of f1_0 : float                                                  │

00:00:23 #1870 [Debug] > │ let rec method1 (v0 : Mut0) : bool =                                         │

00:00:23 #1871 [Debug] > │     let v1 : int32 = v0.l0                                                   │

00:00:23 #1872 [Debug] > │     let v2 : bool = v1 < 1001                                                │

00:00:23 #1873 [Debug] > │     v2                                                                       │

00:00:23 #1874 [Debug] > │ and method2 (v0 : int32, v1 : Mut0) : bool =                                 │

00:00:23 #1875 [Debug] > │     let v2 : int32 = v1.l0                                                   │

00:00:23 #1876 [Debug] > │     let v3 : bool = v2 < v0                                                  │

00:00:23 #1877 [Debug] > │     v3                                                                       │

00:00:23 #1878 [Debug] > │ and closure0 () struct (v0 : float, v1 : float) : struct (float * float) =   │

00:00:23 #1879 [Debug] > │     let v2 : float =  -v1                                                    │

00:00:23 #1880 [Debug] > │     let v3 : bool = v1 >= v2                                                 │

00:00:23 #1881 [Debug] > │     let v4 : float =                                                         │

00:00:23 #1882 [Debug] > │         if v3 then                                                           │

00:00:23 #1883 [Debug] > │             v1                                                               │

00:00:23 #1884 [Debug] > │         else                                                                 │

00:00:23 #1885 [Debug] > │             v2                                                               │

00:00:23 #1886 [Debug] > │     let v5 : float = -1.225 * v4                                             │

00:00:23 #1887 [Debug] > │     let v6 : float = v5 * v1                                                 │

00:00:23 #1888 [Debug] > │     let v7 : float = v6 / 2.0                                                │

00:00:23 #1889 [Debug] > │     let v8 : float = v0 / 20.0                                               │

00:00:23 #1890 [Debug] > │     let v9 : int32 = int32 v8                                                │

00:00:23 #1891 [Debug] > │     let v10 : float = float v9                                               │

00:00:23 #1892 [Debug] > │     let v11 : float = v10 * 20.0                                             │

00:00:23 #1893 [Debug] > │     let v12 : float = v0 - v11                                               │

00:00:23 #1894 [Debug] > │     let v13 : bool = v12 > 0.0                                               │

00:00:23 #1895 [Debug] > │     let v15 : bool =                                                         │

00:00:23 #1896 [Debug] > │         if v13 then                                                          │

00:00:23 #1897 [Debug] > │             let v14 : bool = v12 < 10.0                                      │

00:00:23 #1898 [Debug] > │             v14                                                              │

00:00:23 #1899 [Debug] > │         else                                                                 │

00:00:23 #1900 [Debug] > │             false                                                            │

00:00:23 #1901 [Debug] > │     let v16 : float =                                                        │

00:00:23 #1902 [Debug] > │         if v15 then                                                          │

00:00:23 #1903 [Debug] > │             10.0                                                             │

00:00:23 #1904 [Debug] > │         else                                                                 │

00:00:23 #1905 [Debug] > │             0.0                                                              │

00:00:23 #1906 [Debug] > │     let v17 : float = v16 + v7                                               │

00:00:23 #1907 [Debug] > │     let v18 : float = v17 / 20.0                                             │

00:00:23 #1908 [Debug] > │     let v19 : float = v0 + 0.1                                               │

00:00:23 #1909 [Debug] > │     let v20 : float = v18 * 0.1                                              │

00:00:23 #1910 [Debug] > │     let v21 : float = v1 + v20                                               │

00:00:23 #1911 [Debug] > │     struct (v19, v21)                                                        │

00:00:23 #1912 [Debug] > │ and method3 () : (struct (float * float) -> struct (float * float)) =        │

00:00:23 #1913 [Debug] > │     closure0()                                                               │

00:00:23 #1914 [Debug] > │ and closure1 (v0 : (struct (float * float) -> struct (float * float)), v1 :  │

00:00:23 #1915 [Debug] > │ float, v2 : float, v3 : float, v4 : float) () : UH0 =                        │

00:00:23 #1916 [Debug] > │     let struct (v5 : float, v6 : float) = v0 struct (v3, v4)                 │

00:00:23 #1917 [Debug] > │     let v7 : (unit -> UH0) = closure1(v0, v1, v2, v5, v6)                    │

00:00:23 #1918 [Debug] > │     UH0_0(v3, v4, v7)                                                        │

00:00:23 #1919 [Debug] > │ and method4 (v0 : float, v1 : UH0) : US0 =                                   │

00:00:23 #1920 [Debug] > │     match v1 with                                                            │

00:00:23 #1921 [Debug] > │     | UH0_0(v2, v3, v4) -> (* StreamCons *)                                  │

00:00:23 #1922 [Debug] > │         let v5 : bool = v0 <= 0.0                                            │

00:00:23 #1923 [Debug] > │         if v5 then                                                           │

00:00:23 #1924 [Debug] > │             US0_1(v2, v3)                                                    │

00:00:23 #1925 [Debug] > │         else                                                                 │

00:00:23 #1926 [Debug] > │             let v7 : float = v0 - 1.0                                        │

00:00:23 #1927 [Debug] > │             let v8 : UH0 = v4 ()                                             │

00:00:23 #1928 [Debug] > │             method4(v7, v8)                                                  │

00:00:23 #1929 [Debug] > │     | UH0_1 -> (* StreamNil *)                                               │

00:00:23 #1930 [Debug] > │         US0_0                                                                │

00:00:23 #1931 [Debug] > │ and method0 () : struct (string * string * string * (struct (string * (float │

00:00:23 #1932 [Debug] > │ []) * (float [])) [])) =                                                     │

00:00:23 #1933 [Debug] > │     let v0 : (float []) = Array.zeroCreate<float> (1001)                     │

00:00:23 #1934 [Debug] > │     let v1 : Mut0 = {l0 = 0} : Mut0                                          │

00:00:23 #1935 [Debug] > │     while method1(v1) do                                                     │

00:00:23 #1936 [Debug] > │         let v3 : int32 = v1.l0                                               │

00:00:23 #1937 [Debug] > │         let v4 : float = float v3                                            │

00:00:23 #1938 [Debug] > │         let v5 : float = 0.1 * v4                                            │

00:00:23 #1939 [Debug] > │         v0.[int v3] <- v5                                                    │

00:00:23 #1940 [Debug] > │         let v6 : int32 = v3 + 1                                              │

00:00:23 #1941 [Debug] > │         v1.l0 <- v6                                                          │

00:00:23 #1942 [Debug] > │         ()                                                                   │

00:00:23 #1943 [Debug] > │     let v7 : float = 0.0                                                     │

00:00:23 #1944 [Debug] > │     let v8 : float = 0.0                                                     │

00:00:23 #1945 [Debug] > │     let v9 : int32 = v0.Length                                               │

00:00:23 #1946 [Debug] > │     let v10 : (float []) = Array.zeroCreate<float> (v9)                      │

00:00:23 #1947 [Debug] > │     let v11 : Mut0 = {l0 = 0} : Mut0                                         │

00:00:23 #1948 [Debug] > │     while method2(v9, v11) do                                                │

00:00:23 #1949 [Debug] > │         let v13 : int32 = v11.l0                                             │

00:00:23 #1950 [Debug] > │         let v14 : float = v0.[int v13]                                       │

00:00:23 #1951 [Debug] > │         let v15 : (struct (float * float) -> struct (float * float)) =       │

00:00:23 #1952 [Debug] > │ method3()                                                                    │

00:00:23 #1953 [Debug] > │         let struct (v16 : float, v17 : float) = v15 struct (v7, v8)          │

00:00:23 #1954 [Debug] > │         let v18 : float = v14 / 0.1                                          │

00:00:23 #1955 [Debug] > │         let v19 : float = round v18                                          │

00:00:23 #1956 [Debug] > │         let v20 : float =  -v19                                              │

00:00:23 #1957 [Debug] > │         let v21 : bool = v19 >= v20                                          │

00:00:23 #1958 [Debug] > │         let v22 : float =                                                    │

00:00:23 #1959 [Debug] > │             if v21 then                                                      │

00:00:23 #1960 [Debug] > │                 v19                                                          │

00:00:23 #1961 [Debug] > │             else                                                             │

00:00:23 #1962 [Debug] > │                 v20                                                          │

00:00:23 #1963 [Debug] > │         let v23 : (unit -> UH0) = closure1(v15, v7, v8, v16, v17)            │

00:00:23 #1964 [Debug] > │         let v24 : UH0 = UH0_0(v7, v8, v23)                                   │

00:00:23 #1965 [Debug] > │         let v25 : US0 = method4(v22, v24)                                    │

00:00:23 #1966 [Debug] > │         let v31 : US1 =                                                      │

00:00:23 #1967 [Debug] > │             match v25 with                                                   │

00:00:23 #1968 [Debug] > │             | US0_0 -> (* None *)                                            │

00:00:23 #1969 [Debug] > │                 US1_0                                                        │

00:00:23 #1970 [Debug] > │             | US0_1(v26, v27) -> (* Some *)                                  │

00:00:23 #1971 [Debug] > │                 US1_1(v27)                                                   │

00:00:23 #1972 [Debug] > │         let v34 : float =                                                    │

00:00:23 #1973 [Debug] > │             match v31 with                                                   │

00:00:23 #1974 [Debug] > │             | US1_0 -> (* None *)                                            │

00:00:23 #1975 [Debug] > │                 0.0                                                          │

00:00:23 #1976 [Debug] > │             | US1_1(v32) -> (* Some *)                                       │

00:00:23 #1977 [Debug] > │                 v32                                                          │

00:00:23 #1978 [Debug] > │         v10.[int v13] <- v34                                                 │

00:00:23 #1979 [Debug] > │         let v35 : int32 = v13 + 1                                            │

00:00:23 #1980 [Debug] > │         v11.l0 <- v35                                                        │

00:00:23 #1981 [Debug] > │         ()                                                                   │

00:00:23 #1982 [Debug] > │     let v36 : string = "velocity of bike (m/s)"                              │

00:00:23 #1983 [Debug] > │     let v37 : (struct (string * (float []) * (float [])) []) = [|struct      │

00:00:23 #1984 [Debug] > │ (v36, v0, v10)|]                                                             │

00:00:23 #1985 [Debug] > │     let v38 : string = "pedaling and coasting with air"                      │

00:00:23 #1986 [Debug] > │     let v39 : string = "time (s)"                                            │

00:00:23 #1987 [Debug] > │     let v40 : string = ""                                                    │

00:00:23 #1988 [Debug] > │     struct (v38, v39, v40, v37)                                              │

00:00:23 #1989 [Debug] > │ method0()                                                                    │

00:00:23 #1990 [Debug] > │                                                                              │

00:00:23 #1991 [Debug] > │                                                                              │

00:00:23 #1992 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:23 #1993 [Debug] >

00:00:23 #1994 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:23 #1995 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:23 #1996 [Debug] > │ ## velocity_ftxv                                                             │

00:00:23 #1997 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:23 #1998 [Debug] >

00:00:23 #1999 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:23 #2000 [Debug] > nominal state_1d = time * position * velocity

00:00:23 #2001 [Debug] > nominal rrr = f64 * f64 * f64

00:00:23 #2002 [Debug] >

00:00:23 #2003 [Debug] > inl newton_second_1d m fs (state_1d (t, x0, v0)) =

00:00:23 #2004 [Debug] >     inl f_net = fs |> listm.map (fun f => f (state_1d (t, x0, v0))) |>

00:00:23 #2005 [Debug] > listm'.sum

00:00:23 #2006 [Debug] >     inl acc = f_net / m

00:00:23 #2007 [Debug] >     rrr (1f64, v0, acc)

00:00:23 #2008 [Debug] >

00:00:23 #2009 [Debug] > inl euler_1d dt deriv (state_1d (t0, x0, v0) as t) =

00:00:23 #2010 [Debug] >     inl (rrr (_, _, dvdt)) = deriv t

00:00:23 #2011 [Debug] >     inl t1 = t0 + dt

00:00:23 #2012 [Debug] >     inl x1 = x0 + v0 * dt

00:00:23 #2013 [Debug] >     inl v1 = v0 + dvdt * dt

00:00:23 #2014 [Debug] >     state_1d (t1, x1, v1)

00:00:23 #2015 [Debug] >

00:00:23 #2016 [Debug] > inl update_txv dt m fs =

00:00:23 #2017 [Debug] >     newton_second_1d m fs |> euler_1d dt

00:00:23 #2018 [Debug] >

00:00:23 #2019 [Debug] > inl states_txv dt m txv0 fs =

00:00:23 #2020 [Debug] >     seq.iterate_ (update_txv dt m fs) txv0

00:00:23 #2021 [Debug] >

00:00:23 #2022 [Debug] > inl velocity_1d sts t =

00:00:23 #2023 [Debug] >     inl (state_1d (t0, _, _)) = sts 0

00:00:23 #2024 [Debug] >     inl (state_1d (t1, _, _)) = sts 1

00:00:23 #2025 [Debug] >     inl dt = t1 - t0

00:00:23 #2026 [Debug] >     inl num_steps = t / dt |> math.round |> abs

00:00:23 #2027 [Debug] >     inl (state_1d (_, _, v0)) = sts num_steps

00:00:23 #2028 [Debug] >     v0

00:00:23 #2029 [Debug] >

00:00:23 #2030 [Debug] > inl velocity_ftxv dt m txv0 fs =

00:00:23 #2031 [Debug] >     states_txv dt m txv0 fs |> velocity_1d

00:00:23 #2032 [Debug] >

00:00:23 #2033 [Debug] > inl position_1d sts t =

00:00:23 #2034 [Debug] >     inl (state_1d (t0, _, _)) = sts 0

00:00:23 #2035 [Debug] >     inl (state_1d (t1, _, _)) = sts 1

00:00:23 #2036 [Debug] >     inl dt = t1 - t0

00:00:23 #2037 [Debug] >     inl num_steps = t / dt |> math.round |> abs

00:00:23 #2038 [Debug] >     inl (state_1d (_, x0, _)) = sts num_steps

00:00:23 #2039 [Debug] >     x0

00:00:23 #2040 [Debug] >

00:00:23 #2041 [Debug] > inl position_ftxv dt m txv0 fs =

00:00:23 #2042 [Debug] >     states_txv dt m txv0 fs |> position_1d

00:00:23 #2043 [Debug] >

00:00:23 #2044 [Debug] > inl spring_force k (state_1d (_, x0, _)) =

00:00:23 #2045 [Debug] >     -k * x0

00:00:24 #2046 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-4719-1968-1096379e5c58\main.spi

00:00:24 #2047 [Debug] >

00:00:24 #2048 [Debug] > ╭─[ 187.91ms - stdout ]────────────────────────────────────────────────────────╮

00:00:24 #2049 [Debug] > │ ()                                                                           │

00:00:24 #2050 [Debug] > │                                                                              │

00:00:24 #2051 [Debug] > │                                                                              │

00:00:24 #2052 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:24 #2053 [Debug] >

00:00:24 #2054 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:24 #2055 [Debug] > // // test

00:00:24 #2056 [Debug] >

00:00:24 #2057 [Debug] > inl damped_ho_forces () =

00:00:24 #2058 [Debug] >     [[

00:00:24 #2059 [Debug] >         spring_force 0.8

00:00:24 #2060 [Debug] >         fun (state_1d (_, _, v0)) => f_air 2 1.225 (pi * math.square 0.02) v0

00:00:24 #2061 [Debug] >         fun _ => -0.0027 * 9.80665

00:00:24 #2062 [Debug] >     ]]

00:00:24 #2063 [Debug] >

00:00:24 #2064 [Debug] > inl damped_ho_states () =

00:00:24 #2065 [Debug] >     states_txv 0.001 0.0027 (state_1d (0, 0.1, 0)) (damped_ho_forces ())

00:00:24 #2066 [Debug] >

00:00:24 #2067 [Debug] > inl pingpong_position t =

00:00:24 #2068 [Debug] >     position_ftxv 0.001 0.0027 (state_1d (0, 0.1, 0)) (damped_ho_forces ()) t

00:00:24 #2069 [Debug] >

00:00:24 #2070 [Debug] > inl x : a _ f64 = am'.init_series 0 3 0.01

00:00:24 #2071 [Debug] > inl y = x |> am.map pingpong_position

00:00:24 #2072 [Debug] > "ping pong ball on a slinky", "time (s)", "", ;[[ "position (m)", x, y ]]

00:00:24 #2073 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-4738-3828-386973f1bfb4\main.spi

00:00:24 #2074 [Debug] >

00:00:24 #2075 [Debug] > ╭─[ 267.13ms - return value ]──────────────────────────────────────────────────╮

00:00:24 #2076 [Debug] > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │

00:00:24 #2077 [Debug] > │ xmlns="http://www.w3.org/2000/svg">                                          │

00:00:24 #2078 [Debug] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │

00:00:24 #2079 [Debug] > │ stroke="none"/>                                                              │

00:00:24 #2080 [Debug] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │

00:00:24 #2081 [Debug] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │

00:00:24 #2082 [Debug] > │ fill="#FFFFFF">                                                              │

00:00:24 #2083 [Debug] > │ ping pong ball on a slinky                                                   │

00:00:24 #2084 [Debug] > │ </text>                                                                      │

00:00:24 #2085 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="61" y1="424" x2="61" │

00:00:24 #2086 [Debug] > │ y2="75"/>                                                                    │

00:00:24 #2087 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │

00:00:24 #2088 [Debug] > │ y2="75"/>                                                                    │

00:00:24 #2089 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="78" y1="424" x2="78" │

00:00:24 #2090 [Debug] > │ y2="75"/>                                                                    │

00:00:24 #2091 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="86" y1="424" x2="86" │

00:00:24 #2092 [Debug] > │ y2="75"/>                                                                    │

00:00:24 #2093 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="9...                 │

00:00:24 #2094 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:24 #2095 [Debug] >

00:00:24 #2096 [Debug] > ╭─[ 278.99ms - stdout ]────────────────────────────────────────────────────────╮

00:00:24 #2097 [Debug] > │ type Mut0 = {mutable l0 : int32}                                             │

00:00:24 #2098 [Debug] > │ let rec method1 (v0 : Mut0) : bool =                                         │

00:00:24 #2099 [Debug] > │     let v1 : int32 = v0.l0                                                   │

00:00:24 #2100 [Debug] > │     let v2 : bool = v1 < 301                                                 │

00:00:24 #2101 [Debug] > │     v2                                                                       │

00:00:24 #2102 [Debug] > │ and method2 (v0 : int32, v1 : Mut0) : bool =                                 │

00:00:24 #2103 [Debug] > │     let v2 : int32 = v1.l0                                                   │

00:00:24 #2104 [Debug] > │     let v3 : bool = v2 < v0                                                  │

00:00:24 #2105 [Debug] > │     v3                                                                       │

00:00:24 #2106 [Debug] > │ and method3 (v0 : float, v1 : float, v2 : float, v3 : float) : struct (float │

00:00:24 #2107 [Debug] > │ * float * float) =                                                           │

00:00:24 #2108 [Debug] > │     let v4 : bool = v3 <= 0.0                                                │

00:00:24 #2109 [Debug] > │     if v4 then                                                               │

00:00:24 #2110 [Debug] > │         struct (v0, v1, v2)                                                  │

00:00:24 #2111 [Debug] > │     else                                                                     │

00:00:24 #2112 [Debug] > │         let v5 : float =  -v2                                                │

00:00:24 #2113 [Debug] > │         let v6 : bool = v2 >= v5                                             │

00:00:24 #2114 [Debug] > │         let v7 : float =                                                     │

00:00:24 #2115 [Debug] > │             if v6 then                                                       │

00:00:24 #2116 [Debug] > │                 v2                                                           │

00:00:24 #2117 [Debug] > │             else                                                             │

00:00:24 #2118 [Debug] > │                 v5                                                           │

00:00:24 #2119 [Debug] > │         let v8 : float = -0.0030787608005179976 * v7                         │

00:00:24 #2120 [Debug] > │         let v9 : float = v8 * v2                                             │

00:00:24 #2121 [Debug] > │         let v10 : float = v9 / 2.0                                           │

00:00:24 #2122 [Debug] > │         let v11 : float = -0.8 * v1                                          │

00:00:24 #2123 [Debug] > │         let v12 : float = v11 + v10                                          │

00:00:24 #2124 [Debug] > │         let v13 : float = v12 + -0.026477955                                 │

00:00:24 #2125 [Debug] > │         let v14 : float = v13 / 0.0027                                       │

00:00:24 #2126 [Debug] > │         let v15 : float = v0 + 0.001                                         │

00:00:24 #2127 [Debug] > │         let v16 : float = v2 * 0.001                                         │

00:00:24 #2128 [Debug] > │         let v17 : float = v1 + v16                                           │

00:00:24 #2129 [Debug] > │         let v18 : float = v14 * 0.001                                        │

00:00:24 #2130 [Debug] > │         let v19 : float = v2 + v18                                           │

00:00:24 #2131 [Debug] > │         let v20 : float = v3 - 1.0                                           │

00:00:24 #2132 [Debug] > │         method3(v15, v17, v19, v20)                                          │

00:00:24 #2133 [Debug] > │ and method0 () : struct (string * string * string * (struct (string * (float │

00:00:24 #2134 [Debug] > │ []) * (float [])) [])) =                                                     │

00:00:24 #2135 [Debug] > │     let v0 : (float []) = Array.zeroCreate<float> (301)                      │

00:00:24 #2136 [Debug] > │     let v1 : Mut0 = {l0 = 0} : Mut0                                          │

00:00:24 #2137 [Debug] > │     while method1(v1) do                                                     │

00:00:24 #2138 [Debug] > │         let v3 : int32 = v1.l0                                               │

00:00:24 #2139 [Debug] > │         let v4 : float = float v3                                            │

00:00:24 #2140 [Debug] > │         let v5 : float = 0.01 * v4                                           │

00:00:24 #2141 [Debug] > │         v0.[int v3] <- v5                                                    │

00:00:24 #2142 [Debug] > │         let v6 : int32 = v3 + 1                                              │

00:00:24 #2143 [Debug] > │         v1.l0 <- v6                                                          │

00:00:24 #2144 [Debug] > │         ()                                                                   │

00:00:24 #2145 [Debug] > │     let v7 : int32 = v0.Length                                               │

00:00:24 #2146 [Debug] > │     let v8 : (float []) = Array.zeroCreate<float> (v7)                       │

00:00:24 #2147 [Debug] > │     let v9 : Mut0 = {l0 = 0} : Mut0                                          │

00:00:24 #2148 [Debug] > │     while method2(v7, v9) do                                                 │

00:00:24 #2149 [Debug] > │         let v11 : int32 = v9.l0                                              │

00:00:24 #2150 [Debug] > │         let v12 : float = v0.[int v11]                                       │

00:00:24 #2151 [Debug] > │         let v13 : float = 0.0                                                │

00:00:24 #2152 [Debug] > │         let v14 : float = 0.1                                                │

00:00:24 #2153 [Debug] > │         let v15 : float = 0.0                                                │

00:00:24 #2154 [Debug] > │         let v16 : float = 0.0                                                │

00:00:24 #2155 [Debug] > │         let struct (v17 : float, v18 : float, v19 : float) = method3(v13,    │

00:00:24 #2156 [Debug] > │ v14, v15, v16)                                                               │

00:00:24 #2157 [Debug] > │         let v20 : float = 0.0                                                │

00:00:24 #2158 [Debug] > │         let v21 : float = 0.1                                                │

00:00:24 #2159 [Debug] > │         let v22 : float = 0.0                                                │

00:00:24 #2160 [Debug] > │         let v23 : float = 1.0                                                │

00:00:24 #2161 [Debug] > │         let struct (v24 : float, v25 : float, v26 : float) = method3(v20,    │

00:00:24 #2162 [Debug] > │ v21, v22, v23)                                                               │

00:00:24 #2163 [Debug] > │         let v27 : float = v24 - v17                                          │

00:00:24 #2164 [Debug] > │         let v28 : float = v12 / v27                                          │

00:00:24 #2165 [Debug] > │         let v29 : float = round v28                                          │

00:00:24 #2166 [Debug] > │         let v30 : float =  -v29                                              │

00:00:24 #2167 [Debug] > │         let v31 : bool = v29 >= v30                                          │

00:00:24 #2168 [Debug] > │         let v32 : float =                                                    │

00:00:24 #2169 [Debug] > │             if v31 then                                                      │

00:00:24 #2170 [Debug] > │                 v29                                                          │

00:00:24 #2171 [Debug] > │             else                                                             │

00:00:24 #2172 [Debug] > │                 v30                                                          │

00:00:24 #2173 [Debug] > │         let v33 : float = 0.0                                                │

00:00:24 #2174 [Debug] > │         let v34 : float = 0.1                                                │

00:00:24 #2175 [Debug] > │         let v35 : float = 0.0                                                │

00:00:24 #2176 [Debug] > │         let struct (v36 : float, v37 : float, v38 : float) = method3(v33,    │

00:00:24 #2177 [Debug] > │ v34, v35, v32)                                                               │

00:00:24 #2178 [Debug] > │         v8.[int v11] <- v37                                                  │

00:00:24 #2179 [Debug] > │         let v39 : int32 = v11 + 1                                            │

00:00:24 #2180 [Debug] > │         v9.l0 <- v39                                                         │

00:00:24 #2181 [Debug] > │         ()                                                                   │

00:00:24 #2182 [Debug] > │     let v40 : string = "position (m)"                                        │

00:00:24 #2183 [Debug] > │     let v41 : (struct (string * (float []) * (float [])) []) = [|struct      │

00:00:24 #2184 [Debug] > │ (v40, v0, v8)|]                                                              │

00:00:24 #2185 [Debug] > │     let v42 : string = "ping pong ball on a slinky"                          │

00:00:24 #2186 [Debug] > │     let v43 : string = "time (s)"                                            │

00:00:24 #2187 [Debug] > │     let v44 : string = ""                                                    │

00:00:24 #2188 [Debug] > │     struct (v42, v43, v44, v41)                                              │

00:00:24 #2189 [Debug] > │ method0()                                                                    │

00:00:24 #2190 [Debug] > │                                                                              │

00:00:24 #2191 [Debug] > │                                                                              │

00:00:24 #2192 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:24 #2193 [Debug] >

00:00:24 #2194 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:24 #2195 [Debug] > // // test

00:00:24 #2196 [Debug] >

00:00:24 #2197 [Debug] > inl pingpong_velocity t =

00:00:24 #2198 [Debug] >     velocity_ftxv 0.001 0.0027 (state_1d (0, 0.1, 0)) (damped_ho_forces ()) t

00:00:24 #2199 [Debug] >

00:00:24 #2200 [Debug] > inl x = am'.init_series 0 3 0.01

00:00:24 #2201 [Debug] > inl y = x |> am.map pingpong_velocity

00:00:24 #2202 [Debug] > "ping pong ball on a slinky", "time (s)", "", ;[[ "velocity (m/s)", x, y ]]

00:00:24 #2203 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-4770-7038-76f854c9b074\main.spi

00:00:24 #2204 [Debug] >

00:00:24 #2205 [Debug] > ╭─[ 283.87ms - return value ]──────────────────────────────────────────────────╮

00:00:24 #2206 [Debug] > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │

00:00:24 #2207 [Debug] > │ xmlns="http://www.w3.org/2000/svg">                                          │

00:00:24 #2208 [Debug] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │

00:00:24 #2209 [Debug] > │ stroke="none"/>                                                              │

00:00:24 #2210 [Debug] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │

00:00:24 #2211 [Debug] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │

00:00:24 #2212 [Debug] > │ fill="#FFFFFF">                                                              │

00:00:24 #2213 [Debug] > │ ping pong ball on a slinky                                                   │

00:00:24 #2214 [Debug] > │ </text>                                                                      │

00:00:24 #2215 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="61" y1="424" x2="61" │

00:00:24 #2216 [Debug] > │ y2="75"/>                                                                    │

00:00:24 #2217 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │

00:00:24 #2218 [Debug] > │ y2="75"/>                                                                    │

00:00:24 #2219 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="78" y1="424" x2="78" │

00:00:24 #2220 [Debug] > │ y2="75"/>                                                                    │

00:00:24 #2221 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="86" y1="424" x2="86" │

00:00:24 #2222 [Debug] > │ y2="75"/>                                                                    │

00:00:24 #2223 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="9...                 │

00:00:24 #2224 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:24 #2225 [Debug] >

00:00:24 #2226 [Debug] > ╭─[ 293.66ms - stdout ]────────────────────────────────────────────────────────╮

00:00:24 #2227 [Debug] > │ type Mut0 = {mutable l0 : int32}                                             │

00:00:24 #2228 [Debug] > │ let rec method1 (v0 : Mut0) : bool =                                         │

00:00:24 #2229 [Debug] > │     let v1 : int32 = v0.l0                                                   │

00:00:24 #2230 [Debug] > │     let v2 : bool = v1 < 301                                                 │

00:00:24 #2231 [Debug] > │     v2                                                                       │

00:00:24 #2232 [Debug] > │ and method2 (v0 : int32, v1 : Mut0) : bool =                                 │

00:00:24 #2233 [Debug] > │     let v2 : int32 = v1.l0                                                   │

00:00:24 #2234 [Debug] > │     let v3 : bool = v2 < v0                                                  │

00:00:24 #2235 [Debug] > │     v3                                                                       │

00:00:24 #2236 [Debug] > │ and method3 (v0 : float, v1 : float, v2 : float, v3 : float) : struct (float │

00:00:24 #2237 [Debug] > │ * float * float) =                                                           │

00:00:24 #2238 [Debug] > │     let v4 : bool = v3 <= 0.0                                                │

00:00:24 #2239 [Debug] > │     if v4 then                                                               │

00:00:24 #2240 [Debug] > │         struct (v0, v1, v2)                                                  │

00:00:24 #2241 [Debug] > │     else                                                                     │

00:00:24 #2242 [Debug] > │         let v5 : float =  -v2                                                │

00:00:24 #2243 [Debug] > │         let v6 : bool = v2 >= v5                                             │

00:00:24 #2244 [Debug] > │         let v7 : float =                                                     │

00:00:24 #2245 [Debug] > │             if v6 then                                                       │

00:00:24 #2246 [Debug] > │                 v2                                                           │

00:00:24 #2247 [Debug] > │             else                                                             │

00:00:24 #2248 [Debug] > │                 v5                                                           │

00:00:24 #2249 [Debug] > │         let v8 : float = -0.0030787608005179976 * v7                         │

00:00:24 #2250 [Debug] > │         let v9 : float = v8 * v2                                             │

00:00:24 #2251 [Debug] > │         let v10 : float = v9 / 2.0                                           │

00:00:24 #2252 [Debug] > │         let v11 : float = -0.8 * v1                                          │

00:00:24 #2253 [Debug] > │         let v12 : float = v11 + v10                                          │

00:00:24 #2254 [Debug] > │         let v13 : float = v12 + -0.026477955                                 │

00:00:24 #2255 [Debug] > │         let v14 : float = v13 / 0.0027                                       │

00:00:24 #2256 [Debug] > │         let v15 : float = v0 + 0.001                                         │

00:00:24 #2257 [Debug] > │         let v16 : float = v2 * 0.001                                         │

00:00:24 #2258 [Debug] > │         let v17 : float = v1 + v16                                           │

00:00:24 #2259 [Debug] > │         let v18 : float = v14 * 0.001                                        │

00:00:24 #2260 [Debug] > │         let v19 : float = v2 + v18                                           │

00:00:24 #2261 [Debug] > │         let v20 : float = v3 - 1.0                                           │

00:00:24 #2262 [Debug] > │         method3(v15, v17, v19, v20)                                          │

00:00:24 #2263 [Debug] > │ and method0 () : struct (string * string * string * (struct (string * (float │

00:00:24 #2264 [Debug] > │ []) * (float [])) [])) =                                                     │

00:00:24 #2265 [Debug] > │     let v0 : (float []) = Array.zeroCreate<float> (301)                      │

00:00:24 #2266 [Debug] > │     let v1 : Mut0 = {l0 = 0} : Mut0                                          │

00:00:24 #2267 [Debug] > │     while method1(v1) do                                                     │

00:00:24 #2268 [Debug] > │         let v3 : int32 = v1.l0                                               │

00:00:24 #2269 [Debug] > │         let v4 : float = float v3                                            │

00:00:24 #2270 [Debug] > │         let v5 : float = 0.01 * v4                                           │

00:00:24 #2271 [Debug] > │         v0.[int v3] <- v5                                                    │

00:00:24 #2272 [Debug] > │         let v6 : int32 = v3 + 1                                              │

00:00:24 #2273 [Debug] > │         v1.l0 <- v6                                                          │

00:00:24 #2274 [Debug] > │         ()                                                                   │

00:00:24 #2275 [Debug] > │     let v7 : int32 = v0.Length                                               │

00:00:24 #2276 [Debug] > │     let v8 : (float []) = Array.zeroCreate<float> (v7)                       │

00:00:24 #2277 [Debug] > │     let v9 : Mut0 = {l0 = 0} : Mut0                                          │

00:00:24 #2278 [Debug] > │     while method2(v7, v9) do                                                 │

00:00:24 #2279 [Debug] > │         let v11 : int32 = v9.l0                                              │

00:00:24 #2280 [Debug] > │         let v12 : float = v0.[int v11]                                       │

00:00:24 #2281 [Debug] > │         let v13 : float = 0.0                                                │

00:00:24 #2282 [Debug] > │         let v14 : float = 0.1                                                │

00:00:24 #2283 [Debug] > │         let v15 : float = 0.0                                                │

00:00:24 #2284 [Debug] > │         let v16 : float = 0.0                                                │

00:00:24 #2285 [Debug] > │         let struct (v17 : float, v18 : float, v19 : float) = method3(v13,    │

00:00:24 #2286 [Debug] > │ v14, v15, v16)                                                               │

00:00:24 #2287 [Debug] > │         let v20 : float = 0.0                                                │

00:00:24 #2288 [Debug] > │         let v21 : float = 0.1                                                │

00:00:24 #2289 [Debug] > │         let v22 : float = 0.0                                                │

00:00:24 #2290 [Debug] > │         let v23 : float = 1.0                                                │

00:00:24 #2291 [Debug] > │         let struct (v24 : float, v25 : float, v26 : float) = method3(v20,    │

00:00:24 #2292 [Debug] > │ v21, v22, v23)                                                               │

00:00:24 #2293 [Debug] > │         let v27 : float = v24 - v17                                          │

00:00:24 #2294 [Debug] > │         let v28 : float = v12 / v27                                          │

00:00:24 #2295 [Debug] > │         let v29 : float = round v28                                          │

00:00:24 #2296 [Debug] > │         let v30 : float =  -v29                                              │

00:00:24 #2297 [Debug] > │         let v31 : bool = v29 >= v30                                          │

00:00:24 #2298 [Debug] > │         let v32 : float =                                                    │

00:00:24 #2299 [Debug] > │             if v31 then                                                      │

00:00:24 #2300 [Debug] > │                 v29                                                          │

00:00:24 #2301 [Debug] > │             else                                                             │

00:00:24 #2302 [Debug] > │                 v30                                                          │

00:00:24 #2303 [Debug] > │         let v33 : float = 0.0                                                │

00:00:24 #2304 [Debug] > │         let v34 : float = 0.1                                                │

00:00:24 #2305 [Debug] > │         let v35 : float = 0.0                                                │

00:00:24 #2306 [Debug] > │         let struct (v36 : float, v37 : float, v38 : float) = method3(v33,    │

00:00:24 #2307 [Debug] > │ v34, v35, v32)                                                               │

00:00:24 #2308 [Debug] > │         v8.[int v11] <- v38                                                  │

00:00:24 #2309 [Debug] > │         let v39 : int32 = v11 + 1                                            │

00:00:24 #2310 [Debug] > │         v9.l0 <- v39                                                         │

00:00:24 #2311 [Debug] > │         ()                                                                   │

00:00:24 #2312 [Debug] > │     let v40 : string = "velocity (m/s)"                                      │

00:00:24 #2313 [Debug] > │     let v41 : (struct (string * (float []) * (float [])) []) = [|struct      │

00:00:24 #2314 [Debug] > │ (v40, v0, v8)|]                                                              │

00:00:24 #2315 [Debug] > │     let v42 : string = "ping pong ball on a slinky"                          │

00:00:24 #2316 [Debug] > │     let v43 : string = "time (s)"                                            │

00:00:24 #2317 [Debug] > │     let v44 : string = ""                                                    │

00:00:24 #2318 [Debug] > │     struct (v42, v43, v44, v41)                                              │

00:00:24 #2319 [Debug] > │ method0()                                                                    │

00:00:24 #2320 [Debug] > │                                                                              │

00:00:24 #2321 [Debug] > │                                                                              │

00:00:24 #2322 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:24 #2323 [Debug] >

00:00:24 #2324 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:24 #2325 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:24 #2326 [Debug] > │ ## shift                                                                     │

00:00:24 #2327 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:24 #2328 [Debug] >

00:00:24 #2329 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:24 #2330 [Debug] > type update_function s = s -> s

00:00:24 #2331 [Debug] >

00:00:24 #2332 [Debug] > type differential_equation s ds = s -> ds

00:00:24 #2333 [Debug] >

00:00:24 #2334 [Debug] > type numerical_method s ds = differential_equation s ds -> update_function s

00:00:24 #2335 [Debug] >

00:00:24 #2336 [Debug] >

00:00:24 #2337 [Debug] > inl solver method =

00:00:24 #2338 [Debug] >     method >> seq.iterate

00:00:24 #2339 [Debug] > inl solver' method =

00:00:24 #2340 [Debug] >     method >> seq.iterate'

00:00:24 #2341 [Debug] > inl solver_ method =

00:00:24 #2342 [Debug] >     method >> seq.iterate_

00:00:24 #2343 [Debug] >

00:00:24 #2344 [Debug] >

00:00:24 #2345 [Debug] > inl euler_cromer_1d dt deriv (state_1d (t0, x0, v0) as t) =

00:00:24 #2346 [Debug] >     inl (rrr (_, _, dvdt)) = deriv t

00:00:24 #2347 [Debug] >     inl t1 = t0 + dt

00:00:24 #2348 [Debug] >     inl v1 = v0 + dvdt * dt

00:00:24 #2349 [Debug] >     inl x1 = x0 + v1 * dt

00:00:24 #2350 [Debug] >     state_1d (t1, x1, v1)

00:00:24 #2351 [Debug] >

00:00:24 #2352 [Debug] > inl update_txv_ec dt m fs =

00:00:24 #2353 [Debug] >     euler_cromer_1d dt (newton_second_1d m fs)

00:00:24 #2354 [Debug] >

00:00:24 #2355 [Debug] > prototype (+++) ds : ds -> ds -> ds

00:00:24 #2356 [Debug] > prototype scale ds : f64 -> ds -> ds

00:00:24 #2357 [Debug] >

00:00:24 #2358 [Debug] > instance (+++) rrr = fun (rrr (dtdt0, dxdt0, dvdt0)) (rrr (dtdt1, dxdt1, dvdt1))

00:00:24 #2359 [Debug] > =>

00:00:24 #2360 [Debug] >     rrr (dtdt0 + dtdt1, dxdt0 + dxdt1, dvdt0 + dvdt1)

00:00:24 #2361 [Debug] >

00:00:24 #2362 [Debug] > instance scale rrr = fun w (rrr (dtdt0, dxdt0, dvdt0)) =>

00:00:24 #2363 [Debug] >     rrr (w * dtdt0, w * dxdt0, w * dvdt0)

00:00:24 #2364 [Debug] >

00:00:24 #2365 [Debug] > prototype shift s : forall ds. f64 -> ds -> s -> s

00:00:24 #2366 [Debug] >

00:00:24 #2367 [Debug] > instance shift state_1d = fun dt ds (state_1d (t, x, v)) =>

00:00:24 #2368 [Debug] >     inl dtdt, dxdt, dvdt =

00:00:24 #2369 [Debug] >         real

00:00:24 #2370 [Debug] >             match ds with

00:00:24 #2371 [Debug] >             | rrr x => x

00:00:24 #2372 [Debug] >             | state_1d x => x

00:00:24 #2373 [Debug] >     state_1d (t + dtdt * dt, x + dxdt * dt, v + dvdt * dt)

00:00:24 #2374 [Debug] >

00:00:24 #2375 [Debug] > inl euler dt deriv st0 =

00:00:24 #2376 [Debug] >     shift dt (deriv st0) st0

00:00:24 #2377 [Debug] >

00:00:24 #2378 [Debug] > inl runge_kutta_4 dt deriv st0 =

00:00:24 #2379 [Debug] >     inl m0 = deriv st0

00:00:24 #2380 [Debug] >     inl m1 = deriv (shift (dt / 2) m0 st0)

00:00:24 #2381 [Debug] >     inl m2 = deriv (shift (dt / 2) m1 st0)

00:00:24 #2382 [Debug] >     inl m3 = deriv (shift dt m2 st0)

00:00:24 #2383 [Debug] >     shift (dt / 6) (m0 +++ m1 +++ m1 +++ m2 +++ m2 +++ m3) st0

00:00:24 #2384 [Debug] >

00:00:24 #2385 [Debug] > inl exponential (_, x0, v0) =

00:00:24 #2386 [Debug] >     1f64, v0, x0

00:00:24 #2387 [Debug] >

00:00:24 #2388 [Debug] > inl of_state_1d (state_1d (t, x, v)) =

00:00:24 #2389 [Debug] >     t, x, v

00:00:24 #2390 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-4805-0599-07baac1d18b0\main.spi

00:00:25 #2391 [Debug] >

00:00:25 #2392 [Debug] > ╭─[ 191.14ms - stdout ]────────────────────────────────────────────────────────╮

00:00:25 #2393 [Debug] > │ ()                                                                           │

00:00:25 #2394 [Debug] > │                                                                              │

00:00:25 #2395 [Debug] > │                                                                              │

00:00:25 #2396 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:25 #2397 [Debug] >

00:00:25 #2398 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:25 #2399 [Debug] > // // test

00:00:25 #2400 [Debug] >

00:00:25 #2401 [Debug] > solver (euler 0.01) (of_state_1d >> exponential >> state_1d) (state_1d (0, 1,

00:00:25 #2402 [Debug] > 1)) 800i32

00:00:25 #2403 [Debug] > |> _equal (state_1d (7.999999999999874, 2864.8311229272326, 2864.8311229272326))

00:00:25 #2404 [Debug] >

00:00:25 #2405 [Debug] > solver (euler_cromer_1d 0.1) (of_state_1d >> exponential >> rrr) (state_1d (0,

00:00:25 #2406 [Debug] > 1, 1)) 80i32

00:00:25 #2407 [Debug] > |> _equal (state_1d (7.999999999999988, 3043.379244966009, 2895.0121485099035))

00:00:25 #2408 [Debug] >

00:00:25 #2409 [Debug] > solver (runge_kutta_4 1) (of_state_1d >> exponential >> rrr) (state_1d (0, 1,

00:00:25 #2410 [Debug] > 1)) 8i32

00:00:25 #2411 [Debug] > |> _equal (state_1d (8.0, 2894.789038540849, 2894.789038540849))

00:00:25 #2412 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-4824-2482-24f9f4392fda\main.spi

00:00:25 #2413 [Debug] >

00:00:25 #2414 [Debug] > ╭─[ 529.92ms - stdout ]────────────────────────────────────────────────────────╮

00:00:25 #2415 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:25 #2416 [Debug] > │     let v0 : string = $"_equal / actual: %A{struct (7.999999999999874,       │

00:00:25 #2417 [Debug] > │ 2864.8311229272326, 2864.8311229272326)} / expected: %A{struct               │

00:00:25 #2418 [Debug] > │ (7.999999999999874, 2864.8311229272326, 2864.8311229272326)}"                │

00:00:25 #2419 [Debug] > │     let v1 : string = $"_equal / actual: %A{struct (7.999999999999988,       │

00:00:25 #2420 [Debug] > │ 3043.379244966009, 2895.0121485099035)} / expected: %A{struct                │

00:00:25 #2421 [Debug] > │ (7.999999999999988, 3043.379244966009, 2895.0121485099035)}"                 │

00:00:25 #2422 [Debug] > │     let v2 : string = $"_equal / actual: %A{struct (8.0, 2894.789038540849,  │

00:00:25 #2423 [Debug] > │ 2894.789038540849)} / expected: %A{struct (8.0, 2894.789038540849,           │

00:00:25 #2424 [Debug] > │ 2894.789038540849)}"                                                         │

00:00:25 #2425 [Debug] > │     ()                                                                       │

00:00:25 #2426 [Debug] > │ method0()                                                                    │

00:00:25 #2427 [Debug] > │                                                                              │

00:00:25 #2428 [Debug] > │                                                                              │

00:00:25 #2429 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:25 #2430 [Debug] >

00:00:25 #2431 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:25 #2432 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:25 #2433 [Debug] > │ ## vec                                                                       │

00:00:25 #2434 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:25 #2435 [Debug] >

00:00:25 #2436 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:25 #2437 [Debug] > type vec =

00:00:25 #2438 [Debug] >     {

00:00:25 #2439 [Debug] >         x : f64

00:00:25 #2440 [Debug] >         y : f64

00:00:25 #2441 [Debug] >         z : f64

00:00:25 #2442 [Debug] >     }

00:00:25 #2443 [Debug] >

00:00:25 #2444 [Debug] > inl vec x y z : vec =

00:00:25 #2445 [Debug] >     { x y z }

00:00:25 #2446 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-4878-7873-7efed10531a5\main.spi

00:00:25 #2447 [Debug] >

00:00:25 #2448 [Debug] > ╭─[ 190.95ms - stdout ]────────────────────────────────────────────────────────╮

00:00:25 #2449 [Debug] > │ ()                                                                           │

00:00:25 #2450 [Debug] > │                                                                              │

00:00:25 #2451 [Debug] > │                                                                              │

00:00:25 #2452 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:25 #2453 [Debug] >

00:00:25 #2454 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:25 #2455 [Debug] > // // test

00:00:25 #2456 [Debug] >

00:00:25 #2457 [Debug] > vec 1 2 3 .z

00:00:25 #2458 [Debug] > |> _equal 3

00:00:25 #2459 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-4898-9828-91a1344b3b6f\main.spi

00:00:25 #2460 [Debug] >

00:00:25 #2461 [Debug] > ╭─[ 180.11ms - stdout ]────────────────────────────────────────────────────────╮

00:00:25 #2462 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:25 #2463 [Debug] > │     let v0 : string = $"_equal / actual: %A{3.0} / expected: %A{3.0}"        │

00:00:25 #2464 [Debug] > │     ()                                                                       │

00:00:25 #2465 [Debug] > │ method0()                                                                    │

00:00:25 #2466 [Debug] > │                                                                              │

00:00:25 #2467 [Debug] > │                                                                              │

00:00:25 #2468 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:25 #2469 [Debug] >

00:00:25 #2470 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:25 #2471 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:25 #2472 [Debug] > │ ### consts                                                                   │

00:00:25 #2473 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:25 #2474 [Debug] >

00:00:25 #2475 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:25 #2476 [Debug] > inl i_hat () = vec 1 0 0

00:00:25 #2477 [Debug] > inl j_hat () = vec 0 1 0

00:00:25 #2478 [Debug] > inl k_hat () = vec 0 0 1

00:00:25 #2479 [Debug] > inl zero_vec () = vec 0 0 0

00:00:26 #2480 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-4916-1674-19774467d8c5\main.spi

00:00:26 #2481 [Debug] >

00:00:26 #2482 [Debug] > ╭─[ 191.67ms - stdout ]────────────────────────────────────────────────────────╮

00:00:26 #2483 [Debug] > │ ()                                                                           │

00:00:26 #2484 [Debug] > │                                                                              │

00:00:26 #2485 [Debug] > │                                                                              │

00:00:26 #2486 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:26 #2487 [Debug] >

00:00:26 #2488 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:26 #2489 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:26 #2490 [Debug] > │ ### ^+^                                                                      │

00:00:26 #2491 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:26 #2492 [Debug] >

00:00:26 #2493 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:26 #2494 [Debug] > inl (^+^) (a : vec) (b : vec) =

00:00:26 #2495 [Debug] >     vec (a.x + b.x) (a.y + b.y) (a.z + b.z)

00:00:26 #2496 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-4936-3643-340d77fc69f1\main.spi

00:00:26 #2497 [Debug] >

00:00:26 #2498 [Debug] > ╭─[ 168.02ms - stdout ]────────────────────────────────────────────────────────╮

00:00:26 #2499 [Debug] > │ ()                                                                           │

00:00:26 #2500 [Debug] > │                                                                              │

00:00:26 #2501 [Debug] > │                                                                              │

00:00:26 #2502 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:26 #2503 [Debug] >

00:00:26 #2504 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:26 #2505 [Debug] > // // test

00:00:26 #2506 [Debug] >

00:00:26 #2507 [Debug] > vec 1 2 3 ^+^ vec 4 5 6

00:00:26 #2508 [Debug] > |> _equal (vec 5 7 9)

00:00:26 #2509 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-4953-5338-59b4de6d1ba1\main.spi

00:00:26 #2510 [Debug] >

00:00:26 #2511 [Debug] > ╭─[ 157.51ms - stdout ]────────────────────────────────────────────────────────╮

00:00:26 #2512 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:26 #2513 [Debug] > │     let v0 : string = $"_equal / actual: %A{struct (5.0, 7.0, 9.0)} /        │

00:00:26 #2514 [Debug] > │ expected: %A{struct (5.0, 7.0, 9.0)}"                                        │

00:00:26 #2515 [Debug] > │     ()                                                                       │

00:00:26 #2516 [Debug] > │ method0()                                                                    │

00:00:26 #2517 [Debug] > │                                                                              │

00:00:26 #2518 [Debug] > │                                                                              │

00:00:26 #2519 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:26 #2520 [Debug] >

00:00:26 #2521 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:26 #2522 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:26 #2523 [Debug] > │ ### sum_vec                                                                  │

00:00:26 #2524 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:26 #2525 [Debug] >

00:00:26 #2526 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:26 #2527 [Debug] > inl sum_vec vs =

00:00:26 #2528 [Debug] >     vs |> listm.fold (^+^) (zero_vec ())

00:00:26 #2529 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-4969-6977-638457c39d07\main.spi

00:00:26 #2530 [Debug] >

00:00:26 #2531 [Debug] > ╭─[ 181.07ms - stdout ]────────────────────────────────────────────────────────╮

00:00:26 #2532 [Debug] > │ ()                                                                           │

00:00:26 #2533 [Debug] > │                                                                              │

00:00:26 #2534 [Debug] > │                                                                              │

00:00:26 #2535 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:26 #2536 [Debug] >

00:00:26 #2537 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:26 #2538 [Debug] > // // test

00:00:26 #2539 [Debug] >

00:00:26 #2540 [Debug] > [[ vec 1 2 3; vec 4 5 6 ]]

00:00:26 #2541 [Debug] > |> sum_vec

00:00:26 #2542 [Debug] > |> _equal (vec 5 7 9)

00:00:26 #2543 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-4988-8807-8ffd67ecdb9d\main.spi

00:00:26 #2544 [Debug] >

00:00:26 #2545 [Debug] > ╭─[ 158.98ms - stdout ]────────────────────────────────────────────────────────╮

00:00:26 #2546 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:26 #2547 [Debug] > │     let v0 : string = $"_equal / actual: %A{struct (5.0, 7.0, 9.0)} /        │

00:00:26 #2548 [Debug] > │ expected: %A{struct (5.0, 7.0, 9.0)}"                                        │

00:00:26 #2549 [Debug] > │     ()                                                                       │

00:00:26 #2550 [Debug] > │ method0()                                                                    │

00:00:26 #2551 [Debug] > │                                                                              │

00:00:26 #2552 [Debug] > │                                                                              │

00:00:26 #2553 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:26 #2554 [Debug] >

00:00:26 #2555 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:26 #2556 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:26 #2557 [Debug] > │ ### *^                                                                       │

00:00:26 #2558 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:26 #2559 [Debug] >

00:00:26 #2560 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:26 #2561 [Debug] > inl (*^) c { x y z } =

00:00:26 #2562 [Debug] >     vec (c * x) (c * y) (c * z)

00:00:26 #2563 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-5004-0454-0a77196df6c8\main.spi

00:00:26 #2564 [Debug] >

00:00:26 #2565 [Debug] > ╭─[ 144.96ms - stdout ]────────────────────────────────────────────────────────╮

00:00:26 #2566 [Debug] > │ ()                                                                           │

00:00:26 #2567 [Debug] > │                                                                              │

00:00:26 #2568 [Debug] > │                                                                              │

00:00:26 #2569 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:26 #2570 [Debug] >

00:00:26 #2571 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:26 #2572 [Debug] > // // test

00:00:26 #2573 [Debug] >

00:00:26 #2574 [Debug] > 5 *^ vec 1 2 3

00:00:26 #2575 [Debug] > |> _equal (vec 5 10 15)

00:00:27 #2576 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-5019-1931-184bb264a350\main.spi

00:00:27 #2577 [Debug] >

00:00:27 #2578 [Debug] > ╭─[ 173.34ms - stdout ]────────────────────────────────────────────────────────╮

00:00:27 #2579 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:27 #2580 [Debug] > │     let v0 : string = $"_equal / actual: %A{struct (5.0, 10.0, 15.0)} /      │

00:00:27 #2581 [Debug] > │ expected: %A{struct (5.0, 10.0, 15.0)}"                                      │

00:00:27 #2582 [Debug] > │     ()                                                                       │

00:00:27 #2583 [Debug] > │ method0()                                                                    │

00:00:27 #2584 [Debug] > │                                                                              │

00:00:27 #2585 [Debug] > │                                                                              │

00:00:27 #2586 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:27 #2587 [Debug] >

00:00:27 #2588 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:27 #2589 [Debug] > // // test

00:00:27 #2590 [Debug] >

00:00:27 #2591 [Debug] > 3 *^ i_hat () ^+^ 4 *^ k_hat ()

00:00:27 #2592 [Debug] > |> _equal (vec 3 0 4)

00:00:27 #2593 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-5036-3689-32354dc3fb39\main.spi

00:00:27 #2594 [Debug] >

00:00:27 #2595 [Debug] > ╭─[ 186.44ms - stdout ]────────────────────────────────────────────────────────╮

00:00:27 #2596 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:27 #2597 [Debug] > │     let v0 : string = $"_equal / actual: %A{struct (3.0, 0.0, 4.0)} /        │

00:00:27 #2598 [Debug] > │ expected: %A{struct (3.0, 0.0, 4.0)}"                                        │

00:00:27 #2599 [Debug] > │     ()                                                                       │

00:00:27 #2600 [Debug] > │ method0()                                                                    │

00:00:27 #2601 [Debug] > │                                                                              │

00:00:27 #2602 [Debug] > │                                                                              │

00:00:27 #2603 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:27 #2604 [Debug] >

00:00:27 #2605 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:27 #2606 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:27 #2607 [Debug] > │ ### ^*                                                                       │

00:00:27 #2608 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:27 #2609 [Debug] >

00:00:27 #2610 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:27 #2611 [Debug] > inl (^*) v c =

00:00:27 #2612 [Debug] >     (*^) c v

00:00:27 #2613 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-5056-5624-5af56f7bf29b\main.spi

00:00:27 #2614 [Debug] >

00:00:27 #2615 [Debug] > ╭─[ 193.95ms - stdout ]────────────────────────────────────────────────────────╮

00:00:27 #2616 [Debug] > │ ()                                                                           │

00:00:27 #2617 [Debug] > │                                                                              │

00:00:27 #2618 [Debug] > │                                                                              │

00:00:27 #2619 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:27 #2620 [Debug] >

00:00:27 #2621 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:27 #2622 [Debug] > // // test

00:00:27 #2623 [Debug] >

00:00:27 #2624 [Debug] > vec 1 2 3 ^* 5

00:00:27 #2625 [Debug] > |> _equal (vec 5 10 15)

00:00:27 #2626 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-5075-7592-7add6e4005d4\main.spi

00:00:27 #2627 [Debug] >

00:00:27 #2628 [Debug] > ╭─[ 204.80ms - stdout ]────────────────────────────────────────────────────────╮

00:00:27 #2629 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:27 #2630 [Debug] > │     let v0 : string = $"_equal / actual: %A{struct (5.0, 10.0, 15.0)} /      │

00:00:27 #2631 [Debug] > │ expected: %A{struct (5.0, 10.0, 15.0)}"                                      │

00:00:27 #2632 [Debug] > │     ()                                                                       │

00:00:27 #2633 [Debug] > │ method0()                                                                    │

00:00:27 #2634 [Debug] > │                                                                              │

00:00:27 #2635 [Debug] > │                                                                              │

00:00:27 #2636 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:27 #2637 [Debug] >

00:00:27 #2638 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:27 #2639 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:27 #2640 [Debug] > │ ### ^/                                                                       │

00:00:27 #2641 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:27 #2642 [Debug] >

00:00:27 #2643 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:27 #2644 [Debug] > inl (^/) { x y z } c =

00:00:27 #2645 [Debug] >     vec (x / c) (y / c) (z / c)

00:00:27 #2646 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-5097-9713-9f5cc38b656c\main.spi

00:00:28 #2647 [Debug] >

00:00:28 #2648 [Debug] > ╭─[ 320.04ms - stdout ]────────────────────────────────────────────────────────╮

00:00:28 #2649 [Debug] > │ ()                                                                           │

00:00:28 #2650 [Debug] > │                                                                              │

00:00:28 #2651 [Debug] > │                                                                              │

00:00:28 #2652 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:28 #2653 [Debug] >

00:00:28 #2654 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:28 #2655 [Debug] > // // test

00:00:28 #2656 [Debug] >

00:00:28 #2657 [Debug] > vec 1 2 3 ^/ 5

00:00:28 #2658 [Debug] > |> _equal (vec 0.2 0.4 0.6)

00:00:28 #2659 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-5129-2937-24c4432f61f7\main.spi

00:00:28 #2660 [Debug] >

00:00:28 #2661 [Debug] > ╭─[ 328.54ms - stdout ]────────────────────────────────────────────────────────╮

00:00:28 #2662 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:28 #2663 [Debug] > │     let v0 : string = $"_equal / actual: %A{struct (0.2, 0.4, 0.6)} /        │

00:00:28 #2664 [Debug] > │ expected: %A{struct (0.2, 0.4, 0.6)}"                                        │

00:00:28 #2665 [Debug] > │     ()                                                                       │

00:00:28 #2666 [Debug] > │ method0()                                                                    │

00:00:28 #2667 [Debug] > │                                                                              │

00:00:28 #2668 [Debug] > │                                                                              │

00:00:28 #2669 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:28 #2670 [Debug] >

00:00:28 #2671 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:28 #2672 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:28 #2673 [Debug] > │ ### negate_vec                                                               │

00:00:28 #2674 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:28 #2675 [Debug] >

00:00:28 #2676 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:28 #2677 [Debug] > inl negate_vec v =

00:00:28 #2678 [Debug] >     v ^* -1

00:00:28 #2679 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-5163-6341-6666e3623a2b\main.spi

00:00:28 #2680 [Debug] >

00:00:28 #2681 [Debug] > ╭─[ 272.36ms - stdout ]────────────────────────────────────────────────────────╮

00:00:28 #2682 [Debug] > │ ()                                                                           │

00:00:28 #2683 [Debug] > │                                                                              │

00:00:28 #2684 [Debug] > │                                                                              │

00:00:28 #2685 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:28 #2686 [Debug] >

00:00:28 #2687 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:28 #2688 [Debug] > // // test

00:00:28 #2689 [Debug] >

00:00:28 #2690 [Debug] > vec 1 2 3

00:00:28 #2691 [Debug] > |> negate_vec

00:00:28 #2692 [Debug] > |> _equal (vec -1 -2 -3)

00:00:29 #2693 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-5190-9079-96df68acff9c\main.spi

00:00:29 #2694 [Debug] >

00:00:29 #2695 [Debug] > ╭─[ 502.15ms - stdout ]────────────────────────────────────────────────────────╮

00:00:29 #2696 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:29 #2697 [Debug] > │     let v0 : string = $"_equal / actual: %A{struct (-1.0, -2.0, -3.0)} /     │

00:00:29 #2698 [Debug] > │ expected: %A{struct (-1.0, -2.0, -3.0)}"                                     │

00:00:29 #2699 [Debug] > │     ()                                                                       │

00:00:29 #2700 [Debug] > │ method0()                                                                    │

00:00:29 #2701 [Debug] > │                                                                              │

00:00:29 #2702 [Debug] > │                                                                              │

00:00:29 #2703 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:29 #2704 [Debug] >

00:00:29 #2705 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:29 #2706 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:29 #2707 [Debug] > │ ### ^-^                                                                      │

00:00:29 #2708 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:29 #2709 [Debug] >

00:00:29 #2710 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:29 #2711 [Debug] > inl (^-^) a b =

00:00:29 #2712 [Debug] >     a ^+^ (negate_vec b)

00:00:29 #2713 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-5241-4157-42fb2fd3c896\main.spi

00:00:29 #2714 [Debug] >

00:00:29 #2715 [Debug] > ╭─[ 214.07ms - stdout ]────────────────────────────────────────────────────────╮

00:00:29 #2716 [Debug] > │ ()                                                                           │

00:00:29 #2717 [Debug] > │                                                                              │

00:00:29 #2718 [Debug] > │                                                                              │

00:00:29 #2719 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:29 #2720 [Debug] >

00:00:29 #2721 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:29 #2722 [Debug] > // // test

00:00:29 #2723 [Debug] >

00:00:29 #2724 [Debug] > vec 1 2 3 ^-^ vec 4 5 6

00:00:29 #2725 [Debug] > |> _equal (vec -3 -3 -3)

00:00:29 #2726 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-5263-6323-6b4701b4a167\main.spi

00:00:29 #2727 [Debug] >

00:00:29 #2728 [Debug] > ╭─[ 377.42ms - stdout ]────────────────────────────────────────────────────────╮

00:00:29 #2729 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:29 #2730 [Debug] > │     let v0 : string = $"_equal / actual: %A{struct (-3.0, -3.0, -3.0)} /     │

00:00:29 #2731 [Debug] > │ expected: %A{struct (-3.0, -3.0, -3.0)}"                                     │

00:00:29 #2732 [Debug] > │     ()                                                                       │

00:00:29 #2733 [Debug] > │ method0()                                                                    │

00:00:29 #2734 [Debug] > │                                                                              │

00:00:29 #2735 [Debug] > │                                                                              │

00:00:29 #2736 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:29 #2737 [Debug] >

00:00:29 #2738 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:29 #2739 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:29 #2740 [Debug] > │ ### <.>                                                                      │

00:00:29 #2741 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:29 #2742 [Debug] >

00:00:29 #2743 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:29 #2744 [Debug] > inl (<.>) { x = ax y = ay z = az } { x = bx y = by z = bz } =

00:00:29 #2745 [Debug] >     ax * bx + ay * by + az * bz

00:00:29 #2746 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-5301-0166-00fa5dd262e6\main.spi

00:00:29 #2747 [Debug] >

00:00:29 #2748 [Debug] > ╭─[ 175.20ms - stdout ]────────────────────────────────────────────────────────╮

00:00:29 #2749 [Debug] > │ ()                                                                           │

00:00:29 #2750 [Debug] > │                                                                              │

00:00:29 #2751 [Debug] > │                                                                              │

00:00:29 #2752 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:29 #2753 [Debug] >

00:00:29 #2754 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:29 #2755 [Debug] > // // test

00:00:29 #2756 [Debug] >

00:00:29 #2757 [Debug] > vec 1 2 3 <.> vec 4 5 6

00:00:29 #2758 [Debug] > |> _equal 32

00:00:30 #2759 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-5319-1952-1e24339cad9e\main.spi

00:00:30 #2760 [Debug] >

00:00:30 #2761 [Debug] > ╭─[ 195.53ms - stdout ]────────────────────────────────────────────────────────╮

00:00:30 #2762 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:30 #2763 [Debug] > │     let v0 : string = $"_equal / actual: %A{32.0} / expected: %A{32.0}"      │

00:00:30 #2764 [Debug] > │     ()                                                                       │

00:00:30 #2765 [Debug] > │ method0()                                                                    │

00:00:30 #2766 [Debug] > │                                                                              │

00:00:30 #2767 [Debug] > │                                                                              │

00:00:30 #2768 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:30 #2769 [Debug] >

00:00:30 #2770 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:30 #2771 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:30 #2772 [Debug] > │ ### \>\<                                                                     │

00:00:30 #2773 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:30 #2774 [Debug] >

00:00:30 #2775 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:30 #2776 [Debug] > inl (><) (a : vec) (b : vec) =

00:00:30 #2777 [Debug] >     vec

00:00:30 #2778 [Debug] >         (a.y * b.z - a.z * b.y)

00:00:30 #2779 [Debug] >         (a.z * b.x - a.x * b.z)

00:00:30 #2780 [Debug] >         (a.x * b.y - a.y * b.x)

00:00:30 #2781 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-5339-3982-332c72648b74\main.spi

00:00:30 #2782 [Debug] >

00:00:30 #2783 [Debug] > ╭─[ 166.71ms - stdout ]────────────────────────────────────────────────────────╮

00:00:30 #2784 [Debug] > │ ()                                                                           │

00:00:30 #2785 [Debug] > │                                                                              │

00:00:30 #2786 [Debug] > │                                                                              │

00:00:30 #2787 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:30 #2788 [Debug] >

00:00:30 #2789 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:30 #2790 [Debug] > // // test

00:00:30 #2791 [Debug] >

00:00:30 #2792 [Debug] > vec 1 2 3 >< vec 4 5 6

00:00:30 #2793 [Debug] > |> _equal (vec -3 6 -3)

00:00:30 #2794 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-5356-5659-589081d0f164\main.spi

00:00:30 #2795 [Debug] >

00:00:30 #2796 [Debug] > ╭─[ 141.70ms - stdout ]────────────────────────────────────────────────────────╮

00:00:30 #2797 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:30 #2798 [Debug] > │     let v0 : string = $"_equal / actual: %A{struct (-3.0, 6.0, -3.0)} /      │

00:00:30 #2799 [Debug] > │ expected: %A{struct (-3.0, 6.0, -3.0)}"                                      │

00:00:30 #2800 [Debug] > │     ()                                                                       │

00:00:30 #2801 [Debug] > │ method0()                                                                    │

00:00:30 #2802 [Debug] > │                                                                              │

00:00:30 #2803 [Debug] > │                                                                              │

00:00:30 #2804 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:30 #2805 [Debug] >

00:00:30 #2806 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:30 #2807 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:30 #2808 [Debug] > │ ### magnitude                                                                │

00:00:30 #2809 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:30 #2810 [Debug] >

00:00:30 #2811 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:30 #2812 [Debug] > inl magnitude v =

00:00:30 #2813 [Debug] >     v <.> v |> sqrt

00:00:30 #2814 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-5371-7129-75eb7b4c0cee\main.spi

00:00:30 #2815 [Debug] >

00:00:30 #2816 [Debug] > ╭─[ 195.65ms - stdout ]────────────────────────────────────────────────────────╮

00:00:30 #2817 [Debug] > │ ()                                                                           │

00:00:30 #2818 [Debug] > │                                                                              │

00:00:30 #2819 [Debug] > │                                                                              │

00:00:30 #2820 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:30 #2821 [Debug] >

00:00:30 #2822 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:30 #2823 [Debug] > // // test

00:00:30 #2824 [Debug] >

00:00:30 #2825 [Debug] > vec 1 2 3

00:00:30 #2826 [Debug] > |> magnitude

00:00:30 #2827 [Debug] > |> _almost_equal 3.7416573867739413

00:00:30 #2828 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-5391-9110-98057af20f10\main.spi

00:00:30 #2829 [Debug] >

00:00:30 #2830 [Debug] > ╭─[ 157.21ms - stdout ]────────────────────────────────────────────────────────╮

00:00:30 #2831 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:30 #2832 [Debug] > │     let v0 : string = $"_almost_equal / actual: %A{3.7416573867739413} /     │

00:00:30 #2833 [Debug] > │ expected: %A{3.7416573867739413}"                                            │

00:00:30 #2834 [Debug] > │     ()                                                                       │

00:00:30 #2835 [Debug] > │ method0()                                                                    │

00:00:30 #2836 [Debug] > │                                                                              │

00:00:30 #2837 [Debug] > │                                                                              │

00:00:30 #2838 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:30 #2839 [Debug] >

00:00:30 #2840 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:30 #2841 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:30 #2842 [Debug] > │ ### v1                                                                       │

00:00:30 #2843 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:30 #2844 [Debug] >

00:00:30 #2845 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:30 #2846 [Debug] > inl v1 t =

00:00:30 #2847 [Debug] >     2 *^ (t ** 2 *^ i_hat () ^+^ 3 *^ (t ** 3 *^ j_hat () ^+^ t ** 4 *^ k_hat

00:00:30 #2848 [Debug] > ()))

00:00:30 #2849 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-5407-0757-0f8efe450c44\main.spi

00:00:31 #2850 [Debug] >

00:00:31 #2851 [Debug] > ╭─[ 168.26ms - stdout ]────────────────────────────────────────────────────────╮

00:00:31 #2852 [Debug] > │ ()                                                                           │

00:00:31 #2853 [Debug] > │                                                                              │

00:00:31 #2854 [Debug] > │                                                                              │

00:00:31 #2855 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:31 #2856 [Debug] >

00:00:31 #2857 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:31 #2858 [Debug] > // // test

00:00:31 #2859 [Debug] >

00:00:31 #2860 [Debug] > v1 1

00:00:31 #2861 [Debug] > |> _equal (vec 2 6 6)

00:00:31 #2862 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-5424-2466-24c797908f96\main.spi

00:00:31 #2863 [Debug] >

00:00:31 #2864 [Debug] > ╭─[ 152.90ms - stdout ]────────────────────────────────────────────────────────╮

00:00:31 #2865 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:31 #2866 [Debug] > │     let v0 : string = $"_equal / actual: %A{struct (2.0, 6.0, 6.0)} /        │

00:00:31 #2867 [Debug] > │ expected: %A{struct (2.0, 6.0, 6.0)}"                                        │

00:00:31 #2868 [Debug] > │     ()                                                                       │

00:00:31 #2869 [Debug] > │ method0()                                                                    │

00:00:31 #2870 [Debug] > │                                                                              │

00:00:31 #2871 [Debug] > │                                                                              │

00:00:31 #2872 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:31 #2873 [Debug] >

00:00:31 #2874 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:31 #2875 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:31 #2876 [Debug] > │ ### vec_derivative                                                           │

00:00:31 #2877 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:31 #2878 [Debug] >

00:00:31 #2879 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:31 #2880 [Debug] > type vec_derivative = (f64 -> vec) -> f64 -> vec

00:00:31 #2881 [Debug] >

00:00:31 #2882 [Debug] > inl vec_derivative dt : vec_derivative =

00:00:31 #2883 [Debug] >     fun v t =>

00:00:31 #2884 [Debug] >         (v (t + dt / 2) ^-^ v (t - dt / 2)) ^/ dt

00:00:31 #2885 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-5440-4049-4ba3f367ec2e\main.spi

00:00:31 #2886 [Debug] >

00:00:31 #2887 [Debug] > ╭─[ 179.42ms - stdout ]────────────────────────────────────────────────────────╮

00:00:31 #2888 [Debug] > │ ()                                                                           │

00:00:31 #2889 [Debug] > │                                                                              │

00:00:31 #2890 [Debug] > │                                                                              │

00:00:31 #2891 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:31 #2892 [Debug] >

00:00:31 #2893 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:31 #2894 [Debug] > // // test

00:00:31 #2895 [Debug] >

00:00:31 #2896 [Debug] > vec_derivative 0.01 v1 3 .x

00:00:31 #2897 [Debug] > |> _almost_equal (derivative 0.01 (v1 >> fun v => v.x) 3)

00:00:31 #2898 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-5458-5868-5fc51d04cf40\main.spi

00:00:31 #2899 [Debug] >

00:00:31 #2900 [Debug] > ╭─[ 156.91ms - stdout ]────────────────────────────────────────────────────────╮

00:00:31 #2901 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:31 #2902 [Debug] > │     let v0 : string = $"_almost_equal / actual: %A{11.999999999999744} /     │

00:00:31 #2903 [Debug] > │ expected: %A{11.999999999999744}"                                            │

00:00:31 #2904 [Debug] > │     ()                                                                       │

00:00:31 #2905 [Debug] > │ method0()                                                                    │

00:00:31 #2906 [Debug] > │                                                                              │

00:00:31 #2907 [Debug] > │                                                                              │

00:00:31 #2908 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:31 #2909 [Debug] >

00:00:31 #2910 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:31 #2911 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:31 #2912 [Debug] > │ ## states_ps                                                                 │

00:00:31 #2913 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:31 #2914 [Debug] >

00:00:31 #2915 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:31 #2916 [Debug] > nominal particle_state =

00:00:31 #2917 [Debug] >     {

00:00:31 #2918 [Debug] >         mass : f64

00:00:31 #2919 [Debug] >         charge : f64

00:00:31 #2920 [Debug] >         time : f64

00:00:31 #2921 [Debug] >         pos_vec : vec

00:00:31 #2922 [Debug] >         velocity : vec

00:00:31 #2923 [Debug] >     }

00:00:31 #2924 [Debug] >

00:00:31 #2925 [Debug] > inl default_particle_state () : particle_state =

00:00:31 #2926 [Debug] >     particle_state {

00:00:31 #2927 [Debug] >         mass = 1

00:00:31 #2928 [Debug] >         charge = 0

00:00:31 #2929 [Debug] >         time = 0

00:00:31 #2930 [Debug] >         pos_vec = zero_vec ()

00:00:31 #2931 [Debug] >         velocity = zero_vec ()

00:00:31 #2932 [Debug] >     }

00:00:31 #2933 [Debug] >

00:00:31 #2934 [Debug] > type one_body_force = particle_state -> vec

00:00:31 #2935 [Debug] >

00:00:31 #2936 [Debug] > nominal d_particle_state =

00:00:31 #2937 [Debug] >     {

00:00:31 #2938 [Debug] >         dmdt : f64

00:00:31 #2939 [Debug] >         dqdt : f64

00:00:31 #2940 [Debug] >         dtdt : f64

00:00:31 #2941 [Debug] >         drdt : vec

00:00:31 #2942 [Debug] >         dvdt : vec

00:00:31 #2943 [Debug] >     }

00:00:31 #2944 [Debug] >

00:00:31 #2945 [Debug] > inl newton_second_ps (fs : list one_body_force) (st : particle_state) :

00:00:31 #2946 [Debug] > d_particle_state =

00:00:31 #2947 [Debug] >     inl f_net = fs |> listm.map (fun f => f st) |> sum_vec

00:00:31 #2948 [Debug] >     d_particle_state {

00:00:31 #2949 [Debug] >         dmdt = 0

00:00:31 #2950 [Debug] >         dqdt = 0

00:00:31 #2951 [Debug] >         dtdt = 1

00:00:31 #2952 [Debug] >         drdt = st.velocity

00:00:31 #2953 [Debug] >         dvdt = f_net ^/ st.mass

00:00:31 #2954 [Debug] >     }

00:00:31 #2955 [Debug] >

00:00:31 #2956 [Debug] > inl earth_surface_gravity (st : particle_state) =

00:00:31 #2957 [Debug] >     inl g = 9.80665

00:00:31 #2958 [Debug] >     -st.mass * g *^ k_hat ()

00:00:31 #2959 [Debug] >

00:00:31 #2960 [Debug] > inl air_resistance drag rho area (st : particle_state) =

00:00:31 #2961 [Debug] >     -0.5 * drag * rho * area * magnitude st.velocity *^ st.velocity

00:00:31 #2962 [Debug] >

00:00:31 #2963 [Debug] > inl euler_cromer_ps dt (deriv : particle_state -> d_particle_state)

00:00:31 #2964 [Debug] > (particle_state st) =

00:00:31 #2965 [Debug] >     inl dst : d_particle_state = deriv (particle_state st)

00:00:31 #2966 [Debug] >     inl v' = st.velocity ^+^ dst.dvdt ^* dt

00:00:31 #2967 [Debug] >     particle_state { st with

00:00:31 #2968 [Debug] >         time = st.time + dt

00:00:31 #2969 [Debug] >         pos_vec = st.pos_vec ^+^ v' ^* dt

00:00:31 #2970 [Debug] >         velocity = st.velocity ^+^ dst.dvdt ^* dt

00:00:31 #2971 [Debug] >     }

00:00:31 #2972 [Debug] >

00:00:31 #2973 [Debug] > instance (+++) d_particle_state = fun (dps : d_particle_state) (dps' :

00:00:31 #2974 [Debug] > d_particle_state) =>

00:00:31 #2975 [Debug] >     d_particle_state {

00:00:31 #2976 [Debug] >         dmdt = dps.dmdt + dps'.dmdt

00:00:31 #2977 [Debug] >         dqdt = dps.dqdt + dps'.dqdt

00:00:31 #2978 [Debug] >         dtdt = dps.dtdt + dps'.dtdt

00:00:31 #2979 [Debug] >         drdt = dps.drdt ^+^ dps'.drdt

00:00:31 #2980 [Debug] >         dvdt = dps.dvdt ^+^ dps'.dvdt

00:00:31 #2981 [Debug] >     }

00:00:31 #2982 [Debug] >

00:00:31 #2983 [Debug] > instance scale d_particle_state = fun w (dps : d_particle_state) =>

00:00:31 #2984 [Debug] >     d_particle_state {

00:00:31 #2985 [Debug] >         dmdt = w * dps.dmdt

00:00:31 #2986 [Debug] >         dqdt = w * dps.dqdt

00:00:31 #2987 [Debug] >         dtdt = w * dps.dtdt

00:00:31 #2988 [Debug] >         drdt = w *^ dps.drdt

00:00:31 #2989 [Debug] >         dvdt = w *^ dps.dvdt

00:00:31 #2990 [Debug] >     }

00:00:31 #2991 [Debug] >

00:00:31 #2992 [Debug] > instance shift particle_state = fun dt dps (particle_state st) =>

00:00:31 #2993 [Debug] >     inl (d_particle_state dps) =

00:00:31 #2994 [Debug] >         real

00:00:31 #2995 [Debug] >             match dps with

00:00:31 #2996 [Debug] >             | d_particle_state _ => dps

00:00:31 #2997 [Debug] >     particle_state { st with

00:00:31 #2998 [Debug] >         time = st.time + dps.dtdt * dt

00:00:31 #2999 [Debug] >         pos_vec = st.pos_vec ^+^ dps.drdt ^* dt

00:00:31 #3000 [Debug] >         velocity = st.velocity ^+^ dps.dvdt ^* dt

00:00:31 #3001 [Debug] >     }

00:00:31 #3002 [Debug] >

00:00:31 #3003 [Debug] > inl states_ps (method : numerical_method particle_state d_particle_state) : _ ->

00:00:31 #3004 [Debug] > _ -> i32 -> particle_state =

00:00:31 #3005 [Debug] >     newton_second_ps >> method >> seq.iterate_

00:00:31 #3006 [Debug] >

00:00:31 #3007 [Debug] > inl z_ge0 sts =

00:00:31 #3008 [Debug] >     sts

00:00:31 #3009 [Debug] >     |> seq.take_while_ (fun (particle_state st) _ => st.pos_vec.z >= 0)

00:00:31 #3010 [Debug] >

00:00:31 #3011 [Debug] > inl trajectory sts =

00:00:31 #3012 [Debug] >     sts |> listm.map (fun (particle_state st) => st.pos_vec.y, st.pos_vec.z)

00:00:31 #3013 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-5474-7489-78e558c3c25e\main.spi

00:00:31 #3014 [Debug] >

00:00:31 #3015 [Debug] > ╭─[ 197.02ms - stdout ]────────────────────────────────────────────────────────╮

00:00:31 #3016 [Debug] > │ ()                                                                           │

00:00:31 #3017 [Debug] > │                                                                              │

00:00:31 #3018 [Debug] > │                                                                              │

00:00:31 #3019 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:31 #3020 [Debug] >

00:00:31 #3021 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:31 #3022 [Debug] > // // test

00:00:31 #3023 [Debug] >

00:00:31 #3024 [Debug] > inl update_ps (method : numerical_method particle_state d_particle_state) =

00:00:31 #3025 [Debug] >     newton_second_ps >> method

00:00:31 #3026 [Debug] >

00:00:31 #3027 [Debug] > inl position_ps (method : numerical_method particle_state d_particle_state) fs

00:00:31 #3028 [Debug] > st t =

00:00:31 #3029 [Debug] >     inl states : i32 -> particle_state = states_ps method fs st

00:00:31 #3030 [Debug] >     inl dt = (states 1).time - (states 0).time

00:00:31 #3031 [Debug] >     inl num_steps = t / dt |> math.round |> abs

00:00:31 #3032 [Debug] >     inl st1 = solver' method (newton_second_ps fs) st num_steps

00:00:31 #3033 [Debug] >     st1.pos_vec

00:00:31 #3034 [Debug] >

00:00:31 #3035 [Debug] > inl sun_gravity (st : particle_state) : vec =

00:00:31 #3036 [Debug] >     inl big_g = 0.0000000000667408

00:00:31 #3037 [Debug] >     inl sun_mass = 1988480000000000000000000000000

00:00:31 #3038 [Debug] >     -big_g * sun_mass * st.mass *^ st.pos_vec ^/ magnitude st.pos_vec ** 3

00:00:31 #3039 [Debug] >

00:00:31 #3040 [Debug] > inl wind_force v_wind drag rho area (st : particle_state) =

00:00:31 #3041 [Debug] >     inl v_rel = st.velocity ^-^ v_wind

00:00:31 #3042 [Debug] >     -0.5 * drag * rho * area * magnitude v_rel *^ v_rel

00:00:31 #3043 [Debug] >

00:00:31 #3044 [Debug] > inl rock_state () =

00:00:31 #3045 [Debug] >     inl (particle_state default_particle_state') = default_particle_state ()

00:00:31 #3046 [Debug] >     particle_state { default_particle_state' with

00:00:31 #3047 [Debug] >         mass = 2

00:00:31 #3048 [Debug] >         velocity = vec 3 0 4

00:00:31 #3049 [Debug] >     }

00:00:31 #3050 [Debug] >

00:00:31 #3051 [Debug] > inl halley_update dt =

00:00:31 #3052 [Debug] >     update_ps (euler_cromer_ps dt) [[ sun_gravity ]]

00:00:31 #3053 [Debug] >

00:00:31 #3054 [Debug] > inl halley_initial () =

00:00:31 #3055 [Debug] >     inl (particle_state default_particle_state') = default_particle_state ()

00:00:31 #3056 [Debug] >     particle_state { default_particle_state' with

00:00:31 #3057 [Debug] >         mass = 220000000000000

00:00:31 #3058 [Debug] >         pos_vec = 87660000000 *^ i_hat ()

00:00:31 #3059 [Debug] >         velocity = 54569 *^ j_hat ()

00:00:31 #3060 [Debug] >     }

00:00:31 #3061 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-5494-9482-954cc47eaa3f\main.spi

00:00:31 #3062 [Debug] >

00:00:31 #3063 [Debug] > ╭─[ 169.51ms - stdout ]────────────────────────────────────────────────────────╮

00:00:31 #3064 [Debug] > │ ()                                                                           │

00:00:31 #3065 [Debug] > │                                                                              │

00:00:31 #3066 [Debug] > │                                                                              │

00:00:31 #3067 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:31 #3068 [Debug] >

00:00:31 #3069 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:31 #3070 [Debug] > // // test

00:00:31 #3071 [Debug] >

00:00:31 #3072 [Debug] > inl baseball_forces () =

00:00:31 #3073 [Debug] >     inl area = pi * (0.074 / 2) ** 2

00:00:31 #3074 [Debug] >     [[

00:00:31 #3075 [Debug] >         earth_surface_gravity

00:00:31 #3076 [Debug] >         air_resistance 0.3 1.225 area

00:00:31 #3077 [Debug] >     ]]

00:00:31 #3078 [Debug] >

00:00:31 #3079 [Debug] > inl baseball_trajectory dt v0 theta_deg =

00:00:31 #3080 [Debug] >     inl theta_rad = theta_deg * pi / 180

00:00:31 #3081 [Debug] >     inl vy0 = v0 * cos theta_rad

00:00:31 #3082 [Debug] >     inl vz0 = v0 * sin theta_rad

00:00:31 #3083 [Debug] >     inl initial_state =

00:00:31 #3084 [Debug] >         particle_state {

00:00:31 #3085 [Debug] >             mass = 0.145

00:00:31 #3086 [Debug] >             charge = 0

00:00:31 #3087 [Debug] >             time = 0

00:00:31 #3088 [Debug] >             pos_vec = zero_vec ()

00:00:31 #3089 [Debug] >             velocity = vec 0 vy0 vz0

00:00:31 #3090 [Debug] >         }

00:00:31 #3091 [Debug] >     states_ps (euler_cromer_ps dt) (baseball_forces ()) initial_state

00:00:31 #3092 [Debug] >     >> Some

00:00:31 #3093 [Debug] >     |> z_ge0

00:00:31 #3094 [Debug] >     |> trajectory

00:00:31 #3095 [Debug] >

00:00:31 #3096 [Debug] > inl baseball_range dt v0 theta_deg =

00:00:31 #3097 [Debug] >     baseball_trajectory dt v0 theta_deg

00:00:31 #3098 [Debug] >     |> listm.fold (fun _ (y, _) => y) 0

00:00:31 #3099 [Debug] >

00:00:31 #3100 [Debug] > inl x : a _ f64 = am'.init_series 10 80 1

00:00:31 #3101 [Debug] > inl y = x |> am.map (baseball_range 0.01 45)

00:00:31 #3102 [Debug] > "range for a baseball hit at 45 m/s",

00:00:31 #3103 [Debug] > "angle above horizontal (degrees)",

00:00:31 #3104 [Debug] > "",

00:00:31 #3105 [Debug] > ;[[ "horizontal range (m)", x, y ]]

00:00:32 #3106 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-5512-1200-16a46e74a784\main.spi

00:00:32 #3107 [Debug] >

00:00:32 #3108 [Debug] > ╭─[ 1.01s - return value ]─────────────────────────────────────────────────────╮

00:00:32 #3109 [Debug] > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │

00:00:32 #3110 [Debug] > │ xmlns="http://www.w3.org/2000/svg">                                          │

00:00:32 #3111 [Debug] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │

00:00:32 #3112 [Debug] > │ stroke="none"/>                                                              │

00:00:32 #3113 [Debug] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │

00:00:32 #3114 [Debug] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │

00:00:32 #3115 [Debug] > │ fill="#FFFFFF">                                                              │

00:00:32 #3116 [Debug] > │ range for a baseball hit at 45 m/s                                           │

00:00:32 #3117 [Debug] > │ </text>                                                                      │

00:00:32 #3118 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="55" y1="424" x2="55" │

00:00:32 #3119 [Debug] > │ y2="75"/>                                                                    │

00:00:32 #3120 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="62" y1="424" x2="62" │

00:00:32 #3121 [Debug] > │ y2="75"/>                                                                    │

00:00:32 #3122 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │

00:00:32 #3123 [Debug] > │ y2="75"/>                                                                    │

00:00:32 #3124 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="77" y1="424" x2="77" │

00:00:32 #3125 [Debug] > │ y2="75"/>                                                                    │

00:00:32 #3126 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="...                         │

00:00:32 #3127 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:32 #3128 [Debug] >

00:00:32 #3129 [Debug] > ╭─[ 1.02s - stdout ]───────────────────────────────────────────────────────────╮

00:00:32 #3130 [Debug] > │ type Mut0 = {mutable l0 : int32}                                             │

00:00:32 #3131 [Debug] > │ and UH0 =                                                                    │

00:00:32 #3132 [Debug] > │     | UH0_0 of float * float * float * float * float * float * float * float │

00:00:32 #3133 [Debug] > │ * float * UH0                                                                │

00:00:32 #3134 [Debug] > │     | UH0_1                                                                  │

00:00:32 #3135 [Debug] > │ and UH1 =                                                                    │

00:00:32 #3136 [Debug] > │     | UH1_0 of float * float * UH1                                           │

00:00:32 #3137 [Debug] > │     | UH1_1                                                                  │

00:00:32 #3138 [Debug] > │ let rec method1 (v0 : Mut0) : bool =                                         │

00:00:32 #3139 [Debug] > │     let v1 : int32 = v0.l0                                                   │

00:00:32 #3140 [Debug] > │     let v2 : bool = v1 < 71                                                  │

00:00:32 #3141 [Debug] > │     v2                                                                       │

00:00:32 #3142 [Debug] > │ and method2 (v0 : int32, v1 : Mut0) : bool =                                 │

00:00:32 #3143 [Debug] > │     let v2 : int32 = v1.l0                                                   │

00:00:32 #3144 [Debug] > │     let v3 : bool = v2 < v0                                                  │

00:00:32 #3145 [Debug] > │     v3                                                                       │

00:00:32 #3146 [Debug] > │ and method4 (v0 : float, v1 : float, v2 : float, v3 : float, v4 : float, v5  │

00:00:32 #3147 [Debug] > │ : float, v6 : float, v7 : float, v8 : float, v9 : int32) : struct (float *   │

00:00:32 #3148 [Debug] > │ float * float * float * float * float * float * float * float) =             │

00:00:32 #3149 [Debug] > │     let v10 : bool = v9 <= 0                                                 │

00:00:32 #3150 [Debug] > │     if v10 then                                                              │

00:00:32 #3151 [Debug] > │         struct (v0, v1, v2, v3, v4, v5, v6, v7, v8)                          │

00:00:32 #3152 [Debug] > │     else                                                                     │

00:00:32 #3153 [Debug] > │         let v11 : float = v6 * v6                                            │

00:00:32 #3154 [Debug] > │         let v12 : float = v7 * v7                                            │

00:00:32 #3155 [Debug] > │         let v13 : float = v11 + v12                                          │

00:00:32 #3156 [Debug] > │         let v14 : float = v8 * v8                                            │

00:00:32 #3157 [Debug] > │         let v15 : float = v13 + v14                                          │

00:00:32 #3158 [Debug] > │         let v16 : float = sqrt v15                                           │

00:00:32 #3159 [Debug] > │         let v17 : float = -0.0007902794129829633 * v16                       │

00:00:32 #3160 [Debug] > │         let v18 : float = v17 * v6                                           │

00:00:32 #3161 [Debug] > │         let v19 : float = v17 * v7                                           │

00:00:32 #3162 [Debug] > │         let v20 : float = v17 * v8                                           │

00:00:32 #3163 [Debug] > │         let v21 : float =  -v1                                               │

00:00:32 #3164 [Debug] > │         let v22 : float = v21 * 9.80665                                      │

00:00:32 #3165 [Debug] > │         let v23 : float = v22 * 0.0                                          │

00:00:32 #3166 [Debug] > │         let v24 : float = v23 + v18                                          │

00:00:32 #3167 [Debug] > │         let v25 : float = v23 + v19                                          │

00:00:32 #3168 [Debug] > │         let v26 : float = v22 + v20                                          │

00:00:32 #3169 [Debug] > │         let v27 : float = v24 / v1                                           │

00:00:32 #3170 [Debug] > │         let v28 : float = v25 / v1                                           │

00:00:32 #3171 [Debug] > │         let v29 : float = v26 / v1                                           │

00:00:32 #3172 [Debug] > │         let v30 : float = 0.01 * v27                                         │

00:00:32 #3173 [Debug] > │         let v31 : float = 0.01 * v28                                         │

00:00:32 #3174 [Debug] > │         let v32 : float = 0.01 * v29                                         │

00:00:32 #3175 [Debug] > │         let v33 : float = v6 + v30                                           │

00:00:32 #3176 [Debug] > │         let v34 : float = v7 + v31                                           │

00:00:32 #3177 [Debug] > │         let v35 : float = v8 + v32                                           │

00:00:32 #3178 [Debug] > │         let v36 : float = v5 + 0.01                                          │

00:00:32 #3179 [Debug] > │         let v37 : float = 0.01 * v33                                         │

00:00:32 #3180 [Debug] > │         let v38 : float = 0.01 * v34                                         │

00:00:32 #3181 [Debug] > │         let v39 : float = 0.01 * v35                                         │

00:00:32 #3182 [Debug] > │         let v40 : float = v2 + v37                                           │

00:00:32 #3183 [Debug] > │         let v41 : float = v3 + v38                                           │

00:00:32 #3184 [Debug] > │         let v42 : float = v4 + v39                                           │

00:00:32 #3185 [Debug] > │         let v43 : int32 = v9 - 1                                             │

00:00:32 #3186 [Debug] > │         method4(v0, v1, v40, v41, v42, v36, v33, v34, v35, v43)              │

00:00:32 #3187 [Debug] > │ and method5 (v0 : UH0, v1 : UH0) : UH0 =                                     │

00:00:32 #3188 [Debug] > │     match v0 with                                                            │

00:00:32 #3189 [Debug] > │     | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *)          │

00:00:32 #3190 [Debug] > │         let v12 : UH0 = UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v1)       │

00:00:32 #3191 [Debug] > │         method5(v11, v12)                                                    │

00:00:32 #3192 [Debug] > │     | UH0_1 -> (* Nil *)                                                     │

00:00:32 #3193 [Debug] > │         v1                                                                   │

00:00:32 #3194 [Debug] > │ and method3 (v0 : float, v1 : float, v2 : UH0, v3 : int32) : UH0 =           │

00:00:32 #3195 [Debug] > │     let v4 : float = 0.0                                                     │

00:00:32 #3196 [Debug] > │     let v5 : float = 0.145                                                   │

00:00:32 #3197 [Debug] > │     let v6 : float = 0.0                                                     │

00:00:32 #3198 [Debug] > │     let v7 : float = 0.0                                                     │

00:00:32 #3199 [Debug] > │     let v8 : float = 0.0                                                     │

00:00:32 #3200 [Debug] > │     let v9 : float = 0.0                                                     │

00:00:32 #3201 [Debug] > │     let v10 : float = 0.0                                                    │

00:00:32 #3202 [Debug] > │     let struct (v11 : float, v12 : float, v13 : float, v14 : float, v15 :    │

00:00:32 #3203 [Debug] > │ float, v16 : float, v17 : float, v18 : float, v19 : float) = method4(v4, v5, │

00:00:32 #3204 [Debug] > │ v6, v7, v8, v9, v10, v0, v1, v3)                                             │

00:00:32 #3205 [Debug] > │     let v20 : bool = v15 >= 0.0                                              │

00:00:32 #3206 [Debug] > │     if v20 then                                                              │

00:00:32 #3207 [Debug] > │         let v21 : UH0 = UH0_0(v11, v12, v13, v14, v15, v16, v17, v18, v19,   │

00:00:32 #3208 [Debug] > │ v2)                                                                          │

00:00:32 #3209 [Debug] > │         let v22 : int32 = v3 + 1                                             │

00:00:32 #3210 [Debug] > │         method3(v0, v1, v21, v22)                                            │

00:00:32 #3211 [Debug] > │     else                                                                     │

00:00:32 #3212 [Debug] > │         let v24 : UH0 = UH0_1                                                │

00:00:32 #3213 [Debug] > │         method5(v2, v24)                                                     │

00:00:32 #3214 [Debug] > │ and method6 (v0 : UH0, v1 : UH1) : UH1 =                                     │

00:00:32 #3215 [Debug] > │     match v0 with                                                            │

00:00:32 #3216 [Debug] > │     | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *)          │

00:00:32 #3217 [Debug] > │         let v12 : UH1 = method6(v11, v1)                                     │

00:00:32 #3218 [Debug] > │         UH1_0(v5, v6, v12)                                                   │

00:00:32 #3219 [Debug] > │     | UH0_1 -> (* Nil *)                                                     │

00:00:32 #3220 [Debug] > │         v1                                                                   │

00:00:32 #3221 [Debug] > │ and method7 (v0 : UH1, v1 : float) : float =                                 │

00:00:32 #3222 [Debug] > │     match v0 with                                                            │

00:00:32 #3223 [Debug] > │     | UH1_0(v2, v3, v4) -> (* Cons *)                                        │

00:00:32 #3224 [Debug] > │         method7(v4, v2)                                                      │

00:00:32 #3225 [Debug] > │     | UH1_1 -> (* Nil *)                                                     │

00:00:32 #3226 [Debug] > │         v1                                                                   │

00:00:32 #3227 [Debug] > │ and method0 () : struct (string * string * string * (struct (string * (float │

00:00:32 #3228 [Debug] > │ []) * (float [])) [])) =                                                     │

00:00:32 #3229 [Debug] > │     let v0 : (float []) = Array.zeroCreate<float> (71)                       │

00:00:32 #3230 [Debug] > │     let v1 : Mut0 = {l0 = 0} : Mut0                                          │

00:00:32 #3231 [Debug] > │     while method1(v1) do                                                     │

00:00:32 #3232 [Debug] > │         let v3 : int32 = v1.l0                                               │

00:00:32 #3233 [Debug] > │         let v4 : float = float v3                                            │

00:00:32 #3234 [Debug] > │         let v5 : float = 10.0 + v4                                           │

00:00:32 #3235 [Debug] > │         v0.[int v3] <- v5                                                    │

00:00:32 #3236 [Debug] > │         let v6 : int32 = v3 + 1                                              │

00:00:32 #3237 [Debug] > │         v1.l0 <- v6                                                          │

00:00:32 #3238 [Debug] > │         ()                                                                   │

00:00:32 #3239 [Debug] > │     let v7 : int32 = v0.Length                                               │

00:00:32 #3240 [Debug] > │     let v8 : (float []) = Array.zeroCreate<float> (v7)                       │

00:00:32 #3241 [Debug] > │     let v9 : Mut0 = {l0 = 0} : Mut0                                          │

00:00:32 #3242 [Debug] > │     while method2(v7, v9) do                                                 │

00:00:32 #3243 [Debug] > │         let v11 : int32 = v9.l0                                              │

00:00:32 #3244 [Debug] > │         let v12 : float = v0.[int v11]                                       │

00:00:32 #3245 [Debug] > │         let v13 : float = v12 * 3.141592653589793                            │

00:00:32 #3246 [Debug] > │         let v14 : float = v13 / 180.0                                        │

00:00:32 #3247 [Debug] > │         let v15 : float = cos v14                                            │

00:00:32 #3248 [Debug] > │         let v16 : float = 45.0 * v15                                         │

00:00:32 #3249 [Debug] > │         let v17 : float = sin v14                                            │

00:00:32 #3250 [Debug] > │         let v18 : float = 45.0 * v17                                         │

00:00:32 #3251 [Debug] > │         let v19 : UH0 = UH0_1                                                │

00:00:32 #3252 [Debug] > │         let v20 : int32 = 0                                                  │

00:00:32 #3253 [Debug] > │         let v21 : UH0 = method3(v16, v18, v19, v20)                          │

00:00:32 #3254 [Debug] > │         let v22 : UH1 = UH1_1                                                │

00:00:32 #3255 [Debug] > │         let v23 : UH1 = method6(v21, v22)                                    │

00:00:32 #3256 [Debug] > │         let v24 : float = 0.0                                                │

00:00:32 #3257 [Debug] > │         let v25 : float = method7(v23, v24)                                  │

00:00:32 #3258 [Debug] > │         v8.[int v11] <- v25                                                  │

00:00:32 #3259 [Debug] > │         let v26 : int32 = v11 + 1                                            │

00:00:32 #3260 [Debug] > │         v9.l0 <- v26                                                         │

00:00:32 #3261 [Debug] > │         ()                                                                   │

00:00:32 #3262 [Debug] > │     let v27 : string = "horizontal range (m)"                                │

00:00:32 #3263 [Debug] > │     let v28 : (struct (string * (float []) * (float [])) []) = [|struct      │

00:00:32 #3264 [Debug] > │ (v27, v0, v8)|]                                                              │

00:00:32 #3265 [Debug] > │     let v29 : string = "range for a baseball hit at 45 m/s"                  │

00:00:32 #3266 [Debug] > │     let v30 : string = "angle above horizontal (degrees)"                    │

00:00:32 #3267 [Debug] > │     let v31 : string = ""                                                    │

00:00:32 #3268 [Debug] > │     struct (v29, v30, v31, v28)                                              │

00:00:32 #3269 [Debug] > │ method0()                                                                    │

00:00:32 #3270 [Debug] > │                                                                              │

00:00:32 #3271 [Debug] > │                                                                              │

00:00:32 #3272 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:32 #3273 [Debug] >

00:00:32 #3274 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:32 #3275 [Debug] > // // test

00:00:32 #3276 [Debug] >

00:00:32 #3277 [Debug] > inl best_angle (min, max) =

00:00:32 #3278 [Debug] >     let rec loop theta_deg (best_range, best_theta_deg) =

00:00:32 #3279 [Debug] >         if theta_deg > max

00:00:32 #3280 [Debug] >         then best_range, best_theta_deg

00:00:32 #3281 [Debug] >         else

00:00:32 #3282 [Debug] >             inl range = baseball_range 0.01 45 theta_deg

00:00:32 #3283 [Debug] >             loop

00:00:32 #3284 [Debug] >                 (theta_deg + 1)

00:00:32 #3285 [Debug] >                 (if range > best_range

00:00:32 #3286 [Debug] >                     then range, theta_deg

00:00:32 #3287 [Debug] >                     else best_range, best_theta_deg)

00:00:32 #3288 [Debug] >     loop min (0f64, min)

00:00:32 #3289 [Debug] >

00:00:32 #3290 [Debug] > best_angle (30f64, 60f64)

00:00:32 #3291 [Debug] > |> _equal (116.77499158246208, 41)

00:00:33 #3292 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-5620-2024-2b725c6a360a\main.spi

00:00:33 #3293 [Debug] >

00:00:33 #3294 [Debug] > ╭─[ 642.34ms - stdout ]────────────────────────────────────────────────────────╮

00:00:33 #3295 [Debug] > │ type UH0 =                                                                   │

00:00:33 #3296 [Debug] > │     | UH0_0 of float * float * float * float * float * float * float * float │

00:00:33 #3297 [Debug] > │ * float * UH0                                                                │

00:00:33 #3298 [Debug] > │     | UH0_1                                                                  │

00:00:33 #3299 [Debug] > │ and UH1 =                                                                    │

00:00:33 #3300 [Debug] > │     | UH1_0 of float * float * UH1                                           │

00:00:33 #3301 [Debug] > │     | UH1_1                                                                  │

00:00:33 #3302 [Debug] > │ let rec method3 (v0 : float, v1 : float, v2 : float, v3 : float, v4 : float, │

00:00:33 #3303 [Debug] > │ v5 : float, v6 : float, v7 : float, v8 : float, v9 : int32) : struct (float  │

00:00:33 #3304 [Debug] > │ * float * float * float * float * float * float * float * float) =           │

00:00:33 #3305 [Debug] > │     let v10 : bool = v9 <= 0                                                 │

00:00:33 #3306 [Debug] > │     if v10 then                                                              │

00:00:33 #3307 [Debug] > │         struct (v0, v1, v2, v3, v4, v5, v6, v7, v8)                          │

00:00:33 #3308 [Debug] > │     else                                                                     │

00:00:33 #3309 [Debug] > │         let v11 : float = v6 * v6                                            │

00:00:33 #3310 [Debug] > │         let v12 : float = v7 * v7                                            │

00:00:33 #3311 [Debug] > │         let v13 : float = v11 + v12                                          │

00:00:33 #3312 [Debug] > │         let v14 : float = v8 * v8                                            │

00:00:33 #3313 [Debug] > │         let v15 : float = v13 + v14                                          │

00:00:33 #3314 [Debug] > │         let v16 : float = sqrt v15                                           │

00:00:33 #3315 [Debug] > │         let v17 : float = -0.0007902794129829633 * v16                       │

00:00:33 #3316 [Debug] > │         let v18 : float = v17 * v6                                           │

00:00:33 #3317 [Debug] > │         let v19 : float = v17 * v7                                           │

00:00:33 #3318 [Debug] > │         let v20 : float = v17 * v8                                           │

00:00:33 #3319 [Debug] > │         let v21 : float =  -v1                                               │

00:00:33 #3320 [Debug] > │         let v22 : float = v21 * 9.80665                                      │

00:00:33 #3321 [Debug] > │         let v23 : float = v22 * 0.0                                          │

00:00:33 #3322 [Debug] > │         let v24 : float = v23 + v18                                          │

00:00:33 #3323 [Debug] > │         let v25 : float = v23 + v19                                          │

00:00:33 #3324 [Debug] > │         let v26 : float = v22 + v20                                          │

00:00:33 #3325 [Debug] > │         let v27 : float = v24 / v1                                           │

00:00:33 #3326 [Debug] > │         let v28 : float = v25 / v1                                           │

00:00:33 #3327 [Debug] > │         let v29 : float = v26 / v1                                           │

00:00:33 #3328 [Debug] > │         let v30 : float = 0.01 * v27                                         │

00:00:33 #3329 [Debug] > │         let v31 : float = 0.01 * v28                                         │

00:00:33 #3330 [Debug] > │         let v32 : float = 0.01 * v29                                         │

00:00:33 #3331 [Debug] > │         let v33 : float = v6 + v30                                           │

00:00:33 #3332 [Debug] > │         let v34 : float = v7 + v31                                           │

00:00:33 #3333 [Debug] > │         let v35 : float = v8 + v32                                           │

00:00:33 #3334 [Debug] > │         let v36 : float = v5 + 0.01                                          │

00:00:33 #3335 [Debug] > │         let v37 : float = 0.01 * v33                                         │

00:00:33 #3336 [Debug] > │         let v38 : float = 0.01 * v34                                         │

00:00:33 #3337 [Debug] > │         let v39 : float = 0.01 * v35                                         │

00:00:33 #3338 [Debug] > │         let v40 : float = v2 + v37                                           │

00:00:33 #3339 [Debug] > │         let v41 : float = v3 + v38                                           │

00:00:33 #3340 [Debug] > │         let v42 : float = v4 + v39                                           │

00:00:33 #3341 [Debug] > │         let v43 : int32 = v9 - 1                                             │

00:00:33 #3342 [Debug] > │         method3(v0, v1, v40, v41, v42, v36, v33, v34, v35, v43)              │

00:00:33 #3343 [Debug] > │ and method4 (v0 : UH0, v1 : UH0) : UH0 =                                     │

00:00:33 #3344 [Debug] > │     match v0 with                                                            │

00:00:33 #3345 [Debug] > │     | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *)          │

00:00:33 #3346 [Debug] > │         let v12 : UH0 = UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v1)       │

00:00:33 #3347 [Debug] > │         method4(v11, v12)                                                    │

00:00:33 #3348 [Debug] > │     | UH0_1 -> (* Nil *)                                                     │

00:00:33 #3349 [Debug] > │         v1                                                                   │

00:00:33 #3350 [Debug] > │ and method2 (v0 : float, v1 : float, v2 : UH0, v3 : int32) : UH0 =           │

00:00:33 #3351 [Debug] > │     let v4 : float = 0.0                                                     │

00:00:33 #3352 [Debug] > │     let v5 : float = 0.145                                                   │

00:00:33 #3353 [Debug] > │     let v6 : float = 0.0                                                     │

00:00:33 #3354 [Debug] > │     let v7 : float = 0.0                                                     │

00:00:33 #3355 [Debug] > │     let v8 : float = 0.0                                                     │

00:00:33 #3356 [Debug] > │     let v9 : float = 0.0                                                     │

00:00:33 #3357 [Debug] > │     let v10 : float = 0.0                                                    │

00:00:33 #3358 [Debug] > │     let struct (v11 : float, v12 : float, v13 : float, v14 : float, v15 :    │

00:00:33 #3359 [Debug] > │ float, v16 : float, v17 : float, v18 : float, v19 : float) = method3(v4, v5, │

00:00:33 #3360 [Debug] > │ v6, v7, v8, v9, v10, v0, v1, v3)                                             │

00:00:33 #3361 [Debug] > │     let v20 : bool = v15 >= 0.0                                              │

00:00:33 #3362 [Debug] > │     if v20 then                                                              │

00:00:33 #3363 [Debug] > │         let v21 : UH0 = UH0_0(v11, v12, v13, v14, v15, v16, v17, v18, v19,   │

00:00:33 #3364 [Debug] > │ v2)                                                                          │

00:00:33 #3365 [Debug] > │         let v22 : int32 = v3 + 1                                             │

00:00:33 #3366 [Debug] > │         method2(v0, v1, v21, v22)                                            │

00:00:33 #3367 [Debug] > │     else                                                                     │

00:00:33 #3368 [Debug] > │         let v24 : UH0 = UH0_1                                                │

00:00:33 #3369 [Debug] > │         method4(v2, v24)                                                     │

00:00:33 #3370 [Debug] > │ and method5 (v0 : UH0, v1 : UH1) : UH1 =                                     │

00:00:33 #3371 [Debug] > │     match v0 with                                                            │

00:00:33 #3372 [Debug] > │     | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *)          │

00:00:33 #3373 [Debug] > │         let v12 : UH1 = method5(v11, v1)                                     │

00:00:33 #3374 [Debug] > │         UH1_0(v5, v6, v12)                                                   │

00:00:33 #3375 [Debug] > │     | UH0_1 -> (* Nil *)                                                     │

00:00:33 #3376 [Debug] > │         v1                                                                   │

00:00:33 #3377 [Debug] > │ and method6 (v0 : UH1, v1 : float) : float =                                 │

00:00:33 #3378 [Debug] > │     match v0 with                                                            │

00:00:33 #3379 [Debug] > │     | UH1_0(v2, v3, v4) -> (* Cons *)                                        │

00:00:33 #3380 [Debug] > │         method6(v4, v2)                                                      │

00:00:33 #3381 [Debug] > │     | UH1_1 -> (* Nil *)                                                     │

00:00:33 #3382 [Debug] > │         v1                                                                   │

00:00:33 #3383 [Debug] > │ and method1 (v0 : float, v1 : float, v2 : float) : struct (float * float) =  │

00:00:33 #3384 [Debug] > │     let v3 : bool = v0 > 60.0                                                │

00:00:33 #3385 [Debug] > │     if v3 then                                                               │

00:00:33 #3386 [Debug] > │         struct (v2, v1)                                                      │

00:00:33 #3387 [Debug] > │     else                                                                     │

00:00:33 #3388 [Debug] > │         let v4 : float = v0 * 3.141592653589793                              │

00:00:33 #3389 [Debug] > │         let v5 : float = v4 / 180.0                                          │

00:00:33 #3390 [Debug] > │         let v6 : float = cos v5                                              │

00:00:33 #3391 [Debug] > │         let v7 : float = 45.0 * v6                                           │

00:00:33 #3392 [Debug] > │         let v8 : float = sin v5                                              │

00:00:33 #3393 [Debug] > │         let v9 : float = 45.0 * v8                                           │

00:00:33 #3394 [Debug] > │         let v10 : UH0 = UH0_1                                                │

00:00:33 #3395 [Debug] > │         let v11 : int32 = 0                                                  │

00:00:33 #3396 [Debug] > │         let v12 : UH0 = method2(v7, v9, v10, v11)                            │

00:00:33 #3397 [Debug] > │         let v13 : UH1 = UH1_1                                                │

00:00:33 #3398 [Debug] > │         let v14 : UH1 = method5(v12, v13)                                    │

00:00:33 #3399 [Debug] > │         let v15 : float = 0.0                                                │

00:00:33 #3400 [Debug] > │         let v16 : float = method6(v14, v15)                                  │

00:00:33 #3401 [Debug] > │         let v17 : float = v0 + 1.0                                           │

00:00:33 #3402 [Debug] > │         let v18 : bool = v16 > v2                                            │

00:00:33 #3403 [Debug] > │         let struct (v19 : float, v20 : float) =                              │

00:00:33 #3404 [Debug] > │             if v18 then                                                      │

00:00:33 #3405 [Debug] > │                 struct (v16, v0)                                             │

00:00:33 #3406 [Debug] > │             else                                                             │

00:00:33 #3407 [Debug] > │                 struct (v2, v1)                                              │

00:00:33 #3408 [Debug] > │         method1(v17, v20, v19)                                               │

00:00:33 #3409 [Debug] > │ and method0 () : unit =                                                      │

00:00:33 #3410 [Debug] > │     let v0 : float = 30.0                                                    │

00:00:33 #3411 [Debug] > │     let v1 : float = 0.0                                                     │

00:00:33 #3412 [Debug] > │     let v2 : float = 30.0                                                    │

00:00:33 #3413 [Debug] > │     let struct (v3 : float, v4 : float) = method1(v0, v2, v1)                │

00:00:33 #3414 [Debug] > │     let v5 : bool = v3 = 116.77499158246208                                  │

00:00:33 #3415 [Debug] > │     let v7 : bool =                                                          │

00:00:33 #3416 [Debug] > │         if v5 then                                                           │

00:00:33 #3417 [Debug] > │             let v6 : bool = v4 = 41.0                                        │

00:00:33 #3418 [Debug] > │             v6                                                               │

00:00:33 #3419 [Debug] > │         else                                                                 │

00:00:33 #3420 [Debug] > │             false                                                            │

00:00:33 #3421 [Debug] > │     let v8 : string = $"_equal / actual: %A{struct (v3, v4)} / expected:     │

00:00:33 #3422 [Debug] > │ %A{struct (116.77499158246208, 41.0)}"                                       │

00:00:33 #3423 [Debug] > │     let v9 : bool = v7 = false                                               │

00:00:33 #3424 [Debug] > │     if v9 then                                                               │

00:00:33 #3425 [Debug] > │         failwith<unit> v8                                                    │

00:00:33 #3426 [Debug] > │ method0()                                                                    │

00:00:33 #3427 [Debug] > │                                                                              │

00:00:33 #3428 [Debug] > │                                                                              │

00:00:33 #3429 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:33 #3430 [Debug] >

00:00:33 #3431 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:33 #3432 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:33 #3433 [Debug] > │ ## relativity_ps                                                             │

00:00:33 #3434 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:33 #3435 [Debug] >

00:00:33 #3436 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:33 #3437 [Debug] > inl relativity_ps fs (st : particle_state) =

00:00:33 #3438 [Debug] >     inl f_net = fs |> listm.map (fun f => f st) |> sum_vec

00:00:33 #3439 [Debug] >     inl c = 299792458

00:00:33 #3440 [Debug] >     inl u = st.velocity ^/ c

00:00:33 #3441 [Debug] >     inl acc = sqrt (1 - (u <.> u)) *^ (f_net ^-^ (f_net <.> u) *^ u) ^/ st.mass

00:00:33 #3442 [Debug] >     d_particle_state {

00:00:33 #3443 [Debug] >         dmdt = 0

00:00:33 #3444 [Debug] >         dqdt = 0

00:00:33 #3445 [Debug] >         dtdt = 1

00:00:33 #3446 [Debug] >         drdt = st.velocity

00:00:33 #3447 [Debug] >         dvdt = acc

00:00:33 #3448 [Debug] >     }

00:00:33 #3449 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-5689-8981-88fed1224cf0\main.spi

00:00:33 #3450 [Debug] >

00:00:33 #3451 [Debug] > ╭─[ 280.91ms - stdout ]────────────────────────────────────────────────────────╮

00:00:33 #3452 [Debug] > │ ()                                                                           │

00:00:33 #3453 [Debug] > │                                                                              │

00:00:33 #3454 [Debug] > │                                                                              │

00:00:33 #3455 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:33 #3456 [Debug] >

00:00:33 #3457 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:33 #3458 [Debug] > // // test

00:00:33 #3459 [Debug] >

00:00:33 #3460 [Debug] > inl year = 365.25 * 24 * 60 * 60

00:00:33 #3461 [Debug] > inl c = 299792458

00:00:33 #3462 [Debug] > inl ~method = runge_kutta_4 100000

00:00:33 #3463 [Debug] > inl forces = [[ fun _ => 10 *^ i_hat () ]]

00:00:33 #3464 [Debug] > inl (particle_state default_particle_state') = default_particle_state ()

00:00:33 #3465 [Debug] > inl initial_state =

00:00:33 #3466 [Debug] >     particle_state { default_particle_state' with

00:00:33 #3467 [Debug] >         mass = 1

00:00:33 #3468 [Debug] >     }

00:00:33 #3469 [Debug] >

00:00:33 #3470 [Debug] > inl newton_states = solver_ method (newton_second_ps forces) initial_state

00:00:33 #3471 [Debug] > inl relativity_states = solver_ method (relativity_ps forces) initial_state

00:00:33 #3472 [Debug] >

00:00:33 #3473 [Debug] > inl newton_x, newton_y =

00:00:33 #3474 [Debug] >     newton_states

00:00:33 #3475 [Debug] >     >> Some

00:00:33 #3476 [Debug] >     |> seq.take_while_ (fun (particle_state st) (_ : i32) => st.time <= year)

00:00:33 #3477 [Debug] >     |> listm.map (fun (particle_state st) => st.time / year, st.velocity.x / c)

00:00:33 #3478 [Debug] >     |> listm'.unzip

00:00:33 #3479 [Debug] >

00:00:33 #3480 [Debug] > inl _, relativity_y =

00:00:33 #3481 [Debug] >     relativity_states

00:00:33 #3482 [Debug] >     >> Some

00:00:33 #3483 [Debug] >     |> seq.take_while_ (fun (particle_state st) (_ : i32) => st.time <= year)

00:00:33 #3484 [Debug] >     |> listm.map (fun (particle_state st) => st.time / year, st.velocity.x / c)

00:00:33 #3485 [Debug] >     |> listm'.unzip

00:00:33 #3486 [Debug] >

00:00:33 #3487 [Debug] > inl newton_x : a i32 _ = newton_x |> listm.toArray

00:00:33 #3488 [Debug] > inl newton_y : a i32 _ = newton_y |> listm.toArray

00:00:33 #3489 [Debug] > inl relativity_y : a i32 _ = relativity_y |> listm.toArray

00:00:33 #3490 [Debug] >

00:00:33 #3491 [Debug] > "response to a constant force",

00:00:33 #3492 [Debug] > "time (years)",

00:00:33 #3493 [Debug] > "velocity (multiples of c)",

00:00:33 #3494 [Debug] > ;[[

00:00:33 #3495 [Debug] >     "newtonian", newton_x, newton_y

00:00:33 #3496 [Debug] >     "relativistic", newton_x, relativity_y

00:00:33 #3497 [Debug] > ]]

00:00:34 #3498 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-5718-1826-1722f481e00b\main.spi

00:00:34 #3499 [Debug] >

00:00:34 #3500 [Debug] > ╭─[ 621.83ms - return value ]──────────────────────────────────────────────────╮

00:00:34 #3501 [Debug] > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │

00:00:34 #3502 [Debug] > │ xmlns="http://www.w3.org/2000/svg">                                          │

00:00:34 #3503 [Debug] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │

00:00:34 #3504 [Debug] > │ stroke="none"/>                                                              │

00:00:34 #3505 [Debug] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │

00:00:34 #3506 [Debug] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │

00:00:34 #3507 [Debug] > │ fill="#FFFFFF">                                                              │

00:00:34 #3508 [Debug] > │ response to a constant force                                                 │

00:00:34 #3509 [Debug] > │ </text>                                                                      │

00:00:34 #3510 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │

00:00:34 #3511 [Debug] > │ y2="75"/>                                                                    │

00:00:34 #3512 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │

00:00:34 #3513 [Debug] > │ y2="75"/>                                                                    │

00:00:34 #3514 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │

00:00:34 #3515 [Debug] > │ y2="75"/>                                                                    │

00:00:34 #3516 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │

00:00:34 #3517 [Debug] > │ y2="75"/>                                                                    │

00:00:34 #3518 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1=...                   │

00:00:34 #3519 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:34 #3520 [Debug] >

00:00:34 #3521 [Debug] > ╭─[ 632.64ms - stdout ]────────────────────────────────────────────────────────╮

00:00:34 #3522 [Debug] > │ type UH0 =                                                                   │

00:00:34 #3523 [Debug] > │     | UH0_0 of float * float * float * float * float * float * float * float │

00:00:34 #3524 [Debug] > │ * float * UH0                                                                │

00:00:34 #3525 [Debug] > │     | UH0_1                                                                  │

00:00:34 #3526 [Debug] > │ and UH1 =                                                                    │

00:00:34 #3527 [Debug] > │     | UH1_0 of float * float * UH1                                           │

00:00:34 #3528 [Debug] > │     | UH1_1                                                                  │

00:00:34 #3529 [Debug] > │ and UH2 =                                                                    │

00:00:34 #3530 [Debug] > │     | UH2_0 of float * UH2                                                   │

00:00:34 #3531 [Debug] > │     | UH2_1                                                                  │

00:00:34 #3532 [Debug] > │ let rec closure1 (v0 : (struct (float * float * float * float * float *      │

00:00:34 #3533 [Debug] > │ float * float * float * float) -> struct (float * float * float * float *    │

00:00:34 #3534 [Debug] > │ float * float * float * float * float))) struct (v1 : float, v2 : float, v3  │

00:00:34 #3535 [Debug] > │ : float, v4 : float, v5 : float, v6 : float, v7 : float, v8 : float, v9 :    │

00:00:34 #3536 [Debug] > │ float) : struct (float * float * float * float * float * float * float *     │

00:00:34 #3537 [Debug] > │ float * float) =                                                             │

00:00:34 #3538 [Debug] > │     let struct (v10 : float, v11 : float, v12 : float, v13 : float, v14 :    │

00:00:34 #3539 [Debug] > │ float, v15 : float, v16 : float, v17 : float, v18 : float) = v0 struct (v1,  │

00:00:34 #3540 [Debug] > │ v2, v3, v4, v5, v6, v7, v8, v9)                                              │

00:00:34 #3541 [Debug] > │     let v19 : float = v15 * 50000.0                                          │

00:00:34 #3542 [Debug] > │     let v20 : float = v6 + v19                                               │

00:00:34 #3543 [Debug] > │     let v21 : float = 50000.0 * v12                                          │

00:00:34 #3544 [Debug] > │     let v22 : float = 50000.0 * v13                                          │

00:00:34 #3545 [Debug] > │     let v23 : float = 50000.0 * v14                                          │

00:00:34 #3546 [Debug] > │     let v24 : float = v3 + v21                                               │

00:00:34 #3547 [Debug] > │     let v25 : float = v4 + v22                                               │

00:00:34 #3548 [Debug] > │     let v26 : float = v5 + v23                                               │

00:00:34 #3549 [Debug] > │     let v27 : float = 50000.0 * v16                                          │

00:00:34 #3550 [Debug] > │     let v28 : float = 50000.0 * v17                                          │

00:00:34 #3551 [Debug] > │     let v29 : float = 50000.0 * v18                                          │

00:00:34 #3552 [Debug] > │     let v30 : float = v7 + v27                                               │

00:00:34 #3553 [Debug] > │     let v31 : float = v8 + v28                                               │

00:00:34 #3554 [Debug] > │     let v32 : float = v9 + v29                                               │

00:00:34 #3555 [Debug] > │     let struct (v33 : float, v34 : float, v35 : float, v36 : float, v37 :    │

00:00:34 #3556 [Debug] > │ float, v38 : float, v39 : float, v40 : float, v41 : float) = v0 struct (v1,  │

00:00:34 #3557 [Debug] > │ v2, v24, v25, v26, v20, v30, v31, v32)                                       │

00:00:34 #3558 [Debug] > │     let v42 : float = v38 * 50000.0                                          │

00:00:34 #3559 [Debug] > │     let v43 : float = v6 + v42                                               │

00:00:34 #3560 [Debug] > │     let v44 : float = 50000.0 * v35                                          │

00:00:34 #3561 [Debug] > │     let v45 : float = 50000.0 * v36                                          │

00:00:34 #3562 [Debug] > │     let v46 : float = 50000.0 * v37                                          │

00:00:34 #3563 [Debug] > │     let v47 : float = v3 + v44                                               │

00:00:34 #3564 [Debug] > │     let v48 : float = v4 + v45                                               │

00:00:34 #3565 [Debug] > │     let v49 : float = v5 + v46                                               │

00:00:34 #3566 [Debug] > │     let v50 : float = 50000.0 * v39                                          │

00:00:34 #3567 [Debug] > │     let v51 : float = 50000.0 * v40                                          │

00:00:34 #3568 [Debug] > │     let v52 : float = 50000.0 * v41                                          │

00:00:34 #3569 [Debug] > │     let v53 : float = v7 + v50                                               │

00:00:34 #3570 [Debug] > │     let v54 : float = v8 + v51                                               │

00:00:34 #3571 [Debug] > │     let v55 : float = v9 + v52                                               │

00:00:34 #3572 [Debug] > │     let struct (v56 : float, v57 : float, v58 : float, v59 : float, v60 :    │

00:00:34 #3573 [Debug] > │ float, v61 : float, v62 : float, v63 : float, v64 : float) = v0 struct (v1,  │

00:00:34 #3574 [Debug] > │ v2, v47, v48, v49, v43, v53, v54, v55)                                       │

00:00:34 #3575 [Debug] > │     let v65 : float = v61 * 100000.0                                         │

00:00:34 #3576 [Debug] > │     let v66 : float = v6 + v65                                               │

00:00:34 #3577 [Debug] > │     let v67 : float = 100000.0 * v58                                         │

00:00:34 #3578 [Debug] > │     let v68 : float = 100000.0 * v59                                         │

00:00:34 #3579 [Debug] > │     let v69 : float = 100000.0 * v60                                         │

00:00:34 #3580 [Debug] > │     let v70 : float = v3 + v67                                               │

00:00:34 #3581 [Debug] > │     let v71 : float = v4 + v68                                               │

00:00:34 #3582 [Debug] > │     let v72 : float = v5 + v69                                               │

00:00:34 #3583 [Debug] > │     let v73 : float = 100000.0 * v62                                         │

00:00:34 #3584 [Debug] > │     let v74 : float = 100000.0 * v63                                         │

00:00:34 #3585 [Debug] > │     let v75 : float = 100000.0 * v64                                         │

00:00:34 #3586 [Debug] > │     let v76 : float = v7 + v73                                               │

00:00:34 #3587 [Debug] > │     let v77 : float = v8 + v74                                               │

00:00:34 #3588 [Debug] > │     let v78 : float = v9 + v75                                               │

00:00:34 #3589 [Debug] > │     let struct (v79 : float, v80 : float, v81 : float, v82 : float, v83 :    │

00:00:34 #3590 [Debug] > │ float, v84 : float, v85 : float, v86 : float, v87 : float) = v0 struct (v1,  │

00:00:34 #3591 [Debug] > │ v2, v70, v71, v72, v66, v76, v77, v78)                                       │

00:00:34 #3592 [Debug] > │     let v88 : float = v10 + v33                                              │

00:00:34 #3593 [Debug] > │     let v89 : float = v11 + v34                                              │

00:00:34 #3594 [Debug] > │     let v90 : float = v15 + v38                                              │

00:00:34 #3595 [Debug] > │     let v91 : float = v12 + v35                                              │

00:00:34 #3596 [Debug] > │     let v92 : float = v13 + v36                                              │

00:00:34 #3597 [Debug] > │     let v93 : float = v14 + v37                                              │

00:00:34 #3598 [Debug] > │     let v94 : float = v16 + v39                                              │

00:00:34 #3599 [Debug] > │     let v95 : float = v17 + v40                                              │

00:00:34 #3600 [Debug] > │     let v96 : float = v18 + v41                                              │

00:00:34 #3601 [Debug] > │     let v97 : float = v88 + v33                                              │

00:00:34 #3602 [Debug] > │     let v98 : float = v89 + v34                                              │

00:00:34 #3603 [Debug] > │     let v99 : float = v90 + v38                                              │

00:00:34 #3604 [Debug] > │     let v100 : float = v91 + v35                                             │

00:00:34 #3605 [Debug] > │     let v101 : float = v92 + v36                                             │

00:00:34 #3606 [Debug] > │     let v102 : float = v93 + v37                                             │

00:00:34 #3607 [Debug] > │     let v103 : float = v94 + v39                                             │

00:00:34 #3608 [Debug] > │     let v104 : float = v95 + v40                                             │

00:00:34 #3609 [Debug] > │     let v105 : float = v96 + v41                                             │

00:00:34 #3610 [Debug] > │     let v106 : float = v97 + v56                                             │

00:00:34 #3611 [Debug] > │     let v107 : float = v98 + v57                                             │

00:00:34 #3612 [Debug] > │     let v108 : float = v99 + v61                                             │

00:00:34 #3613 [Debug] > │     let v109 : float = v100 + v58                                            │

00:00:34 #3614 [Debug] > │     let v110 : float = v101 + v59                                            │

00:00:34 #3615 [Debug] > │     let v111 : float = v102 + v60                                            │

00:00:34 #3616 [Debug] > │     let v112 : float = v103 + v62                                            │

00:00:34 #3617 [Debug] > │     let v113 : float = v104 + v63                                            │

00:00:34 #3618 [Debug] > │     let v114 : float = v105 + v64                                            │

00:00:34 #3619 [Debug] > │     let v115 : float = v106 + v56                                            │

00:00:34 #3620 [Debug] > │     let v116 : float = v107 + v57                                            │

00:00:34 #3621 [Debug] > │     let v117 : float = v108 + v61                                            │

00:00:34 #3622 [Debug] > │     let v118 : float = v109 + v58                                            │

00:00:34 #3623 [Debug] > │     let v119 : float = v110 + v59                                            │

00:00:34 #3624 [Debug] > │     let v120 : float = v111 + v60                                            │

00:00:34 #3625 [Debug] > │     let v121 : float = v112 + v62                                            │

00:00:34 #3626 [Debug] > │     let v122 : float = v113 + v63                                            │

00:00:34 #3627 [Debug] > │     let v123 : float = v114 + v64                                            │

00:00:34 #3628 [Debug] > │     let v124 : float = v115 + v79                                            │

00:00:34 #3629 [Debug] > │     let v125 : float = v116 + v80                                            │

00:00:34 #3630 [Debug] > │     let v126 : float = v117 + v84                                            │

00:00:34 #3631 [Debug] > │     let v127 : float = v118 + v81                                            │

00:00:34 #3632 [Debug] > │     let v128 : float = v119 + v82                                            │

00:00:34 #3633 [Debug] > │     let v129 : float = v120 + v83                                            │

00:00:34 #3634 [Debug] > │     let v130 : float = v121 + v85                                            │

00:00:34 #3635 [Debug] > │     let v131 : float = v122 + v86                                            │

00:00:34 #3636 [Debug] > │     let v132 : float = v123 + v87                                            │

00:00:34 #3637 [Debug] > │     let v133 : float = v126 * 16666.666666666668                             │

00:00:34 #3638 [Debug] > │     let v134 : float = v6 + v133                                             │

00:00:34 #3639 [Debug] > │     let v135 : float = 16666.666666666668 * v127                             │

00:00:34 #3640 [Debug] > │     let v136 : float = 16666.666666666668 * v128                             │

00:00:34 #3641 [Debug] > │     let v137 : float = 16666.666666666668 * v129                             │

00:00:34 #3642 [Debug] > │     let v138 : float = v3 + v135                                             │

00:00:34 #3643 [Debug] > │     let v139 : float = v4 + v136                                             │

00:00:34 #3644 [Debug] > │     let v140 : float = v5 + v137                                             │

00:00:34 #3645 [Debug] > │     let v141 : float = 16666.666666666668 * v130                             │

00:00:34 #3646 [Debug] > │     let v142 : float = 16666.666666666668 * v131                             │

00:00:34 #3647 [Debug] > │     let v143 : float = 16666.666666666668 * v132                             │

00:00:34 #3648 [Debug] > │     let v144 : float = v7 + v141                                             │

00:00:34 #3649 [Debug] > │     let v145 : float = v8 + v142                                             │

00:00:34 #3650 [Debug] > │     let v146 : float = v9 + v143                                             │

00:00:34 #3651 [Debug] > │     struct (v1, v2, v138, v139, v140, v134, v144, v145, v146)                │

00:00:34 #3652 [Debug] > │ and closure0 () (v0 : (struct (float * float * float * float * float * float │

00:00:34 #3653 [Debug] > │ * float * float * float) -> struct (float * float * float * float * float *  │

00:00:34 #3654 [Debug] > │ float * float * float * float))) : (struct (float * float * float * float *  │

00:00:34 #3655 [Debug] > │ float * float * float * float * float) -> struct (float * float * float *    │

00:00:34 #3656 [Debug] > │ float * float * float * float * float * float)) =                            │

00:00:34 #3657 [Debug] > │     closure1(v0)                                                             │

00:00:34 #3658 [Debug] > │ and closure2 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 : │

00:00:34 #3659 [Debug] > │ float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float *     │

00:00:34 #3660 [Debug] > │ float * float * float * float * float * float * float * float) =             │

00:00:34 #3661 [Debug] > │     let v9 : float = 10.0 / v1                                               │

00:00:34 #3662 [Debug] > │     let v10 : float = 0.0 / v1                                               │

00:00:34 #3663 [Debug] > │     struct (0.0, 0.0, v6, v7, v8, 1.0, v9, v10, v10)                         │

00:00:34 #3664 [Debug] > │ and closure3 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 : │

00:00:34 #3665 [Debug] > │ float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float *     │

00:00:34 #3666 [Debug] > │ float * float * float * float * float * float * float * float) =             │

00:00:34 #3667 [Debug] > │     let v9 : float = v6 / 299792458.0                                        │

00:00:34 #3668 [Debug] > │     let v10 : float = v7 / 299792458.0                                       │

00:00:34 #3669 [Debug] > │     let v11 : float = v8 / 299792458.0                                       │

00:00:34 #3670 [Debug] > │     let v12 : float = v9 * v9                                                │

00:00:34 #3671 [Debug] > │     let v13 : float = v10 * v10                                              │

00:00:34 #3672 [Debug] > │     let v14 : float = v12 + v13                                              │

00:00:34 #3673 [Debug] > │     let v15 : float = v11 * v11                                              │

00:00:34 #3674 [Debug] > │     let v16 : float = v14 + v15                                              │

00:00:34 #3675 [Debug] > │     let v17 : float = 1.0 - v16                                              │

00:00:34 #3676 [Debug] > │     let v18 : float = sqrt v17                                               │

00:00:34 #3677 [Debug] > │     let v19 : float = 10.0 * v9                                              │

00:00:34 #3678 [Debug] > │     let v20 : float = 0.0 * v10                                              │

00:00:34 #3679 [Debug] > │     let v21 : float = v19 + v20                                              │

00:00:34 #3680 [Debug] > │     let v22 : float = 0.0 * v11                                              │

00:00:34 #3681 [Debug] > │     let v23 : float = v21 + v22                                              │

00:00:34 #3682 [Debug] > │     let v24 : float = v23 * v9                                               │

00:00:34 #3683 [Debug] > │     let v25 : float = v23 * v10                                              │

00:00:34 #3684 [Debug] > │     let v26 : float = v23 * v11                                              │

00:00:34 #3685 [Debug] > │     let v27 : float = -1.0 * v24                                             │

00:00:34 #3686 [Debug] > │     let v28 : float = -1.0 * v25                                             │

00:00:34 #3687 [Debug] > │     let v29 : float = -1.0 * v26                                             │

00:00:34 #3688 [Debug] > │     let v30 : float = 10.0 + v27                                             │

00:00:34 #3689 [Debug] > │     let v31 : float = v18 * v30                                              │

00:00:34 #3690 [Debug] > │     let v32 : float = v18 * v28                                              │

00:00:34 #3691 [Debug] > │     let v33 : float = v18 * v29                                              │

00:00:34 #3692 [Debug] > │     let v34 : float = v31 / v1                                               │

00:00:34 #3693 [Debug] > │     let v35 : float = v32 / v1                                               │

00:00:34 #3694 [Debug] > │     let v36 : float = v33 / v1                                               │

00:00:34 #3695 [Debug] > │     struct (0.0, 0.0, v6, v7, v8, 1.0, v34, v35, v36)                        │

00:00:34 #3696 [Debug] > │ and method2 (v0 : (struct (float * float * float * float * float * float *   │

00:00:34 #3697 [Debug] > │ float * float * float) -> struct (float * float * float * float * float *    │

00:00:34 #3698 [Debug] > │ float * float * float * float)), v1 : float, v2 : float, v3 : float, v4 :    │

00:00:34 #3699 [Debug] > │ float, v5 : float, v6 : float, v7 : float, v8 : float, v9 : float, v10 :     │

00:00:34 #3700 [Debug] > │ int32) : struct (float * float * float * float * float * float * float *     │

00:00:34 #3701 [Debug] > │ float * float) =                                                             │

00:00:34 #3702 [Debug] > │     let v11 : bool = v10 <= 0                                                │

00:00:34 #3703 [Debug] > │     if v11 then                                                              │

00:00:34 #3704 [Debug] > │         struct (v1, v2, v3, v4, v5, v6, v7, v8, v9)                          │

00:00:34 #3705 [Debug] > │     else                                                                     │

00:00:34 #3706 [Debug] > │         let struct (v12 : float, v13 : float, v14 : float, v15 : float, v16  │

00:00:34 #3707 [Debug] > │ : float, v17 : float, v18 : float, v19 : float, v20 : float) = v0 struct     │

00:00:34 #3708 [Debug] > │ (v1, v2, v3, v4, v5, v6, v7, v8, v9)                                         │

00:00:34 #3709 [Debug] > │         let v21 : int32 = v10 - 1                                            │

00:00:34 #3710 [Debug] > │         method2(v0, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21)        │

00:00:34 #3711 [Debug] > │ and method3 (v0 : UH0, v1 : UH0) : UH0 =                                     │

00:00:34 #3712 [Debug] > │     match v0 with                                                            │

00:00:34 #3713 [Debug] > │     | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *)          │

00:00:34 #3714 [Debug] > │         let v12 : UH0 = UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v1)       │

00:00:34 #3715 [Debug] > │         method3(v11, v12)                                                    │

00:00:34 #3716 [Debug] > │     | UH0_1 -> (* Nil *)                                                     │

00:00:34 #3717 [Debug] > │         v1                                                                   │

00:00:34 #3718 [Debug] > │ and method1 (v0 : (struct (float * float * float * float * float * float *   │

00:00:34 #3719 [Debug] > │ float * float * float) -> struct (float * float * float * float * float *    │

00:00:34 #3720 [Debug] > │ float * float * float * float)), v1 : UH0, v2 : int32) : UH0 =               │

00:00:34 #3721 [Debug] > │     let v3 : float = 0.0                                                     │

00:00:34 #3722 [Debug] > │     let v4 : float = 1.0                                                     │

00:00:34 #3723 [Debug] > │     let v5 : float = 0.0                                                     │

00:00:34 #3724 [Debug] > │     let v6 : float = 0.0                                                     │

00:00:34 #3725 [Debug] > │     let v7 : float = 0.0                                                     │

00:00:34 #3726 [Debug] > │     let v8 : float = 0.0                                                     │

00:00:34 #3727 [Debug] > │     let v9 : float = 0.0                                                     │

00:00:34 #3728 [Debug] > │     let v10 : float = 0.0                                                    │

00:00:34 #3729 [Debug] > │     let v11 : float = 0.0                                                    │

00:00:34 #3730 [Debug] > │     let struct (v12 : float, v13 : float, v14 : float, v15 : float, v16 :    │

00:00:34 #3731 [Debug] > │ float, v17 : float, v18 : float, v19 : float, v20 : float) = method2(v0, v3, │

00:00:34 #3732 [Debug] > │ v4, v5, v6, v7, v8, v9, v10, v11, v2)                                        │

00:00:34 #3733 [Debug] > │     let v21 : bool = v17 <= 31557600.0                                       │

00:00:34 #3734 [Debug] > │     if v21 then                                                              │

00:00:34 #3735 [Debug] > │         let v22 : UH0 = UH0_0(v12, v13, v14, v15, v16, v17, v18, v19, v20,   │

00:00:34 #3736 [Debug] > │ v1)                                                                          │

00:00:34 #3737 [Debug] > │         let v23 : int32 = v2 + 1                                             │

00:00:34 #3738 [Debug] > │         method1(v0, v22, v23)                                                │

00:00:34 #3739 [Debug] > │     else                                                                     │

00:00:34 #3740 [Debug] > │         let v25 : UH0 = UH0_1                                                │

00:00:34 #3741 [Debug] > │         method3(v1, v25)                                                     │

00:00:34 #3742 [Debug] > │ and method4 (v0 : UH0, v1 : UH1) : UH1 =                                     │

00:00:34 #3743 [Debug] > │     match v0 with                                                            │

00:00:34 #3744 [Debug] > │     | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *)          │

00:00:34 #3745 [Debug] > │         let v12 : UH1 = method4(v11, v1)                                     │

00:00:34 #3746 [Debug] > │         let v13 : float = v7 / 31557600.0                                    │

00:00:34 #3747 [Debug] > │         let v14 : float = v8 / 299792458.0                                   │

00:00:34 #3748 [Debug] > │         UH1_0(v13, v14, v12)                                                 │

00:00:34 #3749 [Debug] > │     | UH0_1 -> (* Nil *)                                                     │

00:00:34 #3750 [Debug] > │         v1                                                                   │

00:00:34 #3751 [Debug] > │ and method5 (v0 : UH1, v1 : UH2, v2 : UH2) : struct (UH2 * UH2) =            │

00:00:34 #3752 [Debug] > │     match v0 with                                                            │

00:00:34 #3753 [Debug] > │     | UH1_0(v3, v4, v5) -> (* Cons *)                                        │

00:00:34 #3754 [Debug] > │         let v6 : UH2 = UH2_0(v3, v1)                                         │

00:00:34 #3755 [Debug] > │         let v7 : UH2 = UH2_0(v4, v2)                                         │

00:00:34 #3756 [Debug] > │         method5(v5, v6, v7)                                                  │

00:00:34 #3757 [Debug] > │     | UH1_1 -> (* Nil *)                                                     │

00:00:34 #3758 [Debug] > │         struct (v1, v2)                                                      │

00:00:34 #3759 [Debug] > │ and method6 (v0 : UH2, v1 : UH2) : UH2 =                                     │

00:00:34 #3760 [Debug] > │     match v0 with                                                            │

00:00:34 #3761 [Debug] > │     | UH2_0(v2, v3) -> (* Cons *)                                            │

00:00:34 #3762 [Debug] > │         let v4 : UH2 = UH2_0(v2, v1)                                         │

00:00:34 #3763 [Debug] > │         method6(v3, v4)                                                      │

00:00:34 #3764 [Debug] > │     | UH2_1 -> (* Nil *)                                                     │

00:00:34 #3765 [Debug] > │         v1                                                                   │

00:00:34 #3766 [Debug] > │ and method7 (v0 : (struct (float * float * float * float * float * float *   │

00:00:34 #3767 [Debug] > │ float * float * float) -> struct (float * float * float * float * float *    │

00:00:34 #3768 [Debug] > │ float * float * float * float)), v1 : UH0, v2 : int32) : UH0 =               │

00:00:34 #3769 [Debug] > │     let v3 : float = 0.0                                                     │

00:00:34 #3770 [Debug] > │     let v4 : float = 1.0                                                     │

00:00:34 #3771 [Debug] > │     let v5 : float = 0.0                                                     │

00:00:34 #3772 [Debug] > │     let v6 : float = 0.0                                                     │

00:00:34 #3773 [Debug] > │     let v7 : float = 0.0                                                     │

00:00:34 #3774 [Debug] > │     let v8 : float = 0.0                                                     │

00:00:34 #3775 [Debug] > │     let v9 : float = 0.0                                                     │

00:00:34 #3776 [Debug] > │     let v10 : float = 0.0                                                    │

00:00:34 #3777 [Debug] > │     let v11 : float = 0.0                                                    │

00:00:34 #3778 [Debug] > │     let struct (v12 : float, v13 : float, v14 : float, v15 : float, v16 :    │

00:00:34 #3779 [Debug] > │ float, v17 : float, v18 : float, v19 : float, v20 : float) = method2(v0, v3, │

00:00:34 #3780 [Debug] > │ v4, v5, v6, v7, v8, v9, v10, v11, v2)                                        │

00:00:34 #3781 [Debug] > │     let v21 : bool = v17 <= 31557600.0                                       │

00:00:34 #3782 [Debug] > │     if v21 then                                                              │

00:00:34 #3783 [Debug] > │         let v22 : UH0 = UH0_0(v12, v13, v14, v15, v16, v17, v18, v19, v20,   │

00:00:34 #3784 [Debug] > │ v1)                                                                          │

00:00:34 #3785 [Debug] > │         let v23 : int32 = v2 + 1                                             │

00:00:34 #3786 [Debug] > │         method7(v0, v22, v23)                                                │

00:00:34 #3787 [Debug] > │     else                                                                     │

00:00:34 #3788 [Debug] > │         let v25 : UH0 = UH0_1                                                │

00:00:34 #3789 [Debug] > │         method3(v1, v25)                                                     │

00:00:34 #3790 [Debug] > │ and method8 (v0 : UH0, v1 : UH1) : UH1 =                                     │

00:00:34 #3791 [Debug] > │     match v0 with                                                            │

00:00:34 #3792 [Debug] > │     | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *)          │

00:00:34 #3793 [Debug] > │         let v12 : UH1 = method8(v11, v1)                                     │

00:00:34 #3794 [Debug] > │         let v13 : float = v7 / 31557600.0                                    │

00:00:34 #3795 [Debug] > │         let v14 : float = v8 / 299792458.0                                   │

00:00:34 #3796 [Debug] > │         UH1_0(v13, v14, v12)                                                 │

00:00:34 #3797 [Debug] > │     | UH0_1 -> (* Nil *)                                                     │

00:00:34 #3798 [Debug] > │         v1                                                                   │

00:00:34 #3799 [Debug] > │ and method10 (v0 : UH2, v1 : int32) : int32 =                                │

00:00:34 #3800 [Debug] > │     match v0 with                                                            │

00:00:34 #3801 [Debug] > │     | UH2_0(v2, v3) -> (* Cons *)                                            │

00:00:34 #3802 [Debug] > │         let v4 : int32 = v1 + 1                                              │

00:00:34 #3803 [Debug] > │         method10(v3, v4)                                                     │

00:00:34 #3804 [Debug] > │     | UH2_1 -> (* Nil *)                                                     │

00:00:34 #3805 [Debug] > │         v1                                                                   │

00:00:34 #3806 [Debug] > │ and method11 (v0 : (float []), v1 : UH2, v2 : int32) : int32 =               │

00:00:34 #3807 [Debug] > │     match v1 with                                                            │

00:00:34 #3808 [Debug] > │     | UH2_0(v3, v4) -> (* Cons *)                                            │

00:00:34 #3809 [Debug] > │         v0.[int v2] <- v3                                                    │

00:00:34 #3810 [Debug] > │         let v5 : int32 = v2 + 1                                              │

00:00:34 #3811 [Debug] > │         method11(v0, v4, v5)                                                 │

00:00:34 #3812 [Debug] > │     | UH2_1 -> (* Nil *)                                                     │

00:00:34 #3813 [Debug] > │         v2                                                                   │

00:00:34 #3814 [Debug] > │ and method9 (v0 : UH2) : (float []) =                                        │

00:00:34 #3815 [Debug] > │     let v1 : int32 = 0                                                       │

00:00:34 #3816 [Debug] > │     let v2 : int32 = method10(v0, v1)                                        │

00:00:34 #3817 [Debug] > │     let v3 : (float []) = Array.zeroCreate<float> (v2)                       │

00:00:34 #3818 [Debug] > │     let v4 : int32 = 0                                                       │

00:00:34 #3819 [Debug] > │     let v5 : int32 = method11(v3, v0, v4)                                    │

00:00:34 #3820 [Debug] > │     v3                                                                       │

00:00:34 #3821 [Debug] > │ and method0 () : struct (string * string * string * (struct (string * (float │

00:00:34 #3822 [Debug] > │ []) * (float [])) [])) =                                                     │

00:00:34 #3823 [Debug] > │     let v0 : ((struct (float * float * float * float * float * float * float │

00:00:34 #3824 [Debug] > │ * float * float) -> struct (float * float * float * float * float * float *  │

00:00:34 #3825 [Debug] > │ float * float * float)) -> (struct (float * float * float * float * float *  │

00:00:34 #3826 [Debug] > │ float * float * float * float) -> struct (float * float * float * float *    │

00:00:34 #3827 [Debug] > │ float * float * float * float * float))) = closure0()                        │

00:00:34 #3828 [Debug] > │     let v1 : (struct (float * float * float * float * float * float * float  │

00:00:34 #3829 [Debug] > │ * float * float) -> struct (float * float * float * float * float * float *  │

00:00:34 #3830 [Debug] > │ float * float * float)) = closure2()                                         │

00:00:34 #3831 [Debug] > │     let v2 : (struct (float * float * float * float * float * float * float  │

00:00:34 #3832 [Debug] > │ * float * float) -> struct (float * float * float * float * float * float *  │

00:00:34 #3833 [Debug] > │ float * float * float)) = v0 v1                                              │

00:00:34 #3834 [Debug] > │     let v3 : (struct (float * float * float * float * float * float * float  │

00:00:34 #3835 [Debug] > │ * float * float) -> struct (float * float * float * float * float * float *  │

00:00:34 #3836 [Debug] > │ float * float * float)) = closure3()                                         │

00:00:34 #3837 [Debug] > │     let v4 : (struct (float * float * float * float * float * float * float  │

00:00:34 #3838 [Debug] > │ * float * float) -> struct (float * float * float * float * float * float *  │

00:00:34 #3839 [Debug] > │ float * float * float)) = v0 v3                                              │

00:00:34 #3840 [Debug] > │     let v5 : UH0 = UH0_1                                                     │

00:00:34 #3841 [Debug] > │     let v6 : int32 = 0                                                       │

00:00:34 #3842 [Debug] > │     let v7 : UH0 = method1(v2, v5, v6)                                       │

00:00:34 #3843 [Debug] > │     let v8 : UH1 = UH1_1                                                     │

00:00:34 #3844 [Debug] > │     let v9 : UH1 = method4(v7, v8)                                           │

00:00:34 #3845 [Debug] > │     let v10 : UH2 = UH2_1                                                    │

00:00:34 #3846 [Debug] > │     let v11 : UH2 = UH2_1                                                    │

00:00:34 #3847 [Debug] > │     let struct (v12 : UH2, v13 : UH2) = method5(v9, v10, v11)                │

00:00:34 #3848 [Debug] > │     let v14 : UH2 = UH2_1                                                    │

00:00:34 #3849 [Debug] > │     let v15 : UH2 = method6(v12, v14)                                        │

00:00:34 #3850 [Debug] > │     let v16 : UH2 = UH2_1                                                    │

00:00:34 #3851 [Debug] > │     let v17 : UH2 = method6(v13, v16)                                        │

00:00:34 #3852 [Debug] > │     let v18 : UH0 = UH0_1                                                    │

00:00:34 #3853 [Debug] > │     let v19 : int32 = 0                                                      │

00:00:34 #3854 [Debug] > │     let v20 : UH0 = method7(v4, v18, v19)                                    │

00:00:34 #3855 [Debug] > │     let v21 : UH1 = UH1_1                                                    │

00:00:34 #3856 [Debug] > │     let v22 : UH1 = method8(v20, v21)                                        │

00:00:34 #3857 [Debug] > │     let v23 : UH2 = UH2_1                                                    │

00:00:34 #3858 [Debug] > │     let v24 : UH2 = UH2_1                                                    │

00:00:34 #3859 [Debug] > │     let struct (v25 : UH2, v26 : UH2) = method5(v22, v23, v24)               │

00:00:34 #3860 [Debug] > │     let v27 : UH2 = UH2_1                                                    │

00:00:34 #3861 [Debug] > │     let v28 : UH2 = method6(v25, v27)                                        │

00:00:34 #3862 [Debug] > │     let v29 : UH2 = UH2_1                                                    │

00:00:34 #3863 [Debug] > │     let v30 : UH2 = method6(v26, v29)                                        │

00:00:34 #3864 [Debug] > │     let v31 : (float []) = method9(v15)                                      │

00:00:34 #3865 [Debug] > │     let v32 : (float []) = method9(v17)                                      │

00:00:34 #3866 [Debug] > │     let v33 : (float []) = method9(v30)                                      │

00:00:34 #3867 [Debug] > │     let v34 : string = "newtonian"                                           │

00:00:34 #3868 [Debug] > │     let v35 : string = "relativistic"                                        │

00:00:34 #3869 [Debug] > │     let v36 : (struct (string * (float []) * (float [])) []) = [|struct      │

00:00:34 #3870 [Debug] > │ (v34, v31, v32); struct (v35, v31, v33)|]                                    │

00:00:34 #3871 [Debug] > │     let v37 : string = "response to a constant force"                        │

00:00:34 #3872 [Debug] > │     let v38 : string = "time (years)"                                        │

00:00:34 #3873 [Debug] > │     let v39 : string = "velocity (multiples of c)"                           │

00:00:34 #3874 [Debug] > │     struct (v37, v38, v39, v36)                                              │

00:00:34 #3875 [Debug] > │ method0()                                                                    │

00:00:34 #3876 [Debug] > │                                                                              │

00:00:34 #3877 [Debug] > │                                                                              │

00:00:34 #3878 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:34 #3879 [Debug] >

00:00:34 #3880 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:34 #3881 [Debug] > inl uniform_lorentz_force v_e v_b (st : particle_state) =

00:00:34 #3882 [Debug] >     st.charge *^ (v_e ^+^ st.velocity >< v_b)

00:00:34 #3883 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-5794-9487-9e2d11532b05\main.spi

00:00:34 #3884 [Debug] >

00:00:34 #3885 [Debug] > ╭─[ 217.55ms - stdout ]────────────────────────────────────────────────────────╮

00:00:34 #3886 [Debug] > │ ()                                                                           │

00:00:34 #3887 [Debug] > │                                                                              │

00:00:34 #3888 [Debug] > │                                                                              │

00:00:34 #3889 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:34 #3890 [Debug] >

00:00:34 #3891 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:34 #3892 [Debug] > // // test

00:00:34 #3893 [Debug] >

00:00:34 #3894 [Debug] > inl c : f64 = 299792458

00:00:34 #3895 [Debug] > inl ~method = runge_kutta_4 0.000000001

00:00:34 #3896 [Debug] > inl forces = [[ uniform_lorentz_force (zero_vec ()) (k_hat ()) ]]

00:00:34 #3897 [Debug] > inl (particle_state default_particle_state') = default_particle_state ()

00:00:34 #3898 [Debug] > inl initial_state =

00:00:34 #3899 [Debug] >     particle_state { default_particle_state' with

00:00:34 #3900 [Debug] >         mass = 0.000000000000000000000000001672621898

00:00:34 #3901 [Debug] >         charge = 0.0000000000000000001602176621

00:00:34 #3902 [Debug] >         velocity = 0.8 *^ (c *^ j_hat ())

00:00:34 #3903 [Debug] >     }

00:00:34 #3904 [Debug] >

00:00:34 #3905 [Debug] > inl newton_states = solver_ method (newton_second_ps forces) initial_state

00:00:34 #3906 [Debug] > inl relativity_states = solver_ method (relativity_ps forces) initial_state

00:00:34 #3907 [Debug] >

00:00:34 #3908 [Debug] > inl newton_x, newton_y =

00:00:34 #3909 [Debug] >     newton_states

00:00:34 #3910 [Debug] >     >> Some

00:00:34 #3911 [Debug] >     |> seq.take_while_ (fun (particle_state st) i => i < 100i32)

00:00:34 #3912 [Debug] >     |> listm.map (fun (particle_state st) => st.pos_vec.x, st.pos_vec.y)

00:00:34 #3913 [Debug] >     |> listm'.unzip

00:00:34 #3914 [Debug] >

00:00:34 #3915 [Debug] > inl relativity_x, relativity_y =

00:00:34 #3916 [Debug] >     relativity_states

00:00:34 #3917 [Debug] >     >> Some

00:00:34 #3918 [Debug] >     |> seq.take_while_ (fun (particle_state st) i => i < 165i32)

00:00:34 #3919 [Debug] >     |> listm.map (fun (particle_state st) => st.pos_vec.x, st.pos_vec.y)

00:00:34 #3920 [Debug] >     |> listm'.unzip

00:00:34 #3921 [Debug] >

00:00:34 #3922 [Debug] > inl newton_x : a i32 _ = newton_x |> listm.toArray

00:00:34 #3923 [Debug] > inl newton_y : a i32 _ = newton_y |> listm.toArray

00:00:34 #3924 [Debug] >

00:00:34 #3925 [Debug] > inl relativity_x : a i32 _ = relativity_x |> listm.toArray

00:00:34 #3926 [Debug] > inl relativity_y : a i32 _ = relativity_y |> listm.toArray

00:00:34 #3927 [Debug] >

00:00:34 #3928 [Debug] > "proton in a 1-t magnetic field",

00:00:34 #3929 [Debug] > "x (m)",

00:00:34 #3930 [Debug] > "y (m)",

00:00:34 #3931 [Debug] > ;[[

00:00:34 #3932 [Debug] >     "newtonian", newton_x, newton_y

00:00:34 #3933 [Debug] >     "relativistic", relativity_x, relativity_y

00:00:34 #3934 [Debug] > ]]

00:00:35 #3935 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-5816-1686-11341fb389f5\main.spi

00:00:35 #3936 [Debug] >

00:00:35 #3937 [Debug] > ╭─[ 533.75ms - return value ]──────────────────────────────────────────────────╮

00:00:35 #3938 [Debug] > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │

00:00:35 #3939 [Debug] > │ xmlns="http://www.w3.org/2000/svg">                                          │

00:00:35 #3940 [Debug] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │

00:00:35 #3941 [Debug] > │ stroke="none"/>                                                              │

00:00:35 #3942 [Debug] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │

00:00:35 #3943 [Debug] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │

00:00:35 #3944 [Debug] > │ fill="#FFFFFF">                                                              │

00:00:35 #3945 [Debug] > │ proton in a 1-t magnetic field                                               │

00:00:35 #3946 [Debug] > │ </text>                                                                      │

00:00:35 #3947 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="58" y1="424" x2="58" │

00:00:35 #3948 [Debug] > │ y2="75"/>                                                                    │

00:00:35 #3949 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │

00:00:35 #3950 [Debug] > │ y2="75"/>                                                                    │

00:00:35 #3951 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="81" y1="424" x2="81" │

00:00:35 #3952 [Debug] > │ y2="75"/>                                                                    │

00:00:35 #3953 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="93" y1="424" x2="93" │

00:00:35 #3954 [Debug] > │ y2="75"/>                                                                    │

00:00:35 #3955 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x...                     │

00:00:35 #3956 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:35 #3957 [Debug] >

00:00:35 #3958 [Debug] > ╭─[ 549.08ms - stdout ]────────────────────────────────────────────────────────╮

00:00:35 #3959 [Debug] > │ type UH0 =                                                                   │

00:00:35 #3960 [Debug] > │     | UH0_0 of float * float * float * float * float * float * float * float │

00:00:35 #3961 [Debug] > │ * float * UH0                                                                │

00:00:35 #3962 [Debug] > │     | UH0_1                                                                  │

00:00:35 #3963 [Debug] > │ and UH1 =                                                                    │

00:00:35 #3964 [Debug] > │     | UH1_0 of float * float * UH1                                           │

00:00:35 #3965 [Debug] > │     | UH1_1                                                                  │

00:00:35 #3966 [Debug] > │ and UH2 =                                                                    │

00:00:35 #3967 [Debug] > │     | UH2_0 of float * UH2                                                   │

00:00:35 #3968 [Debug] > │     | UH2_1                                                                  │

00:00:35 #3969 [Debug] > │ let rec closure1 (v0 : (struct (float * float * float * float * float *      │

00:00:35 #3970 [Debug] > │ float * float * float * float) -> struct (float * float * float * float *    │

00:00:35 #3971 [Debug] > │ float * float * float * float * float))) struct (v1 : float, v2 : float, v3  │

00:00:35 #3972 [Debug] > │ : float, v4 : float, v5 : float, v6 : float, v7 : float, v8 : float, v9 :    │

00:00:35 #3973 [Debug] > │ float) : struct (float * float * float * float * float * float * float *     │

00:00:35 #3974 [Debug] > │ float * float) =                                                             │

00:00:35 #3975 [Debug] > │     let struct (v10 : float, v11 : float, v12 : float, v13 : float, v14 :    │

00:00:35 #3976 [Debug] > │ float, v15 : float, v16 : float, v17 : float, v18 : float) = v0 struct (v1,  │

00:00:35 #3977 [Debug] > │ v2, v3, v4, v5, v6, v7, v8, v9)                                              │

00:00:35 #3978 [Debug] > │     let v19 : float = v15 * 5E-10                                            │

00:00:35 #3979 [Debug] > │     let v20 : float = v6 + v19                                               │

00:00:35 #3980 [Debug] > │     let v21 : float = 5E-10 * v12                                            │

00:00:35 #3981 [Debug] > │     let v22 : float = 5E-10 * v13                                            │

00:00:35 #3982 [Debug] > │     let v23 : float = 5E-10 * v14                                            │

00:00:35 #3983 [Debug] > │     let v24 : float = v3 + v21                                               │

00:00:35 #3984 [Debug] > │     let v25 : float = v4 + v22                                               │

00:00:35 #3985 [Debug] > │     let v26 : float = v5 + v23                                               │

00:00:35 #3986 [Debug] > │     let v27 : float = 5E-10 * v16                                            │

00:00:35 #3987 [Debug] > │     let v28 : float = 5E-10 * v17                                            │

00:00:35 #3988 [Debug] > │     let v29 : float = 5E-10 * v18                                            │

00:00:35 #3989 [Debug] > │     let v30 : float = v7 + v27                                               │

00:00:35 #3990 [Debug] > │     let v31 : float = v8 + v28                                               │

00:00:35 #3991 [Debug] > │     let v32 : float = v9 + v29                                               │

00:00:35 #3992 [Debug] > │     let struct (v33 : float, v34 : float, v35 : float, v36 : float, v37 :    │

00:00:35 #3993 [Debug] > │ float, v38 : float, v39 : float, v40 : float, v41 : float) = v0 struct (v1,  │

00:00:35 #3994 [Debug] > │ v2, v24, v25, v26, v20, v30, v31, v32)                                       │

00:00:35 #3995 [Debug] > │     let v42 : float = v38 * 5E-10                                            │

00:00:35 #3996 [Debug] > │     let v43 : float = v6 + v42                                               │

00:00:35 #3997 [Debug] > │     let v44 : float = 5E-10 * v35                                            │

00:00:35 #3998 [Debug] > │     let v45 : float = 5E-10 * v36                                            │

00:00:35 #3999 [Debug] > │     let v46 : float = 5E-10 * v37                                            │

00:00:35 #4000 [Debug] > │     let v47 : float = v3 + v44                                               │

00:00:35 #4001 [Debug] > │     let v48 : float = v4 + v45                                               │

00:00:35 #4002 [Debug] > │     let v49 : float = v5 + v46                                               │

00:00:35 #4003 [Debug] > │     let v50 : float = 5E-10 * v39                                            │

00:00:35 #4004 [Debug] > │     let v51 : float = 5E-10 * v40                                            │

00:00:35 #4005 [Debug] > │     let v52 : float = 5E-10 * v41                                            │

00:00:35 #4006 [Debug] > │     let v53 : float = v7 + v50                                               │

00:00:35 #4007 [Debug] > │     let v54 : float = v8 + v51                                               │

00:00:35 #4008 [Debug] > │     let v55 : float = v9 + v52                                               │

00:00:35 #4009 [Debug] > │     let struct (v56 : float, v57 : float, v58 : float, v59 : float, v60 :    │

00:00:35 #4010 [Debug] > │ float, v61 : float, v62 : float, v63 : float, v64 : float) = v0 struct (v1,  │

00:00:35 #4011 [Debug] > │ v2, v47, v48, v49, v43, v53, v54, v55)                                       │

00:00:35 #4012 [Debug] > │     let v65 : float = v61 * 1E-09                                            │

00:00:35 #4013 [Debug] > │     let v66 : float = v6 + v65                                               │

00:00:35 #4014 [Debug] > │     let v67 : float = 1E-09 * v58                                            │

00:00:35 #4015 [Debug] > │     let v68 : float = 1E-09 * v59                                            │

00:00:35 #4016 [Debug] > │     let v69 : float = 1E-09 * v60                                            │

00:00:35 #4017 [Debug] > │     let v70 : float = v3 + v67                                               │

00:00:35 #4018 [Debug] > │     let v71 : float = v4 + v68                                               │

00:00:35 #4019 [Debug] > │     let v72 : float = v5 + v69                                               │

00:00:35 #4020 [Debug] > │     let v73 : float = 1E-09 * v62                                            │

00:00:35 #4021 [Debug] > │     let v74 : float = 1E-09 * v63                                            │

00:00:35 #4022 [Debug] > │     let v75 : float = 1E-09 * v64                                            │

00:00:35 #4023 [Debug] > │     let v76 : float = v7 + v73                                               │

00:00:35 #4024 [Debug] > │     let v77 : float = v8 + v74                                               │

00:00:35 #4025 [Debug] > │     let v78 : float = v9 + v75                                               │

00:00:35 #4026 [Debug] > │     let struct (v79 : float, v80 : float, v81 : float, v82 : float, v83 :    │

00:00:35 #4027 [Debug] > │ float, v84 : float, v85 : float, v86 : float, v87 : float) = v0 struct (v1,  │

00:00:35 #4028 [Debug] > │ v2, v70, v71, v72, v66, v76, v77, v78)                                       │

00:00:35 #4029 [Debug] > │     let v88 : float = v10 + v33                                              │

00:00:35 #4030 [Debug] > │     let v89 : float = v11 + v34                                              │

00:00:35 #4031 [Debug] > │     let v90 : float = v15 + v38                                              │

00:00:35 #4032 [Debug] > │     let v91 : float = v12 + v35                                              │

00:00:35 #4033 [Debug] > │     let v92 : float = v13 + v36                                              │

00:00:35 #4034 [Debug] > │     let v93 : float = v14 + v37                                              │

00:00:35 #4035 [Debug] > │     let v94 : float = v16 + v39                                              │

00:00:35 #4036 [Debug] > │     let v95 : float = v17 + v40                                              │

00:00:35 #4037 [Debug] > │     let v96 : float = v18 + v41                                              │

00:00:35 #4038 [Debug] > │     let v97 : float = v88 + v33                                              │

00:00:35 #4039 [Debug] > │     let v98 : float = v89 + v34                                              │

00:00:35 #4040 [Debug] > │     let v99 : float = v90 + v38                                              │

00:00:35 #4041 [Debug] > │     let v100 : float = v91 + v35                                             │

00:00:35 #4042 [Debug] > │     let v101 : float = v92 + v36                                             │

00:00:35 #4043 [Debug] > │     let v102 : float = v93 + v37                                             │

00:00:35 #4044 [Debug] > │     let v103 : float = v94 + v39                                             │

00:00:35 #4045 [Debug] > │     let v104 : float = v95 + v40                                             │

00:00:35 #4046 [Debug] > │     let v105 : float = v96 + v41                                             │

00:00:35 #4047 [Debug] > │     let v106 : float = v97 + v56                                             │

00:00:35 #4048 [Debug] > │     let v107 : float = v98 + v57                                             │

00:00:35 #4049 [Debug] > │     let v108 : float = v99 + v61                                             │

00:00:35 #4050 [Debug] > │     let v109 : float = v100 + v58                                            │

00:00:35 #4051 [Debug] > │     let v110 : float = v101 + v59                                            │

00:00:35 #4052 [Debug] > │     let v111 : float = v102 + v60                                            │

00:00:35 #4053 [Debug] > │     let v112 : float = v103 + v62                                            │

00:00:35 #4054 [Debug] > │     let v113 : float = v104 + v63                                            │

00:00:35 #4055 [Debug] > │     let v114 : float = v105 + v64                                            │

00:00:35 #4056 [Debug] > │     let v115 : float = v106 + v56                                            │

00:00:35 #4057 [Debug] > │     let v116 : float = v107 + v57                                            │

00:00:35 #4058 [Debug] > │     let v117 : float = v108 + v61                                            │

00:00:35 #4059 [Debug] > │     let v118 : float = v109 + v58                                            │

00:00:35 #4060 [Debug] > │     let v119 : float = v110 + v59                                            │

00:00:35 #4061 [Debug] > │     let v120 : float = v111 + v60                                            │

00:00:35 #4062 [Debug] > │     let v121 : float = v112 + v62                                            │

00:00:35 #4063 [Debug] > │     let v122 : float = v113 + v63                                            │

00:00:35 #4064 [Debug] > │     let v123 : float = v114 + v64                                            │

00:00:35 #4065 [Debug] > │     let v124 : float = v115 + v79                                            │

00:00:35 #4066 [Debug] > │     let v125 : float = v116 + v80                                            │

00:00:35 #4067 [Debug] > │     let v126 : float = v117 + v84                                            │

00:00:35 #4068 [Debug] > │     let v127 : float = v118 + v81                                            │

00:00:35 #4069 [Debug] > │     let v128 : float = v119 + v82                                            │

00:00:35 #4070 [Debug] > │     let v129 : float = v120 + v83                                            │

00:00:35 #4071 [Debug] > │     let v130 : float = v121 + v85                                            │

00:00:35 #4072 [Debug] > │     let v131 : float = v122 + v86                                            │

00:00:35 #4073 [Debug] > │     let v132 : float = v123 + v87                                            │

00:00:35 #4074 [Debug] > │     let v133 : float = v126 * 1.6666666666666669E-10                         │

00:00:35 #4075 [Debug] > │     let v134 : float = v6 + v133                                             │

00:00:35 #4076 [Debug] > │     let v135 : float = 1.6666666666666669E-10 * v127                         │

00:00:35 #4077 [Debug] > │     let v136 : float = 1.6666666666666669E-10 * v128                         │

00:00:35 #4078 [Debug] > │     let v137 : float = 1.6666666666666669E-10 * v129                         │

00:00:35 #4079 [Debug] > │     let v138 : float = v3 + v135                                             │

00:00:35 #4080 [Debug] > │     let v139 : float = v4 + v136                                             │

00:00:35 #4081 [Debug] > │     let v140 : float = v5 + v137                                             │

00:00:35 #4082 [Debug] > │     let v141 : float = 1.6666666666666669E-10 * v130                         │

00:00:35 #4083 [Debug] > │     let v142 : float = 1.6666666666666669E-10 * v131                         │

00:00:35 #4084 [Debug] > │     let v143 : float = 1.6666666666666669E-10 * v132                         │

00:00:35 #4085 [Debug] > │     let v144 : float = v7 + v141                                             │

00:00:35 #4086 [Debug] > │     let v145 : float = v8 + v142                                             │

00:00:35 #4087 [Debug] > │     let v146 : float = v9 + v143                                             │

00:00:35 #4088 [Debug] > │     struct (v1, v2, v138, v139, v140, v134, v144, v145, v146)                │

00:00:35 #4089 [Debug] > │ and closure0 () (v0 : (struct (float * float * float * float * float * float │

00:00:35 #4090 [Debug] > │ * float * float * float) -> struct (float * float * float * float * float *  │

00:00:35 #4091 [Debug] > │ float * float * float * float))) : (struct (float * float * float * float *  │

00:00:35 #4092 [Debug] > │ float * float * float * float * float) -> struct (float * float * float *    │

00:00:35 #4093 [Debug] > │ float * float * float * float * float * float)) =                            │

00:00:35 #4094 [Debug] > │     closure1(v0)                                                             │

00:00:35 #4095 [Debug] > │ and closure2 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 : │

00:00:35 #4096 [Debug] > │ float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float *     │

00:00:35 #4097 [Debug] > │ float * float * float * float * float * float * float * float) =             │

00:00:35 #4098 [Debug] > │     let v9 : float = v8 * 0.0                                                │

00:00:35 #4099 [Debug] > │     let v10 : float = v7 - v9                                                │

00:00:35 #4100 [Debug] > │     let v11 : float = v9 - v6                                                │

00:00:35 #4101 [Debug] > │     let v12 : float = v6 * 0.0                                               │

00:00:35 #4102 [Debug] > │     let v13 : float = v7 * 0.0                                               │

00:00:35 #4103 [Debug] > │     let v14 : float = v12 - v13                                              │

00:00:35 #4104 [Debug] > │     let v15 : float = v0 * v10                                               │

00:00:35 #4105 [Debug] > │     let v16 : float = v0 * v11                                               │

00:00:35 #4106 [Debug] > │     let v17 : float = v0 * v14                                               │

00:00:35 #4107 [Debug] > │     let v18 : float = v15 / v1                                               │

00:00:35 #4108 [Debug] > │     let v19 : float = v16 / v1                                               │

00:00:35 #4109 [Debug] > │     let v20 : float = v17 / v1                                               │

00:00:35 #4110 [Debug] > │     struct (0.0, 0.0, v6, v7, v8, 1.0, v18, v19, v20)                        │

00:00:35 #4111 [Debug] > │ and closure3 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 : │

00:00:35 #4112 [Debug] > │ float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float *     │

00:00:35 #4113 [Debug] > │ float * float * float * float * float * float * float * float) =             │

00:00:35 #4114 [Debug] > │     let v9 : float = v8 * 0.0                                                │

00:00:35 #4115 [Debug] > │     let v10 : float = v7 - v9                                                │

00:00:35 #4116 [Debug] > │     let v11 : float = v9 - v6                                                │

00:00:35 #4117 [Debug] > │     let v12 : float = v6 * 0.0                                               │

00:00:35 #4118 [Debug] > │     let v13 : float = v7 * 0.0                                               │

00:00:35 #4119 [Debug] > │     let v14 : float = v12 - v13                                              │

00:00:35 #4120 [Debug] > │     let v15 : float = v0 * v10                                               │

00:00:35 #4121 [Debug] > │     let v16 : float = v0 * v11                                               │

00:00:35 #4122 [Debug] > │     let v17 : float = v0 * v14                                               │

00:00:35 #4123 [Debug] > │     let v18 : float = v6 / 299792458.0                                       │

00:00:35 #4124 [Debug] > │     let v19 : float = v7 / 299792458.0                                       │

00:00:35 #4125 [Debug] > │     let v20 : float = v8 / 299792458.0                                       │

00:00:35 #4126 [Debug] > │     let v21 : float = v18 * v18                                              │

00:00:35 #4127 [Debug] > │     let v22 : float = v19 * v19                                              │

00:00:35 #4128 [Debug] > │     let v23 : float = v21 + v22                                              │

00:00:35 #4129 [Debug] > │     let v24 : float = v20 * v20                                              │

00:00:35 #4130 [Debug] > │     let v25 : float = v23 + v24                                              │

00:00:35 #4131 [Debug] > │     let v26 : float = 1.0 - v25                                              │

00:00:35 #4132 [Debug] > │     let v27 : float = sqrt v26                                               │

00:00:35 #4133 [Debug] > │     let v28 : float = v15 * v18                                              │

00:00:35 #4134 [Debug] > │     let v29 : float = v16 * v19                                              │

00:00:35 #4135 [Debug] > │     let v30 : float = v28 + v29                                              │

00:00:35 #4136 [Debug] > │     let v31 : float = v17 * v20                                              │

00:00:35 #4137 [Debug] > │     let v32 : float = v30 + v31                                              │

00:00:35 #4138 [Debug] > │     let v33 : float = v32 * v18                                              │

00:00:35 #4139 [Debug] > │     let v34 : float = v32 * v19                                              │

00:00:35 #4140 [Debug] > │     let v35 : float = v32 * v20                                              │

00:00:35 #4141 [Debug] > │     let v36 : float = -1.0 * v33                                             │

00:00:35 #4142 [Debug] > │     let v37 : float = -1.0 * v34                                             │

00:00:35 #4143 [Debug] > │     let v38 : float = -1.0 * v35                                             │

00:00:35 #4144 [Debug] > │     let v39 : float = v15 + v36                                              │

00:00:35 #4145 [Debug] > │     let v40 : float = v16 + v37                                              │

00:00:35 #4146 [Debug] > │     let v41 : float = v17 + v38                                              │

00:00:35 #4147 [Debug] > │     let v42 : float = v27 * v39                                              │

00:00:35 #4148 [Debug] > │     let v43 : float = v27 * v40                                              │

00:00:35 #4149 [Debug] > │     let v44 : float = v27 * v41                                              │

00:00:35 #4150 [Debug] > │     let v45 : float = v42 / v1                                               │

00:00:35 #4151 [Debug] > │     let v46 : float = v43 / v1                                               │

00:00:35 #4152 [Debug] > │     let v47 : float = v44 / v1                                               │

00:00:35 #4153 [Debug] > │     struct (0.0, 0.0, v6, v7, v8, 1.0, v45, v46, v47)                        │

00:00:35 #4154 [Debug] > │ and method2 (v0 : (struct (float * float * float * float * float * float *   │

00:00:35 #4155 [Debug] > │ float * float * float) -> struct (float * float * float * float * float *    │

00:00:35 #4156 [Debug] > │ float * float * float * float)), v1 : float, v2 : float, v3 : float, v4 :    │

00:00:35 #4157 [Debug] > │ float, v5 : float, v6 : float, v7 : float, v8 : float, v9 : float, v10 :     │

00:00:35 #4158 [Debug] > │ int32) : struct (float * float * float * float * float * float * float *     │

00:00:35 #4159 [Debug] > │ float * float) =                                                             │

00:00:35 #4160 [Debug] > │     let v11 : bool = v10 <= 0                                                │

00:00:35 #4161 [Debug] > │     if v11 then                                                              │

00:00:35 #4162 [Debug] > │         struct (v1, v2, v3, v4, v5, v6, v7, v8, v9)                          │

00:00:35 #4163 [Debug] > │     else                                                                     │

00:00:35 #4164 [Debug] > │         let struct (v12 : float, v13 : float, v14 : float, v15 : float, v16  │

00:00:35 #4165 [Debug] > │ : float, v17 : float, v18 : float, v19 : float, v20 : float) = v0 struct     │

00:00:35 #4166 [Debug] > │ (v1, v2, v3, v4, v5, v6, v7, v8, v9)                                         │

00:00:35 #4167 [Debug] > │         let v21 : int32 = v10 - 1                                            │

00:00:35 #4168 [Debug] > │         method2(v0, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21)        │

00:00:35 #4169 [Debug] > │ and method3 (v0 : UH0, v1 : UH0) : UH0 =                                     │

00:00:35 #4170 [Debug] > │     match v0 with                                                            │

00:00:35 #4171 [Debug] > │     | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *)          │

00:00:35 #4172 [Debug] > │         let v12 : UH0 = UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v1)       │

00:00:35 #4173 [Debug] > │         method3(v11, v12)                                                    │

00:00:35 #4174 [Debug] > │     | UH0_1 -> (* Nil *)                                                     │

00:00:35 #4175 [Debug] > │         v1                                                                   │

00:00:35 #4176 [Debug] > │ and method1 (v0 : (struct (float * float * float * float * float * float *   │

00:00:35 #4177 [Debug] > │ float * float * float) -> struct (float * float * float * float * float *    │

00:00:35 #4178 [Debug] > │ float * float * float * float)), v1 : UH0, v2 : int32) : UH0 =               │

00:00:35 #4179 [Debug] > │     let v3 : float = 1.602176621E-19                                         │

00:00:35 #4180 [Debug] > │     let v4 : float = 1.672621898E-27                                         │

00:00:35 #4181 [Debug] > │     let v5 : float = 0.0                                                     │

00:00:35 #4182 [Debug] > │     let v6 : float = 0.0                                                     │

00:00:35 #4183 [Debug] > │     let v7 : float = 0.0                                                     │

00:00:35 #4184 [Debug] > │     let v8 : float = 0.0                                                     │

00:00:35 #4185 [Debug] > │     let v9 : float = 0.0                                                     │

00:00:35 #4186 [Debug] > │     let v10 : float = 239833966.4                                            │

00:00:35 #4187 [Debug] > │     let v11 : float = 0.0                                                    │

00:00:35 #4188 [Debug] > │     let struct (v12 : float, v13 : float, v14 : float, v15 : float, v16 :    │

00:00:35 #4189 [Debug] > │ float, v17 : float, v18 : float, v19 : float, v20 : float) = method2(v0, v3, │

00:00:35 #4190 [Debug] > │ v4, v5, v6, v7, v8, v9, v10, v11, v2)                                        │

00:00:35 #4191 [Debug] > │     let v21 : bool = v2 < 100                                                │

00:00:35 #4192 [Debug] > │     if v21 then                                                              │

00:00:35 #4193 [Debug] > │         let v22 : UH0 = UH0_0(v12, v13, v14, v15, v16, v17, v18, v19, v20,   │

00:00:35 #4194 [Debug] > │ v1)                                                                          │

00:00:35 #4195 [Debug] > │         let v23 : int32 = v2 + 1                                             │

00:00:35 #4196 [Debug] > │         method1(v0, v22, v23)                                                │

00:00:35 #4197 [Debug] > │     else                                                                     │

00:00:35 #4198 [Debug] > │         let v25 : UH0 = UH0_1                                                │

00:00:35 #4199 [Debug] > │         method3(v1, v25)                                                     │

00:00:35 #4200 [Debug] > │ and method4 (v0 : UH0, v1 : UH1) : UH1 =                                     │

00:00:35 #4201 [Debug] > │     match v0 with                                                            │

00:00:35 #4202 [Debug] > │     | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *)          │

00:00:35 #4203 [Debug] > │         let v12 : UH1 = method4(v11, v1)                                     │

00:00:35 #4204 [Debug] > │         UH1_0(v4, v5, v12)                                                   │

00:00:35 #4205 [Debug] > │     | UH0_1 -> (* Nil *)                                                     │

00:00:35 #4206 [Debug] > │         v1                                                                   │

00:00:35 #4207 [Debug] > │ and method5 (v0 : UH1, v1 : UH2, v2 : UH2) : struct (UH2 * UH2) =            │

00:00:35 #4208 [Debug] > │     match v0 with                                                            │

00:00:35 #4209 [Debug] > │     | UH1_0(v3, v4, v5) -> (* Cons *)                                        │

00:00:35 #4210 [Debug] > │         let v6 : UH2 = UH2_0(v3, v1)                                         │

00:00:35 #4211 [Debug] > │         let v7 : UH2 = UH2_0(v4, v2)                                         │

00:00:35 #4212 [Debug] > │         method5(v5, v6, v7)                                                  │

00:00:35 #4213 [Debug] > │     | UH1_1 -> (* Nil *)                                                     │

00:00:35 #4214 [Debug] > │         struct (v1, v2)                                                      │

00:00:35 #4215 [Debug] > │ and method6 (v0 : UH2, v1 : UH2) : UH2 =                                     │

00:00:35 #4216 [Debug] > │     match v0 with                                                            │

00:00:35 #4217 [Debug] > │     | UH2_0(v2, v3) -> (* Cons *)                                            │

00:00:35 #4218 [Debug] > │         let v4 : UH2 = UH2_0(v2, v1)                                         │

00:00:35 #4219 [Debug] > │         method6(v3, v4)                                                      │

00:00:35 #4220 [Debug] > │     | UH2_1 -> (* Nil *)                                                     │

00:00:35 #4221 [Debug] > │         v1                                                                   │

00:00:35 #4222 [Debug] > │ and method7 (v0 : (struct (float * float * float * float * float * float *   │

00:00:35 #4223 [Debug] > │ float * float * float) -> struct (float * float * float * float * float *    │

00:00:35 #4224 [Debug] > │ float * float * float * float)), v1 : UH0, v2 : int32) : UH0 =               │

00:00:35 #4225 [Debug] > │     let v3 : float = 1.602176621E-19                                         │

00:00:35 #4226 [Debug] > │     let v4 : float = 1.672621898E-27                                         │

00:00:35 #4227 [Debug] > │     let v5 : float = 0.0                                                     │

00:00:35 #4228 [Debug] > │     let v6 : float = 0.0                                                     │

00:00:35 #4229 [Debug] > │     let v7 : float = 0.0                                                     │

00:00:35 #4230 [Debug] > │     let v8 : float = 0.0                                                     │

00:00:35 #4231 [Debug] > │     let v9 : float = 0.0                                                     │

00:00:35 #4232 [Debug] > │     let v10 : float = 239833966.4                                            │

00:00:35 #4233 [Debug] > │     let v11 : float = 0.0                                                    │

00:00:35 #4234 [Debug] > │     let struct (v12 : float, v13 : float, v14 : float, v15 : float, v16 :    │

00:00:35 #4235 [Debug] > │ float, v17 : float, v18 : float, v19 : float, v20 : float) = method2(v0, v3, │

00:00:35 #4236 [Debug] > │ v4, v5, v6, v7, v8, v9, v10, v11, v2)                                        │

00:00:35 #4237 [Debug] > │     let v21 : bool = v2 < 165                                                │

00:00:35 #4238 [Debug] > │     if v21 then                                                              │

00:00:35 #4239 [Debug] > │         let v22 : UH0 = UH0_0(v12, v13, v14, v15, v16, v17, v18, v19, v20,   │

00:00:35 #4240 [Debug] > │ v1)                                                                          │

00:00:35 #4241 [Debug] > │         let v23 : int32 = v2 + 1                                             │

00:00:35 #4242 [Debug] > │         method7(v0, v22, v23)                                                │

00:00:35 #4243 [Debug] > │     else                                                                     │

00:00:35 #4244 [Debug] > │         let v25 : UH0 = UH0_1                                                │

00:00:35 #4245 [Debug] > │         method3(v1, v25)                                                     │

00:00:35 #4246 [Debug] > │ and method8 (v0 : UH0, v1 : UH1) : UH1 =                                     │

00:00:35 #4247 [Debug] > │     match v0 with                                                            │

00:00:35 #4248 [Debug] > │     | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *)          │

00:00:35 #4249 [Debug] > │         let v12 : UH1 = method8(v11, v1)                                     │

00:00:35 #4250 [Debug] > │         UH1_0(v4, v5, v12)                                                   │

00:00:35 #4251 [Debug] > │     | UH0_1 -> (* Nil *)                                                     │

00:00:35 #4252 [Debug] > │         v1                                                                   │

00:00:35 #4253 [Debug] > │ and method10 (v0 : UH2, v1 : int32) : int32 =                                │

00:00:35 #4254 [Debug] > │     match v0 with                                                            │

00:00:35 #4255 [Debug] > │     | UH2_0(v2, v3) -> (* Cons *)                                            │

00:00:35 #4256 [Debug] > │         let v4 : int32 = v1 + 1                                              │

00:00:35 #4257 [Debug] > │         method10(v3, v4)                                                     │

00:00:35 #4258 [Debug] > │     | UH2_1 -> (* Nil *)                                                     │

00:00:35 #4259 [Debug] > │         v1                                                                   │

00:00:35 #4260 [Debug] > │ and method11 (v0 : (float []), v1 : UH2, v2 : int32) : int32 =               │

00:00:35 #4261 [Debug] > │     match v1 with                                                            │

00:00:35 #4262 [Debug] > │     | UH2_0(v3, v4) -> (* Cons *)                                            │

00:00:35 #4263 [Debug] > │         v0.[int v2] <- v3                                                    │

00:00:35 #4264 [Debug] > │         let v5 : int32 = v2 + 1                                              │

00:00:35 #4265 [Debug] > │         method11(v0, v4, v5)                                                 │

00:00:35 #4266 [Debug] > │     | UH2_1 -> (* Nil *)                                                     │

00:00:35 #4267 [Debug] > │         v2                                                                   │

00:00:35 #4268 [Debug] > │ and method9 (v0 : UH2) : (float []) =                                        │

00:00:35 #4269 [Debug] > │     let v1 : int32 = 0                                                       │

00:00:35 #4270 [Debug] > │     let v2 : int32 = method10(v0, v1)                                        │

00:00:35 #4271 [Debug] > │     let v3 : (float []) = Array.zeroCreate<float> (v2)                       │

00:00:35 #4272 [Debug] > │     let v4 : int32 = 0                                                       │

00:00:35 #4273 [Debug] > │     let v5 : int32 = method11(v3, v0, v4)                                    │

00:00:35 #4274 [Debug] > │     v3                                                                       │

00:00:35 #4275 [Debug] > │ and method0 () : struct (string * string * string * (struct (string * (float │

00:00:35 #4276 [Debug] > │ []) * (float [])) [])) =                                                     │

00:00:35 #4277 [Debug] > │     let v0 : ((struct (float * float * float * float * float * float * float │

00:00:35 #4278 [Debug] > │ * float * float) -> struct (float * float * float * float * float * float *  │

00:00:35 #4279 [Debug] > │ float * float * float)) -> (struct (float * float * float * float * float *  │

00:00:35 #4280 [Debug] > │ float * float * float * float) -> struct (float * float * float * float *    │

00:00:35 #4281 [Debug] > │ float * float * float * float * float))) = closure0()                        │

00:00:35 #4282 [Debug] > │     let v1 : (struct (float * float * float * float * float * float * float  │

00:00:35 #4283 [Debug] > │ * float * float) -> struct (float * float * float * float * float * float *  │

00:00:35 #4284 [Debug] > │ float * float * float)) = closure2()                                         │

00:00:35 #4285 [Debug] > │     let v2 : (struct (float * float * float * float * float * float * float  │

00:00:35 #4286 [Debug] > │ * float * float) -> struct (float * float * float * float * float * float *  │

00:00:35 #4287 [Debug] > │ float * float * float)) = v0 v1                                              │

00:00:35 #4288 [Debug] > │     let v3 : (struct (float * float * float * float * float * float * float  │

00:00:35 #4289 [Debug] > │ * float * float) -> struct (float * float * float * float * float * float *  │

00:00:35 #4290 [Debug] > │ float * float * float)) = closure3()                                         │

00:00:35 #4291 [Debug] > │     let v4 : (struct (float * float * float * float * float * float * float  │

00:00:35 #4292 [Debug] > │ * float * float) -> struct (float * float * float * float * float * float *  │

00:00:35 #4293 [Debug] > │ float * float * float)) = v0 v3                                              │

00:00:35 #4294 [Debug] > │     let v5 : UH0 = UH0_1                                                     │

00:00:35 #4295 [Debug] > │     let v6 : int32 = 0                                                       │

00:00:35 #4296 [Debug] > │     let v7 : UH0 = method1(v2, v5, v6)                                       │

00:00:35 #4297 [Debug] > │     let v8 : UH1 = UH1_1                                                     │

00:00:35 #4298 [Debug] > │     let v9 : UH1 = method4(v7, v8)                                           │

00:00:35 #4299 [Debug] > │     let v10 : UH2 = UH2_1                                                    │

00:00:35 #4300 [Debug] > │     let v11 : UH2 = UH2_1                                                    │

00:00:35 #4301 [Debug] > │     let struct (v12 : UH2, v13 : UH2) = method5(v9, v10, v11)                │

00:00:35 #4302 [Debug] > │     let v14 : UH2 = UH2_1                                                    │

00:00:35 #4303 [Debug] > │     let v15 : UH2 = method6(v12, v14)                                        │

00:00:35 #4304 [Debug] > │     let v16 : UH2 = UH2_1                                                    │

00:00:35 #4305 [Debug] > │     let v17 : UH2 = method6(v13, v16)                                        │

00:00:35 #4306 [Debug] > │     let v18 : UH0 = UH0_1                                                    │

00:00:35 #4307 [Debug] > │     let v19 : int32 = 0                                                      │

00:00:35 #4308 [Debug] > │     let v20 : UH0 = method7(v4, v18, v19)                                    │

00:00:35 #4309 [Debug] > │     let v21 : UH1 = UH1_1                                                    │

00:00:35 #4310 [Debug] > │     let v22 : UH1 = method8(v20, v21)                                        │

00:00:35 #4311 [Debug] > │     let v23 : UH2 = UH2_1                                                    │

00:00:35 #4312 [Debug] > │     let v24 : UH2 = UH2_1                                                    │

00:00:35 #4313 [Debug] > │     let struct (v25 : UH2, v26 : UH2) = method5(v22, v23, v24)               │

00:00:35 #4314 [Debug] > │     let v27 : UH2 = UH2_1                                                    │

00:00:35 #4315 [Debug] > │     let v28 : UH2 = method6(v25, v27)                                        │

00:00:35 #4316 [Debug] > │     let v29 : UH2 = UH2_1                                                    │

00:00:35 #4317 [Debug] > │     let v30 : UH2 = method6(v26, v29)                                        │

00:00:35 #4318 [Debug] > │     let v31 : (float []) = method9(v15)                                      │

00:00:35 #4319 [Debug] > │     let v32 : (float []) = method9(v17)                                      │

00:00:35 #4320 [Debug] > │     let v33 : (float []) = method9(v28)                                      │

00:00:35 #4321 [Debug] > │     let v34 : (float []) = method9(v30)                                      │

00:00:35 #4322 [Debug] > │     let v35 : string = "newtonian"                                           │

00:00:35 #4323 [Debug] > │     let v36 : string = "relativistic"                                        │

00:00:35 #4324 [Debug] > │     let v37 : (struct (string * (float []) * (float [])) []) = [|struct      │

00:00:35 #4325 [Debug] > │ (v35, v31, v32); struct (v36, v33, v34)|]                                    │

00:00:35 #4326 [Debug] > │     let v38 : string = "proton in a 1-t magnetic field"                      │

00:00:35 #4327 [Debug] > │     let v39 : string = "x (m)"                                               │

00:00:35 #4328 [Debug] > │     let v40 : string = "y (m)"                                               │

00:00:35 #4329 [Debug] > │     struct (v38, v39, v40, v37)                                              │

00:00:35 #4330 [Debug] > │ method0()                                                                    │

00:00:35 #4331 [Debug] > │                                                                              │

00:00:35 #4332 [Debug] > │                                                                              │

00:00:35 #4333 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:35 #4334 [Debug] >

00:00:35 #4335 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:35 #4336 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:35 #4337 [Debug] > │ ### system kinetic energy versus time 1                                      │

00:00:35 #4338 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:35 #4339 [Debug] >

00:00:35 #4340 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:35 #4341 [Debug] > // // test

00:00:35 #4342 [Debug] >

00:00:35 #4343 [Debug] > inl central_force f (particle_state st1) (particle_state st2) =

00:00:35 #4344 [Debug] >     inl r1 = st1.pos_vec

00:00:35 #4345 [Debug] >     inl r2 = st2.pos_vec

00:00:35 #4346 [Debug] >     inl r21 = r2 ^-^ r1

00:00:35 #4347 [Debug] >     inl r21mag = magnitude r21

00:00:35 #4348 [Debug] >     f r21mag *^ r21 ^/ r21mag

00:00:35 #4349 [Debug] >

00:00:35 #4350 [Debug] > inl billiard_force k re =

00:00:35 #4351 [Debug] >     inl f r =

00:00:35 #4352 [Debug] >         if r >= re

00:00:35 #4353 [Debug] >         then 0

00:00:35 #4354 [Debug] >         else -k * (r - re)

00:00:35 #4355 [Debug] >     central_force f

00:00:35 #4356 [Debug] >

00:00:35 #4357 [Debug] > type force_vector = vec

00:00:35 #4358 [Debug] > type two_body_force = particle_state -> particle_state -> force_vector

00:00:35 #4359 [Debug] >

00:00:35 #4360 [Debug] > union force =

00:00:35 #4361 [Debug] >     | ExternalForce : i32 * one_body_force

00:00:35 #4362 [Debug] >     | InternalForce : i32 * i32 * two_body_force

00:00:35 #4363 [Debug] >

00:00:35 #4364 [Debug] > nominal multi_particle_state = list particle_state

00:00:35 #4365 [Debug] >

00:00:35 #4366 [Debug] > nominal d_multi_particle_state = list d_particle_state

00:00:35 #4367 [Debug] >

00:00:35 #4368 [Debug] > inl force_on n sts force =

00:00:35 #4369 [Debug] >     match force with

00:00:35 #4370 [Debug] >     | ExternalForce (n0, f_one_body) =>

00:00:35 #4371 [Debug] >         if n = n0

00:00:35 #4372 [Debug] >         then f_one_body

00:00:35 #4373 [Debug] >         else fun _ => zero_vec ()

00:00:35 #4374 [Debug] >     | InternalForce (n0, n1, f_two_body) =>

00:00:35 #4375 [Debug] >         if n = n0

00:00:35 #4376 [Debug] >         then f_two_body (sts |> listm'.item n1)

00:00:35 #4377 [Debug] >         elif n = n1

00:00:35 #4378 [Debug] >         then f_two_body (sts |> listm'.item n0)

00:00:35 #4379 [Debug] >         else fun _ => zero_vec ()

00:00:35 #4380 [Debug] >

00:00:35 #4381 [Debug] > inl forces_on n (multi_particle_state sts) fs =

00:00:35 #4382 [Debug] >     fs |> listm.map (force_on n sts)

00:00:35 #4383 [Debug] >

00:00:35 #4384 [Debug] > inl newton_second_mps fs (multi_particle_state sts) : d_multi_particle_state =

00:00:35 #4385 [Debug] >     inl deriv (n, st) =

00:00:35 #4386 [Debug] >         newton_second_ps (forces_on n (multi_particle_state sts) fs) st

00:00:35 #4387 [Debug] >     sts |> listm'.indexed |> listm.map deriv |> d_multi_particle_state

00:00:35 #4388 [Debug] >

00:00:35 #4389 [Debug] > instance (+++) d_multi_particle_state = fun (d_multi_particle_state dsts1)

00:00:35 #4390 [Debug] > (d_multi_particle_state dsts2) =>

00:00:35 #4391 [Debug] >     d_multi_particle_state (listm'.zip_with_ (+++) dsts1 dsts2)

00:00:35 #4392 [Debug] >

00:00:35 #4393 [Debug] > instance scale d_multi_particle_state = fun w (d_multi_particle_state dsts) =>

00:00:35 #4394 [Debug] >     d_multi_particle_state (dsts |> listm.map (scale w))

00:00:35 #4395 [Debug] >

00:00:35 #4396 [Debug] > instance shift multi_particle_state = fun dt dsts (multi_particle_state sts) =>

00:00:35 #4397 [Debug] >     inl (d_multi_particle_state dsts) =

00:00:35 #4398 [Debug] >         real

00:00:35 #4399 [Debug] >             match dsts with

00:00:35 #4400 [Debug] >             | d_multi_particle_state _ => dsts

00:00:35 #4401 [Debug] >     listm'.zip_with_ (shift dt) dsts sts |> multi_particle_state

00:00:35 #4402 [Debug] >

00:00:35 #4403 [Debug] > inl euler_cromer_mps dt : numerical_method multi_particle_state

00:00:35 #4404 [Debug] > d_multi_particle_state =

00:00:35 #4405 [Debug] >     fun deriv mpst0 =>

00:00:35 #4406 [Debug] >         inl mpst1 = euler dt deriv mpst0

00:00:35 #4407 [Debug] >         inl (multi_particle_state sts0) = mpst0

00:00:35 #4408 [Debug] >         inl (multi_particle_state sts1) = mpst1

00:00:35 #4409 [Debug] >         sts1

00:00:35 #4410 [Debug] >         |> listm'.zip_ sts0

00:00:35 #4411 [Debug] >         |> listm.map (fun ((particle_state st0), (particle_state st1)) =>

00:00:35 #4412 [Debug] >             particle_state {

00:00:35 #4413 [Debug] >                 st1 with

00:00:35 #4414 [Debug] >                     pos_vec = st0.pos_vec ^+^ st1.velocity ^* dt

00:00:35 #4415 [Debug] >             }

00:00:35 #4416 [Debug] >         )

00:00:35 #4417 [Debug] >         |> multi_particle_state

00:00:35 #4418 [Debug] >

00:00:35 #4419 [Debug] > inl update_mps (method : numerical_method multi_particle_state

00:00:35 #4420 [Debug] > d_multi_particle_state) =

00:00:35 #4421 [Debug] >     newton_second_mps >> method

00:00:35 #4422 [Debug] >

00:00:35 #4423 [Debug] > inl states_mps (method : numerical_method multi_particle_state

00:00:35 #4424 [Debug] > d_multi_particle_state) =

00:00:35 #4425 [Debug] >     newton_second_mps >> method >> seq.iterate_

00:00:35 #4426 [Debug] >

00:00:35 #4427 [Debug] >

00:00:35 #4428 [Debug] > inl kinetic_energy (particle_state st) =

00:00:35 #4429 [Debug] >     inl m = st.mass

00:00:35 #4430 [Debug] >     inl v = magnitude st.velocity

00:00:35 #4431 [Debug] >     0.5 * m * v ** 2

00:00:35 #4432 [Debug] >

00:00:35 #4433 [Debug] > inl system_ke (multi_particle_state sts) =

00:00:35 #4434 [Debug] >     sts |> listm.map kinetic_energy |> listm'.sum

00:00:35 #4435 [Debug] >

00:00:35 #4436 [Debug] > inl linear_spring_pe k re (particle_state st1) (particle_state st2) =

00:00:35 #4437 [Debug] >     inl r1 = st1.pos_vec

00:00:35 #4438 [Debug] >     inl r2 = st2.pos_vec

00:00:35 #4439 [Debug] >     inl r21 = r2 ^-^ r1

00:00:35 #4440 [Debug] >     inl r21mag = magnitude r21

00:00:35 #4441 [Debug] >     k * (r21mag - re) ** 2 / 2

00:00:35 #4442 [Debug] >

00:00:35 #4443 [Debug] > inl earth_surface_gravity_pe (particle_state st) =

00:00:35 #4444 [Debug] >     inl g = 9.80665

00:00:35 #4445 [Debug] >     inl m = st.mass

00:00:35 #4446 [Debug] >     inl z = st.pos_vec.z

00:00:35 #4447 [Debug] >     m * g * z

00:00:35 #4448 [Debug] >

00:00:35 #4449 [Debug] > inl two_springs_pe (multi_particle_state sts) =

00:00:35 #4450 [Debug] >     inl st0 = sts |> listm'.item 0i32

00:00:35 #4451 [Debug] >     inl st1 = sts |> listm'.item 1i32

00:00:35 #4452 [Debug] >     linear_spring_pe 100 0.5 (default_particle_state ()) st0

00:00:35 #4453 [Debug] >     + linear_spring_pe 100 0.5 st0 st1

00:00:35 #4454 [Debug] >     + earth_surface_gravity_pe st0

00:00:35 #4455 [Debug] >     + earth_surface_gravity_pe st1

00:00:35 #4456 [Debug] >

00:00:35 #4457 [Debug] > inl two_springs_me mpst =

00:00:35 #4458 [Debug] >     system_ke mpst + two_springs_pe mpst

00:00:35 #4459 [Debug] >

00:00:35 #4460 [Debug] > inl ball_radius () = 0.03

00:00:35 #4461 [Debug] >

00:00:35 #4462 [Debug] > inl billiard_forces k =

00:00:35 #4463 [Debug] >     [[ InternalForce (0, 1, billiard_force k (2 * ball_radius ())) ]]

00:00:35 #4464 [Debug] >

00:00:35 #4465 [Debug] > inl billiard_update n_method k dt =

00:00:35 #4466 [Debug] >     update_mps (n_method dt) (billiard_forces k)

00:00:35 #4467 [Debug] >

00:00:35 #4468 [Debug] > inl billiard_initial () =

00:00:35 #4469 [Debug] >     inl ball_mass = 0.160

00:00:35 #4470 [Debug] >     inl (particle_state default_particle_state') = default_particle_state ()

00:00:35 #4471 [Debug] >     multi_particle_state [[

00:00:35 #4472 [Debug] >         particle_state {

00:00:35 #4473 [Debug] >             default_particle_state' with

00:00:35 #4474 [Debug] >                 mass = ball_mass

00:00:35 #4475 [Debug] >                 pos_vec = zero_vec ()

00:00:35 #4476 [Debug] >                 velocity = 0.2 *^ i_hat ()

00:00:35 #4477 [Debug] >         }

00:00:35 #4478 [Debug] >         particle_state {

00:00:35 #4479 [Debug] >             default_particle_state' with

00:00:35 #4480 [Debug] >                 mass = ball_mass

00:00:35 #4481 [Debug] >                 pos_vec = i_hat () ^+^ 0.02 *^ j_hat ()

00:00:35 #4482 [Debug] >                 velocity = zero_vec ()

00:00:35 #4483 [Debug] >         }

00:00:35 #4484 [Debug] >     ]]

00:00:35 #4485 [Debug] >

00:00:35 #4486 [Debug] > inl billiard_states ~n_method k dt =

00:00:35 #4487 [Debug] >     states_mps (n_method dt) (billiard_forces k) (billiard_initial ())

00:00:35 #4488 [Debug] >

00:00:35 #4489 [Debug] > inl billiard_states_finite n_method k dt =

00:00:35 #4490 [Debug] >     billiard_states n_method k dt

00:00:35 #4491 [Debug] >     >> Some

00:00:35 #4492 [Debug] >     |> seq.take_while_ (fun (multi_particle_state mpst) (_ : i32) =>

00:00:35 #4493 [Debug] >         (mpst |> listm'.item 0i32).time <= 10

00:00:35 #4494 [Debug] >     )

00:00:35 #4495 [Debug] >

00:00:35 #4496 [Debug] > inl momentum (particle_state st) =

00:00:35 #4497 [Debug] >     inl m = st.mass

00:00:35 #4498 [Debug] >     inl v = st.velocity

00:00:35 #4499 [Debug] >     m *^ v

00:00:35 #4500 [Debug] >

00:00:35 #4501 [Debug] > inl system_p (multi_particle_state sts) =

00:00:35 #4502 [Debug] >     sts |> listm.map momentum |> sum_vec

00:00:35 #4503 [Debug] >

00:00:35 #4504 [Debug] >

00:00:35 #4505 [Debug] > inl time_ke_ec_x, time_ke_ec_y =

00:00:35 #4506 [Debug] >     billiard_states_finite euler_cromer_mps 30 0.03

00:00:35 #4507 [Debug] >     |> listm.map (fun (multi_particle_state mpst) =>

00:00:35 #4508 [Debug] >         (mpst |> listm'.item 0i32).time, system_ke (multi_particle_state mpst)

00:00:35 #4509 [Debug] >     )

00:00:35 #4510 [Debug] >     |> listm'.unzip

00:00:35 #4511 [Debug] >

00:00:35 #4512 [Debug] > inl time_ke_rk4_x, time_ke_rk4_y =

00:00:35 #4513 [Debug] >     billiard_states_finite runge_kutta_4 30 0.03

00:00:35 #4514 [Debug] >     |> listm.map (fun (multi_particle_state mpst) =>

00:00:35 #4515 [Debug] >         (mpst |> listm'.item 0i32).time, system_ke (multi_particle_state mpst)

00:00:35 #4516 [Debug] >     )

00:00:35 #4517 [Debug] >     |> listm'.unzip

00:00:35 #4518 [Debug] >

00:00:35 #4519 [Debug] > inl time_ke_ec_x : a i32 _ = time_ke_ec_x |> listm.toArray

00:00:35 #4520 [Debug] > inl time_ke_ec_y : a i32 _ = time_ke_ec_y |> listm.toArray

00:00:35 #4521 [Debug] >

00:00:35 #4522 [Debug] > inl time_ke_rk4_x : a i32 _ = time_ke_rk4_x |> listm.toArray

00:00:35 #4523 [Debug] > inl time_ke_rk4_y : a i32 _ = time_ke_rk4_y |> listm.toArray

00:00:35 #4524 [Debug] >

00:00:35 #4525 [Debug] > "system kinetic energy versus time",

00:00:35 #4526 [Debug] > "time (s)",

00:00:35 #4527 [Debug] > "system kinetic energy (j)",

00:00:35 #4528 [Debug] > ;[[

00:00:35 #4529 [Debug] >     "euler-cromer", time_ke_ec_x, time_ke_ec_y

00:00:35 #4530 [Debug] >     "runge-kutta 4", time_ke_rk4_x, time_ke_rk4_y

00:00:35 #4531 [Debug] > ]]

00:00:35 #4532 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1411-5889-8927-86abab85f2f4\main.spi

00:00:37 #4533 [Debug] >

00:00:37 #4534 [Debug] > ╭─[ 1.74s - return value ]─────────────────────────────────────────────────────╮

00:00:37 #4535 [Debug] > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │

00:00:37 #4536 [Debug] > │ xmlns="http://www.w3.org/2000/svg">                                          │

00:00:37 #4537 [Debug] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │

00:00:37 #4538 [Debug] > │ stroke="none"/>                                                              │

00:00:37 #4539 [Debug] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │

00:00:37 #4540 [Debug] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │

00:00:37 #4541 [Debug] > │ fill="#FFFFFF">                                                              │

00:00:37 #4542 [Debug] > │ system kinetic energy versus time                                            │

00:00:37 #4543 [Debug] > │ </text>                                                                      │

00:00:37 #4544 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │

00:00:37 #4545 [Debug] > │ y2="75"/>                                                                    │

00:00:37 #4546 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │

00:00:37 #4547 [Debug] > │ y2="75"/>                                                                    │

00:00:37 #4548 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │

00:00:37 #4549 [Debug] > │ y2="75"/>                                                                    │

00:00:37 #4550 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │

00:00:37 #4551 [Debug] > │ y2="75"/>                                                                    │

00:00:37 #4552 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1...                        │

00:00:37 #4553 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:37 #4554 [Debug] >

00:00:37 #4555 [Debug] > ╭─[ 1.75s - stdout ]───────────────────────────────────────────────────────────╮

00:00:37 #4556 [Debug] > │ type UH0 =                                                                   │

00:00:37 #4557 [Debug] > │     | UH0_0 of float * float * float * float * float * float * float * float │

00:00:37 #4558 [Debug] > │ * float * UH0                                                                │

00:00:37 #4559 [Debug] > │     | UH0_1                                                                  │

00:00:37 #4560 [Debug] > │ and UH1 =                                                                    │

00:00:37 #4561 [Debug] > │     | UH1_0 of float * float * float * float * float * float * float * float │

00:00:37 #4562 [Debug] > │ * float * UH1                                                                │

00:00:37 #4563 [Debug] > │     | UH1_1                                                                  │

00:00:37 #4564 [Debug] > │ and UH2 =                                                                    │

00:00:37 #4565 [Debug] > │     | UH2_0 of float * float * float * float * float * float * float * float │

00:00:37 #4566 [Debug] > │ * float * float * float * float * float * float * float * float * float *    │

00:00:37 #4567 [Debug] > │ float * UH2                                                                  │

00:00:37 #4568 [Debug] > │     | UH2_1                                                                  │

00:00:37 #4569 [Debug] > │ and UH3 =                                                                    │

00:00:37 #4570 [Debug] > │     | UH3_0 of int32 * float * float * float * float * float * float * float │

00:00:37 #4571 [Debug] > │ * float * float * UH3                                                        │

00:00:37 #4572 [Debug] > │     | UH3_1                                                                  │

00:00:37 #4573 [Debug] > │ and [<Struct>] US0 =                                                         │

00:00:37 #4574 [Debug] > │     | US0_0                                                                  │

00:00:37 #4575 [Debug] > │     | US0_1 of f1_0 : float * f1_1 : float * f1_2 : float * f1_3 : float *   │

00:00:37 #4576 [Debug] > │ f1_4 : float * f1_5 : float * f1_6 : float * f1_7 : float * f1_8 : float     │

00:00:37 #4577 [Debug] > │ and UH4 =                                                                    │

00:00:37 #4578 [Debug] > │     | UH4_0 of UH0 * UH4                                                     │

00:00:37 #4579 [Debug] > │     | UH4_1                                                                  │

00:00:37 #4580 [Debug] > │ and UH5 =                                                                    │

00:00:37 #4581 [Debug] > │     | UH5_0 of float * float * UH5                                           │

00:00:37 #4582 [Debug] > │     | UH5_1                                                                  │

00:00:37 #4583 [Debug] > │ and UH6 =                                                                    │

00:00:37 #4584 [Debug] > │     | UH6_0 of float * UH6                                                   │

00:00:37 #4585 [Debug] > │     | UH6_1                                                                  │

00:00:37 #4586 [Debug] > │ let rec method2 (v0 : UH0, v1 : UH0) : UH0 =                                 │

00:00:37 #4587 [Debug] > │     match v0 with                                                            │

00:00:37 #4588 [Debug] > │     | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *)          │

00:00:37 #4589 [Debug] > │         let v12 : UH0 = UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v1)       │

00:00:37 #4590 [Debug] > │         method2(v11, v12)                                                    │

00:00:37 #4591 [Debug] > │     | UH0_1 -> (* Nil *)                                                     │

00:00:37 #4592 [Debug] > │         v1                                                                   │

00:00:37 #4593 [Debug] > │ and method1 (v0 : float, v1 : UH0, v2 : UH1, v3 : UH0) : UH0 =               │

00:00:37 #4594 [Debug] > │     match v2 with                                                            │

00:00:37 #4595 [Debug] > │     | UH1_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* Cons *)        │

00:00:37 #4596 [Debug] > │         match v3 with                                                        │

00:00:37 #4597 [Debug] > │         | UH0_0(v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) -> (* Cons │

00:00:37 #4598 [Debug] > │ *)                                                                           │

00:00:37 #4599 [Debug] > │             let v24 : float = v9 * v0                                        │

00:00:37 #4600 [Debug] > │             let v25 : float = v19 + v24                                      │

00:00:37 #4601 [Debug] > │             let v26 : float = v0 * v6                                        │

00:00:37 #4602 [Debug] > │             let v27 : float = v0 * v7                                        │

00:00:37 #4603 [Debug] > │             let v28 : float = v0 * v8                                        │

00:00:37 #4604 [Debug] > │             let v29 : float = v16 + v26                                      │

00:00:37 #4605 [Debug] > │             let v30 : float = v17 + v27                                      │

00:00:37 #4606 [Debug] > │             let v31 : float = v18 + v28                                      │

00:00:37 #4607 [Debug] > │             let v32 : float = v0 * v10                                       │

00:00:37 #4608 [Debug] > │             let v33 : float = v0 * v11                                       │

00:00:37 #4609 [Debug] > │             let v34 : float = v0 * v12                                       │

00:00:37 #4610 [Debug] > │             let v35 : float = v20 + v32                                      │

00:00:37 #4611 [Debug] > │             let v36 : float = v21 + v33                                      │

00:00:37 #4612 [Debug] > │             let v37 : float = v22 + v34                                      │

00:00:37 #4613 [Debug] > │             let v38 : UH0 = UH0_0(v14, v15, v29, v30, v31, v25, v35, v36,    │

00:00:37 #4614 [Debug] > │ v37, v1)                                                                     │

00:00:37 #4615 [Debug] > │             method1(v0, v38, v13, v23)                                       │

00:00:37 #4616 [Debug] > │         | _ ->                                                               │

00:00:37 #4617 [Debug] > │             let v40 : UH0 = UH0_1                                            │

00:00:37 #4618 [Debug] > │             method2(v1, v40)                                                 │

00:00:37 #4619 [Debug] > │     | _ ->                                                                   │

00:00:37 #4620 [Debug] > │         let v43 : UH0 = UH0_1                                                │

00:00:37 #4621 [Debug] > │         method2(v1, v43)                                                     │

00:00:37 #4622 [Debug] > │ and method4 (v0 : UH2, v1 : UH2) : UH2 =                                     │

00:00:37 #4623 [Debug] > │     match v0 with                                                            │

00:00:37 #4624 [Debug] > │     | UH2_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15,    │

00:00:37 #4625 [Debug] > │ v16, v17, v18, v19, v20) -> (* Cons *)                                       │

00:00:37 #4626 [Debug] > │         let v21 : UH2 = UH2_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, │

00:00:37 #4627 [Debug] > │ v13, v14, v15, v16, v17, v18, v19, v1)                                       │

00:00:37 #4628 [Debug] > │         method4(v20, v21)                                                    │

00:00:37 #4629 [Debug] > │     | UH2_1 -> (* Nil *)                                                     │

00:00:37 #4630 [Debug] > │         v1                                                                   │

00:00:37 #4631 [Debug] > │ and method3 (v0 : UH2, v1 : UH0, v2 : UH0) : UH2 =                           │

00:00:37 #4632 [Debug] > │     match v1 with                                                            │

00:00:37 #4633 [Debug] > │     | UH0_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* Cons *)         │

00:00:37 #4634 [Debug] > │         match v2 with                                                        │

00:00:37 #4635 [Debug] > │         | UH0_0(v13, v14, v15, v16, v17, v18, v19, v20, v21, v22) -> (* Cons │

00:00:37 #4636 [Debug] > │ *)                                                                           │

00:00:37 #4637 [Debug] > │             let v23 : UH2 = UH2_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v13, │

00:00:37 #4638 [Debug] > │ v14, v15, v16, v17, v18, v19, v20, v21, v0)                                  │

00:00:37 #4639 [Debug] > │             method3(v23, v12, v22)                                           │

00:00:37 #4640 [Debug] > │         | _ ->                                                               │

00:00:37 #4641 [Debug] > │             let v25 : UH2 = UH2_1                                            │

00:00:37 #4642 [Debug] > │             method4(v0, v25)                                                 │

00:00:37 #4643 [Debug] > │     | _ ->                                                                   │

00:00:37 #4644 [Debug] > │         let v28 : UH2 = UH2_1                                                │

00:00:37 #4645 [Debug] > │         method4(v0, v28)                                                     │

00:00:37 #4646 [Debug] > │ and method5 (v0 : float, v1 : UH2, v2 : UH0) : UH0 =                         │

00:00:37 #4647 [Debug] > │     match v1 with                                                            │

00:00:37 #4648 [Debug] > │     | UH2_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16,   │

00:00:37 #4649 [Debug] > │ v17, v18, v19, v20, v21) -> (* Cons *)                                       │

00:00:37 #4650 [Debug] > │         let v22 : UH0 = method5(v0, v21, v2)                                 │

00:00:37 #4651 [Debug] > │         let v23 : float = v0 * v18                                           │

00:00:37 #4652 [Debug] > │         let v24 : float = v0 * v19                                           │

00:00:37 #4653 [Debug] > │         let v25 : float = v0 * v20                                           │

00:00:37 #4654 [Debug] > │         let v26 : float = v5 + v23                                           │

00:00:37 #4655 [Debug] > │         let v27 : float = v6 + v24                                           │

00:00:37 #4656 [Debug] > │         let v28 : float = v7 + v25                                           │

00:00:37 #4657 [Debug] > │         UH0_0(v12, v13, v26, v27, v28, v17, v18, v19, v20, v22)              │

00:00:37 #4658 [Debug] > │     | UH2_1 -> (* Nil *)                                                     │

00:00:37 #4659 [Debug] > │         v2                                                                   │

00:00:37 #4660 [Debug] > │ and closure2 (v0 : float, v1 : (UH0 -> UH1)) (v2 : UH0) : UH0 =              │

00:00:37 #4661 [Debug] > │     let v3 : UH1 = v1 v2                                                     │

00:00:37 #4662 [Debug] > │     let v4 : UH0 = UH0_1                                                     │

00:00:37 #4663 [Debug] > │     let v5 : UH0 = method1(v0, v4, v3, v2)                                   │

00:00:37 #4664 [Debug] > │     let v6 : UH2 = UH2_1                                                     │

00:00:37 #4665 [Debug] > │     let v7 : UH2 = method3(v6, v2, v5)                                       │

00:00:37 #4666 [Debug] > │     let v8 : UH0 = UH0_1                                                     │

00:00:37 #4667 [Debug] > │     let v9 : UH0 = method5(v0, v7, v8)                                       │

00:00:37 #4668 [Debug] > │     v9                                                                       │

00:00:37 #4669 [Debug] > │ and closure1 (v0 : float) (v1 : (UH0 -> UH1)) : (UH0 -> UH0) =               │

00:00:37 #4670 [Debug] > │     closure2(v0, v1)                                                         │

00:00:37 #4671 [Debug] > │ and closure0 () (v0 : float) : ((UH0 -> UH1) -> (UH0 -> UH0)) =              │

00:00:37 #4672 [Debug] > │     closure1(v0)                                                             │

00:00:37 #4673 [Debug] > │ and method6 (v0 : UH0, v1 : UH3, v2 : int32) : struct (UH3 * int32) =        │

00:00:37 #4674 [Debug] > │     match v0 with                                                            │

00:00:37 #4675 [Debug] > │     | UH0_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* Cons *)         │

00:00:37 #4676 [Debug] > │         let v13 : int32 = v2 + 1                                             │

00:00:37 #4677 [Debug] > │         let v14 : UH3 = UH3_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v1)  │

00:00:37 #4678 [Debug] > │         method6(v12, v14, v13)                                               │

00:00:37 #4679 [Debug] > │     | UH0_1 -> (* Nil *)                                                     │

00:00:37 #4680 [Debug] > │         struct (v1, v2)                                                      │

00:00:37 #4681 [Debug] > │ and method7 (v0 : UH3, v1 : UH3) : UH3 =                                     │

00:00:37 #4682 [Debug] > │     match v0 with                                                            │

00:00:37 #4683 [Debug] > │     | UH3_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* Cons *)     │

00:00:37 #4684 [Debug] > │         let v13 : UH3 = UH3_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v1)  │

00:00:37 #4685 [Debug] > │         method7(v12, v13)                                                    │

00:00:37 #4686 [Debug] > │     | UH3_1 -> (* Nil *)                                                     │

00:00:37 #4687 [Debug] > │         v1                                                                   │

00:00:37 #4688 [Debug] > │ and closure4 (v0 : float, v1 : float, v2 : float, v3 : float, v4 : float, v5 │

00:00:37 #4689 [Debug] > │ : float, v6 : float, v7 : float, v8 : float) struct (v9 : float, v10 :       │

00:00:37 #4690 [Debug] > │ float, v11 : float, v12 : float, v13 : float, v14 : float, v15 : float, v16  │

00:00:37 #4691 [Debug] > │ : float, v17 : float) : struct (float * float * float) =                     │

00:00:37 #4692 [Debug] > │     let v18 : float = -1.0 * v2                                              │

00:00:37 #4693 [Debug] > │     let v19 : float = -1.0 * v3                                              │

00:00:37 #4694 [Debug] > │     let v20 : float = -1.0 * v4                                              │

00:00:37 #4695 [Debug] > │     let v21 : float = v11 + v18                                              │

00:00:37 #4696 [Debug] > │     let v22 : float = v12 + v19                                              │

00:00:37 #4697 [Debug] > │     let v23 : float = v13 + v20                                              │

00:00:37 #4698 [Debug] > │     let v24 : float = v21 * v21                                              │

00:00:37 #4699 [Debug] > │     let v25 : float = v22 * v22                                              │

00:00:37 #4700 [Debug] > │     let v26 : float = v24 + v25                                              │

00:00:37 #4701 [Debug] > │     let v27 : float = v23 * v23                                              │

00:00:37 #4702 [Debug] > │     let v28 : float = v26 + v27                                              │

00:00:37 #4703 [Debug] > │     let v29 : float = sqrt v28                                               │

00:00:37 #4704 [Debug] > │     let v30 : bool = v29 >= 0.06                                             │

00:00:37 #4705 [Debug] > │     let v33 : float =                                                        │

00:00:37 #4706 [Debug] > │         if v30 then                                                          │

00:00:37 #4707 [Debug] > │             0.0                                                              │

00:00:37 #4708 [Debug] > │         else                                                                 │

00:00:37 #4709 [Debug] > │             let v31 : float = v29 - 0.06                                     │

00:00:37 #4710 [Debug] > │             let v32 : float = -30.0 * v31                                    │

00:00:37 #4711 [Debug] > │             v32                                                              │

00:00:37 #4712 [Debug] > │     let v34 : float = v33 * v21                                              │

00:00:37 #4713 [Debug] > │     let v35 : float = v33 * v22                                              │

00:00:37 #4714 [Debug] > │     let v36 : float = v33 * v23                                              │

00:00:37 #4715 [Debug] > │     let v37 : float = v34 / v29                                              │

00:00:37 #4716 [Debug] > │     let v38 : float = v35 / v29                                              │

00:00:37 #4717 [Debug] > │     let v39 : float = v36 / v29                                              │

00:00:37 #4718 [Debug] > │     struct (v37, v38, v39)                                                   │

00:00:37 #4719 [Debug] > │ and closure5 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 : │

00:00:37 #4720 [Debug] > │ float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float *     │

00:00:37 #4721 [Debug] > │ float * float) =                                                             │

00:00:37 #4722 [Debug] > │     struct (0.0, 0.0, 0.0)                                                   │

00:00:37 #4723 [Debug] > │ and method8 (v0 : UH0, v1 : UH3, v2 : UH1) : UH1 =                           │

00:00:37 #4724 [Debug] > │     match v1 with                                                            │

00:00:37 #4725 [Debug] > │     | UH3_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* Cons *)    │

00:00:37 #4726 [Debug] > │         let v14 : UH1 = method8(v0, v13, v2)                                 │

00:00:37 #4727 [Debug] > │         let v15 : bool = v3 = 0                                              │

00:00:37 #4728 [Debug] > │         let v134 : (struct (float * float * float * float * float * float *  │

00:00:37 #4729 [Debug] > │ float * float * float) -> struct (float * float * float)) =                  │

00:00:37 #4730 [Debug] > │             if v15 then                                                      │

00:00:37 #4731 [Debug] > │                 let v42 : US0 =                                              │

00:00:37 #4732 [Debug] > │                     match v0 with                                            │

00:00:37 #4733 [Debug] > │                     | UH0_0(v16, v17, v18, v19, v20, v21, v22, v23, v24,     │

00:00:37 #4734 [Debug] > │ v25) -> (* Cons *)                                                           │

00:00:37 #4735 [Debug] > │                         match v25 with                                       │

00:00:37 #4736 [Debug] > │                         | UH0_0(v26, v27, v28, v29, v30, v31, v32, v33, v34, │

00:00:37 #4737 [Debug] > │ v35) -> (* Cons *)                                                           │

00:00:37 #4738 [Debug] > │                             US0_1(v26, v27, v28, v29, v30, v31, v32, v33,    │

00:00:37 #4739 [Debug] > │ v34)                                                                         │

00:00:37 #4740 [Debug] > │                         | UH0_1 -> (* Nil *)                                 │

00:00:37 #4741 [Debug] > │                             US0_0                                            │

00:00:37 #4742 [Debug] > │                     | UH0_1 -> (* Nil *)                                     │

00:00:37 #4743 [Debug] > │                         US0_0                                                │

00:00:37 #4744 [Debug] > │                 let struct (v70 : float, v71 : float, v72 : float, v73 :     │

00:00:37 #4745 [Debug] > │ float, v74 : float, v75 : float, v76 : float, v77 : float, v78 : float) =    │

00:00:37 #4746 [Debug] > │                     match v42 with                                           │

00:00:37 #4747 [Debug] > │                     | US0_0 -> (* None *)                                    │

00:00:37 #4748 [Debug] > │                         failwith<struct (float * float * float * float *     │

00:00:37 #4749 [Debug] > │ float * float * float * float * float)> "Option does not have a value."      │

00:00:37 #4750 [Debug] > │                     | US0_1(v43, v44, v45, v46, v47, v48, v49, v50, v51) ->  │

00:00:37 #4751 [Debug] > │ (* Some *)                                                                   │

00:00:37 #4752 [Debug] > │                         struct (v43, v44, v45, v46, v47, v48, v49, v50, v51) │

00:00:37 #4753 [Debug] > │                 closure4(v70, v71, v72, v73, v74, v75, v76, v77, v78)        │

00:00:37 #4754 [Debug] > │             else                                                             │

00:00:37 #4755 [Debug] > │                 let v80 : bool = v3 = 1                                      │

00:00:37 #4756 [Debug] > │                 if v80 then                                                  │

00:00:37 #4757 [Debug] > │                     let v94 : US0 =                                          │

00:00:37 #4758 [Debug] > │                         match v0 with                                        │

00:00:37 #4759 [Debug] > │                         | UH0_0(v81, v82, v83, v84, v85, v86, v87, v88, v89, │

00:00:37 #4760 [Debug] > │ v90) -> (* Cons *)                                                           │

00:00:37 #4761 [Debug] > │                             US0_1(v81, v82, v83, v84, v85, v86, v87, v88,    │

00:00:37 #4762 [Debug] > │ v89)                                                                         │

00:00:37 #4763 [Debug] > │                         | UH0_1 -> (* Nil *)                                 │

00:00:37 #4764 [Debug] > │                             US0_0                                            │

00:00:37 #4765 [Debug] > │                     let struct (v122 : float, v123 : float, v124 : float,    │

00:00:37 #4766 [Debug] > │ v125 : float, v126 : float, v127 : float, v128 : float, v129 : float, v130 : │

00:00:37 #4767 [Debug] > │ float) =                                                                     │

00:00:37 #4768 [Debug] > │                         match v94 with                                       │

00:00:37 #4769 [Debug] > │                         | US0_0 -> (* None *)                                │

00:00:37 #4770 [Debug] > │                             failwith<struct (float * float * float * float * │

00:00:37 #4771 [Debug] > │ float * float * float * float * float)> "Option does not have a value."      │

00:00:37 #4772 [Debug] > │                         | US0_1(v95, v96, v97, v98, v99, v100, v101, v102,   │

00:00:37 #4773 [Debug] > │ v103) -> (* Some *)                                                          │

00:00:37 #4774 [Debug] > │                             struct (v95, v96, v97, v98, v99, v100, v101,     │

00:00:37 #4775 [Debug] > │ v102, v103)                                                                  │

00:00:37 #4776 [Debug] > │                     closure4(v122, v123, v124, v125, v126, v127, v128, v129, │

00:00:37 #4777 [Debug] > │ v130)                                                                        │

00:00:37 #4778 [Debug] > │                 else                                                         │

00:00:37 #4779 [Debug] > │                     closure5()                                               │

00:00:37 #4780 [Debug] > │         let struct (v135 : float, v136 : float, v137 : float) = v134 struct  │

00:00:37 #4781 [Debug] > │ (v4, v5, v6, v7, v8, v9, v10, v11, v12)                                      │

00:00:37 #4782 [Debug] > │         let v138 : float = v135 / v5                                         │

00:00:37 #4783 [Debug] > │         let v139 : float = v136 / v5                                         │

00:00:37 #4784 [Debug] > │         let v140 : float = v137 / v5                                         │

00:00:37 #4785 [Debug] > │         UH1_0(0.0, 0.0, v10, v11, v12, 1.0, v138, v139, v140, v14)           │

00:00:37 #4786 [Debug] > │     | UH3_1 -> (* Nil *)                                                     │

00:00:37 #4787 [Debug] > │         v2                                                                   │

00:00:37 #4788 [Debug] > │ and closure3 () (v0 : UH0) : UH1 =                                           │

00:00:37 #4789 [Debug] > │     let v1 : UH3 = UH3_1                                                     │

00:00:37 #4790 [Debug] > │     let v2 : int32 = 0                                                       │

00:00:37 #4791 [Debug] > │     let struct (v3 : UH3, v4 : int32) = method6(v0, v1, v2)                  │

00:00:37 #4792 [Debug] > │     let v5 : UH3 = UH3_1                                                     │

00:00:37 #4793 [Debug] > │     let v6 : UH3 = method7(v3, v5)                                           │

00:00:37 #4794 [Debug] > │     let v7 : UH1 = UH1_1                                                     │

00:00:37 #4795 [Debug] > │     let v8 : UH1 = method8(v0, v6, v7)                                       │

00:00:37 #4796 [Debug] > │     v8                                                                       │

00:00:37 #4797 [Debug] > │ and method10 (v0 : (UH0 -> UH0), v1 : UH0, v2 : int32) : UH0 =               │

00:00:37 #4798 [Debug] > │     let v3 : bool = v2 <= 0                                                  │

00:00:37 #4799 [Debug] > │     if v3 then                                                               │

00:00:37 #4800 [Debug] > │         v1                                                                   │

00:00:37 #4801 [Debug] > │     else                                                                     │

00:00:37 #4802 [Debug] > │         let v4 : UH0 = v0 v1                                                 │

00:00:37 #4803 [Debug] > │         let v5 : int32 = v2 - 1                                              │

00:00:37 #4804 [Debug] > │         method10(v0, v4, v5)                                                 │

00:00:37 #4805 [Debug] > │ and method11 (v0 : UH4, v1 : UH4) : UH4 =                                    │

00:00:37 #4806 [Debug] > │     match v0 with                                                            │

00:00:37 #4807 [Debug] > │     | UH4_0(v2, v3) -> (* Cons *)                                            │

00:00:37 #4808 [Debug] > │         let v4 : UH4 = UH4_0(v2, v1)                                         │

00:00:37 #4809 [Debug] > │         method11(v3, v4)                                                     │

00:00:37 #4810 [Debug] > │     | UH4_1 -> (* Nil *)                                                     │

00:00:37 #4811 [Debug] > │         v1                                                                   │

00:00:37 #4812 [Debug] > │ and method9 (v0 : (UH0 -> UH0), v1 : UH4, v2 : int32) : UH4 =                │

00:00:37 #4813 [Debug] > │     let v3 : float = 0.0                                                     │

00:00:37 #4814 [Debug] > │     let v4 : float = 0.16                                                    │

00:00:37 #4815 [Debug] > │     let v5 : float = 0.0                                                     │

00:00:37 #4816 [Debug] > │     let v6 : float = 0.0                                                     │

00:00:37 #4817 [Debug] > │     let v7 : float = 0.0                                                     │

00:00:37 #4818 [Debug] > │     let v8 : float = 0.0                                                     │

00:00:37 #4819 [Debug] > │     let v9 : float = 0.2                                                     │

00:00:37 #4820 [Debug] > │     let v10 : float = 0.0                                                    │

00:00:37 #4821 [Debug] > │     let v11 : float = 0.0                                                    │

00:00:37 #4822 [Debug] > │     let v12 : float = 1.0                                                    │

00:00:37 #4823 [Debug] > │     let v13 : float = 0.02                                                   │

00:00:37 #4824 [Debug] > │     let v14 : float = 0.0                                                    │

00:00:37 #4825 [Debug] > │     let v15 : float = 0.0                                                    │

00:00:37 #4826 [Debug] > │     let v16 : float = 0.0                                                    │

00:00:37 #4827 [Debug] > │     let v17 : float = 0.0                                                    │

00:00:37 #4828 [Debug] > │     let v18 : UH0 = UH0_1                                                    │

00:00:37 #4829 [Debug] > │     let v19 : UH0 = UH0_0(v3, v4, v12, v13, v14, v8, v15, v16, v17, v18)     │

00:00:37 #4830 [Debug] > │     let v20 : UH0 = UH0_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v19)         │

00:00:37 #4831 [Debug] > │     let v21 : UH0 = method10(v0, v20, v2)                                    │

00:00:37 #4832 [Debug] > │     let v35 : US0 =                                                          │

00:00:37 #4833 [Debug] > │         match v21 with                                                       │

00:00:37 #4834 [Debug] > │         | UH0_0(v22, v23, v24, v25, v26, v27, v28, v29, v30, v31) -> (* Cons │

00:00:37 #4835 [Debug] > │ *)                                                                           │

00:00:37 #4836 [Debug] > │             US0_1(v22, v23, v24, v25, v26, v27, v28, v29, v30)               │

00:00:37 #4837 [Debug] > │         | UH0_1 -> (* Nil *)                                                 │

00:00:37 #4838 [Debug] > │             US0_0                                                            │

00:00:37 #4839 [Debug] > │     let struct (v63 : float, v64 : float, v65 : float, v66 : float, v67 :    │

00:00:37 #4840 [Debug] > │ float, v68 : float, v69 : float, v70 : float, v71 : float) =                 │

00:00:37 #4841 [Debug] > │         match v35 with                                                       │

00:00:37 #4842 [Debug] > │         | US0_0 -> (* None *)                                                │

00:00:37 #4843 [Debug] > │             failwith<struct (float * float * float * float * float * float * │

00:00:37 #4844 [Debug] > │ float * float * float)> "Option does not have a value."                      │

00:00:37 #4845 [Debug] > │         | US0_1(v36, v37, v38, v39, v40, v41, v42, v43, v44) -> (* Some *)   │

00:00:37 #4846 [Debug] > │             struct (v36, v37, v38, v39, v40, v41, v42, v43, v44)             │

00:00:37 #4847 [Debug] > │     let v72 : bool = v68 <= 10.0                                             │

00:00:37 #4848 [Debug] > │     if v72 then                                                              │

00:00:37 #4849 [Debug] > │         let v73 : UH4 = UH4_0(v21, v1)                                       │

00:00:37 #4850 [Debug] > │         let v74 : int32 = v2 + 1                                             │

00:00:37 #4851 [Debug] > │         method9(v0, v73, v74)                                                │

00:00:37 #4852 [Debug] > │     else                                                                     │

00:00:37 #4853 [Debug] > │         let v76 : UH4 = UH4_1                                                │

00:00:37 #4854 [Debug] > │         method11(v1, v76)                                                    │

00:00:37 #4855 [Debug] > │ and method13 (v0 : UH0, v1 : UH6) : UH6 =                                    │

00:00:37 #4856 [Debug] > │     match v0 with                                                            │

00:00:37 #4857 [Debug] > │     | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *)          │

00:00:37 #4858 [Debug] > │         let v12 : UH6 = method13(v11, v1)                                    │

00:00:37 #4859 [Debug] > │         let v13 : float = v8 * v8                                            │

00:00:37 #4860 [Debug] > │         let v14 : float = v9 * v9                                            │

00:00:37 #4861 [Debug] > │         let v15 : float = v13 + v14                                          │

00:00:37 #4862 [Debug] > │         let v16 : float = v10 * v10                                          │

00:00:37 #4863 [Debug] > │         let v17 : float = v15 + v16                                          │

00:00:37 #4864 [Debug] > │         let v18 : float = sqrt v17                                           │

00:00:37 #4865 [Debug] > │         let v19 : float = 0.5 * v3                                           │

00:00:37 #4866 [Debug] > │         let v20 : float = v18 ** 2.0                                         │

00:00:37 #4867 [Debug] > │         let v21 : float = v19 * v20                                          │

00:00:37 #4868 [Debug] > │         UH6_0(v21, v12)                                                      │

00:00:37 #4869 [Debug] > │     | UH0_1 -> (* Nil *)                                                     │

00:00:37 #4870 [Debug] > │         v1                                                                   │

00:00:37 #4871 [Debug] > │ and method14 (v0 : UH6, v1 : float) : float =                                │

00:00:37 #4872 [Debug] > │     match v0 with                                                            │

00:00:37 #4873 [Debug] > │     | UH6_0(v2, v3) -> (* Cons *)                                            │

00:00:37 #4874 [Debug] > │         let v4 : float = v1 + v2                                             │

00:00:37 #4875 [Debug] > │         method14(v3, v4)                                                     │

00:00:37 #4876 [Debug] > │     | UH6_1 -> (* Nil *)                                                     │

00:00:37 #4877 [Debug] > │         v1                                                                   │

00:00:37 #4878 [Debug] > │ and method12 (v0 : UH4, v1 : UH5) : UH5 =                                    │

00:00:37 #4879 [Debug] > │     match v0 with                                                            │

00:00:37 #4880 [Debug] > │     | UH4_0(v2, v3) -> (* Cons *)                                            │

00:00:37 #4881 [Debug] > │         let v4 : UH5 = method12(v3, v1)                                      │

00:00:37 #4882 [Debug] > │         let v18 : US0 =                                                      │

00:00:37 #4883 [Debug] > │             match v2 with                                                    │

00:00:37 #4884 [Debug] > │             | UH0_0(v5, v6, v7, v8, v9, v10, v11, v12, v13, v14) -> (* Cons  │

00:00:37 #4885 [Debug] > │ *)                                                                           │

00:00:37 #4886 [Debug] > │                 US0_1(v5, v6, v7, v8, v9, v10, v11, v12, v13)                │

00:00:37 #4887 [Debug] > │             | UH0_1 -> (* Nil *)                                             │

00:00:37 #4888 [Debug] > │                 US0_0                                                        │

00:00:37 #4889 [Debug] > │         let struct (v46 : float, v47 : float, v48 : float, v49 : float, v50  │

00:00:37 #4890 [Debug] > │ : float, v51 : float, v52 : float, v53 : float, v54 : float) =               │

00:00:37 #4891 [Debug] > │             match v18 with                                                   │

00:00:37 #4892 [Debug] > │             | US0_0 -> (* None *)                                            │

00:00:37 #4893 [Debug] > │                 failwith<struct (float * float * float * float * float *     │

00:00:37 #4894 [Debug] > │ float * float * float * float)> "Option does not have a value."              │

00:00:37 #4895 [Debug] > │             | US0_1(v19, v20, v21, v22, v23, v24, v25, v26, v27) -> (* Some  │

00:00:37 #4896 [Debug] > │ *)                                                                           │

00:00:37 #4897 [Debug] > │                 struct (v19, v20, v21, v22, v23, v24, v25, v26, v27)         │

00:00:37 #4898 [Debug] > │         let v55 : UH6 = UH6_1                                                │

00:00:37 #4899 [Debug] > │         let v56 : UH6 = method13(v2, v55)                                    │

00:00:37 #4900 [Debug] > │         let v57 : float = 0.0                                                │

00:00:37 #4901 [Debug] > │         let v58 : float = method14(v56, v57)                                 │

00:00:37 #4902 [Debug] > │         UH5_0(v51, v58, v4)                                                  │

00:00:37 #4903 [Debug] > │     | UH4_1 -> (* Nil *)                                                     │

00:00:37 #4904 [Debug] > │         v1                                                                   │

00:00:37 #4905 [Debug] > │ and method15 (v0 : UH5, v1 : UH6, v2 : UH6) : struct (UH6 * UH6) =           │

00:00:37 #4906 [Debug] > │     match v0 with                                                            │

00:00:37 #4907 [Debug] > │     | UH5_0(v3, v4, v5) -> (* Cons *)                                        │

00:00:37 #4908 [Debug] > │         let v6 : UH6 = UH6_0(v3, v1)                                         │

00:00:37 #4909 [Debug] > │         let v7 : UH6 = UH6_0(v4, v2)                                         │

00:00:37 #4910 [Debug] > │         method15(v5, v6, v7)                                                 │

00:00:37 #4911 [Debug] > │     | UH5_1 -> (* Nil *)                                                     │

00:00:37 #4912 [Debug] > │         struct (v1, v2)                                                      │

00:00:37 #4913 [Debug] > │ and method16 (v0 : UH6, v1 : UH6) : UH6 =                                    │

00:00:37 #4914 [Debug] > │     match v0 with                                                            │

00:00:37 #4915 [Debug] > │     | UH6_0(v2, v3) -> (* Cons *)                                            │

00:00:37 #4916 [Debug] > │         let v4 : UH6 = UH6_0(v2, v1)                                         │

00:00:37 #4917 [Debug] > │         method16(v3, v4)                                                     │

00:00:37 #4918 [Debug] > │     | UH6_1 -> (* Nil *)                                                     │

00:00:37 #4919 [Debug] > │         v1                                                                   │

00:00:37 #4920 [Debug] > │ and method18 (v0 : UH1, v1 : UH1) : UH1 =                                    │

00:00:37 #4921 [Debug] > │     match v0 with                                                            │

00:00:37 #4922 [Debug] > │     | UH1_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *)          │

00:00:37 #4923 [Debug] > │         let v12 : UH1 = UH1_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v1)       │

00:00:37 #4924 [Debug] > │         method18(v11, v12)                                                   │

00:00:37 #4925 [Debug] > │     | UH1_1 -> (* Nil *)                                                     │

00:00:37 #4926 [Debug] > │         v1                                                                   │

00:00:37 #4927 [Debug] > │ and method17 (v0 : UH1, v1 : UH1, v2 : UH1) : UH1 =                          │

00:00:37 #4928 [Debug] > │     match v1 with                                                            │

00:00:37 #4929 [Debug] > │     | UH1_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* Cons *)         │

00:00:37 #4930 [Debug] > │         match v2 with                                                        │

00:00:37 #4931 [Debug] > │         | UH1_0(v13, v14, v15, v16, v17, v18, v19, v20, v21, v22) -> (* Cons │

00:00:37 #4932 [Debug] > │ *)                                                                           │

00:00:37 #4933 [Debug] > │             let v23 : float = v3 + v13                                       │

00:00:37 #4934 [Debug] > │             let v24 : float = v4 + v14                                       │

00:00:37 #4935 [Debug] > │             let v25 : float = v8 + v18                                       │

00:00:37 #4936 [Debug] > │             let v26 : float = v5 + v15                                       │

00:00:37 #4937 [Debug] > │             let v27 : float = v6 + v16                                       │

00:00:37 #4938 [Debug] > │             let v28 : float = v7 + v17                                       │

00:00:37 #4939 [Debug] > │             let v29 : float = v9 + v19                                       │

00:00:37 #4940 [Debug] > │             let v30 : float = v10 + v20                                      │

00:00:37 #4941 [Debug] > │             let v31 : float = v11 + v21                                      │

00:00:37 #4942 [Debug] > │             let v32 : UH1 = UH1_0(v23, v24, v26, v27, v28, v25, v29, v30,    │

00:00:37 #4943 [Debug] > │ v31, v0)                                                                     │

00:00:37 #4944 [Debug] > │             method17(v32, v12, v22)                                          │

00:00:37 #4945 [Debug] > │         | _ ->                                                               │

00:00:37 #4946 [Debug] > │             let v34 : UH1 = UH1_1                                            │

00:00:37 #4947 [Debug] > │             method18(v0, v34)                                                │

00:00:37 #4948 [Debug] > │     | _ ->                                                                   │

00:00:37 #4949 [Debug] > │         let v37 : UH1 = UH1_1                                                │

00:00:37 #4950 [Debug] > │         method18(v0, v37)                                                    │

00:00:37 #4951 [Debug] > │ and closure8 (v0 : float, v1 : (UH0 -> UH1)) (v2 : UH0) : UH0 =              │

00:00:37 #4952 [Debug] > │     let v3 : UH1 = v1 v2                                                     │

00:00:37 #4953 [Debug] > │     let v4 : float = v0 / 2.0                                                │

00:00:37 #4954 [Debug] > │     let v5 : UH0 = UH0_1                                                     │

00:00:37 #4955 [Debug] > │     let v6 : UH0 = method1(v4, v5, v3, v2)                                   │

00:00:37 #4956 [Debug] > │     let v7 : UH1 = v1 v6                                                     │

00:00:37 #4957 [Debug] > │     let v8 : UH0 = UH0_1                                                     │

00:00:37 #4958 [Debug] > │     let v9 : UH0 = method1(v4, v8, v7, v2)                                   │

00:00:37 #4959 [Debug] > │     let v10 : UH1 = v1 v9                                                    │

00:00:37 #4960 [Debug] > │     let v11 : UH0 = UH0_1                                                    │

00:00:37 #4961 [Debug] > │     let v12 : UH0 = method1(v0, v11, v10, v2)                                │

00:00:37 #4962 [Debug] > │     let v13 : UH1 = v1 v12                                                   │

00:00:37 #4963 [Debug] > │     let v14 : float = v0 / 6.0                                               │

00:00:37 #4964 [Debug] > │     let v15 : UH1 = UH1_1                                                    │

00:00:37 #4965 [Debug] > │     let v16 : UH1 = method17(v15, v3, v7)                                    │

00:00:37 #4966 [Debug] > │     let v17 : UH1 = UH1_1                                                    │

00:00:37 #4967 [Debug] > │     let v18 : UH1 = method17(v17, v16, v7)                                   │

00:00:37 #4968 [Debug] > │     let v19 : UH1 = UH1_1                                                    │

00:00:37 #4969 [Debug] > │     let v20 : UH1 = method17(v19, v18, v10)                                  │

00:00:37 #4970 [Debug] > │     let v21 : UH1 = UH1_1                                                    │

00:00:37 #4971 [Debug] > │     let v22 : UH1 = method17(v21, v20, v10)                                  │

00:00:37 #4972 [Debug] > │     let v23 : UH1 = UH1_1                                                    │

00:00:37 #4973 [Debug] > │     let v24 : UH1 = method17(v23, v22, v13)                                  │

00:00:37 #4974 [Debug] > │     let v25 : UH0 = UH0_1                                                    │

00:00:37 #4975 [Debug] > │     let v26 : UH0 = method1(v14, v25, v24, v2)                               │

00:00:37 #4976 [Debug] > │     v26                                                                      │

00:00:37 #4977 [Debug] > │ and closure7 (v0 : float) (v1 : (UH0 -> UH1)) : (UH0 -> UH0) =               │

00:00:37 #4978 [Debug] > │     closure8(v0, v1)                                                         │

00:00:37 #4979 [Debug] > │ and closure6 () (v0 : float) : ((UH0 -> UH1) -> (UH0 -> UH0)) =              │

00:00:37 #4980 [Debug] > │     closure7(v0)                                                             │

00:00:37 #4981 [Debug] > │ and method19 (v0 : UH4, v1 : UH5) : UH5 =                                    │

00:00:37 #4982 [Debug] > │     match v0 with                                                            │

00:00:37 #4983 [Debug] > │     | UH4_0(v2, v3) -> (* Cons *)                                            │

00:00:37 #4984 [Debug] > │         let v4 : UH5 = method19(v3, v1)                                      │

00:00:37 #4985 [Debug] > │         let v18 : US0 =                                                      │

00:00:37 #4986 [Debug] > │             match v2 with                                                    │

00:00:37 #4987 [Debug] > │             | UH0_0(v5, v6, v7, v8, v9, v10, v11, v12, v13, v14) -> (* Cons  │

00:00:37 #4988 [Debug] > │ *)                                                                           │

00:00:37 #4989 [Debug] > │                 US0_1(v5, v6, v7, v8, v9, v10, v11, v12, v13)                │

00:00:37 #4990 [Debug] > │             | UH0_1 -> (* Nil *)                                             │

00:00:37 #4991 [Debug] > │                 US0_0                                                        │

00:00:37 #4992 [Debug] > │         let struct (v46 : float, v47 : float, v48 : float, v49 : float, v50  │

00:00:37 #4993 [Debug] > │ : float, v51 : float, v52 : float, v53 : float, v54 : float) =               │

00:00:37 #4994 [Debug] > │             match v18 with                                                   │

00:00:37 #4995 [Debug] > │             | US0_0 -> (* None *)                                            │

00:00:37 #4996 [Debug] > │                 failwith<struct (float * float * float * float * float *     │

00:00:37 #4997 [Debug] > │ float * float * float * float)> "Option does not have a value."              │

00:00:37 #4998 [Debug] > │             | US0_1(v19, v20, v21, v22, v23, v24, v25, v26, v27) -> (* Some  │

00:00:37 #4999 [Debug] > │ *)                                                                           │

00:00:37 #5000 [Debug] > │                 struct (v19, v20, v21, v22, v23, v24, v25, v26, v27)         │

00:00:37 #5001 [Debug] > │         let v55 : UH6 = UH6_1                                                │

00:00:37 #5002 [Debug] > │         let v56 : UH6 = method13(v2, v55)                                    │

00:00:37 #5003 [Debug] > │         let v57 : float = 0.0                                                │

00:00:37 #5004 [Debug] > │         let v58 : float = method14(v56, v57)                                 │

00:00:37 #5005 [Debug] > │         UH5_0(v51, v58, v4)                                                  │

00:00:37 #5006 [Debug] > │     | UH4_1 -> (* Nil *)                                                     │

00:00:37 #5007 [Debug] > │         v1                                                                   │

00:00:37 #5008 [Debug] > │ and method21 (v0 : UH6, v1 : int32) : int32 =                                │

00:00:37 #5009 [Debug] > │     match v0 with                                                            │

00:00:37 #5010 [Debug] > │     | UH6_0(v2, v3) -> (* Cons *)                                            │

00:00:37 #5011 [Debug] > │         let v4 : int32 = v1 + 1                                              │

00:00:37 #5012 [Debug] > │         method21(v3, v4)                                                     │

00:00:37 #5013 [Debug] > │     | UH6_1 -> (* Nil *)                                                     │

00:00:37 #5014 [Debug] > │         v1                                                                   │

00:00:37 #5015 [Debug] > │ and method22 (v0 : (float []), v1 : UH6, v2 : int32) : int32 =               │

00:00:37 #5016 [Debug] > │     match v1 with                                                            │

00:00:37 #5017 [Debug] > │     | UH6_0(v3, v4) -> (* Cons *)                                            │

00:00:37 #5018 [Debug] > │         v0.[int v2] <- v3                                                    │

00:00:37 #5019 [Debug] > │         let v5 : int32 = v2 + 1                                              │

00:00:37 #5020 [Debug] > │         method22(v0, v4, v5)                                                 │

00:00:37 #5021 [Debug] > │     | UH6_1 -> (* Nil *)                                                     │

00:00:37 #5022 [Debug] > │         v2                                                                   │

00:00:37 #5023 [Debug] > │ and method20 (v0 : UH6) : (float []) =                                       │

00:00:37 #5024 [Debug] > │     let v1 : int32 = 0                                                       │

00:00:37 #5025 [Debug] > │     let v2 : int32 = method21(v0, v1)                                        │

00:00:37 #5026 [Debug] > │     let v3 : (float []) = Array.zeroCreate<float> (v2)                       │

00:00:37 #5027 [Debug] > │     let v4 : int32 = 0                                                       │

00:00:37 #5028 [Debug] > │     let v5 : int32 = method22(v3, v0, v4)                                    │

00:00:37 #5029 [Debug] > │     v3                                                                       │

00:00:37 #5030 [Debug] > │ and method0 () : struct (string * string * string * (struct (string * (float │

00:00:37 #5031 [Debug] > │ []) * (float [])) [])) =                                                     │

00:00:37 #5032 [Debug] > │     let v0 : (float -> ((UH0 -> UH1) -> (UH0 -> UH0))) = closure0()          │

00:00:37 #5033 [Debug] > │     let v1 : ((UH0 -> UH1) -> (UH0 -> UH0)) = v0 0.03                        │

00:00:37 #5034 [Debug] > │     let v2 : (UH0 -> UH1) = closure3()                                       │

00:00:37 #5035 [Debug] > │     let v3 : (UH0 -> UH0) = v1 v2                                            │

00:00:37 #5036 [Debug] > │     let v4 : UH4 = UH4_1                                                     │

00:00:37 #5037 [Debug] > │     let v5 : int32 = 0                                                       │

00:00:37 #5038 [Debug] > │     let v6 : UH4 = method9(v3, v4, v5)                                       │

00:00:37 #5039 [Debug] > │     let v7 : UH5 = UH5_1                                                     │

00:00:37 #5040 [Debug] > │     let v8 : UH5 = method12(v6, v7)                                          │

00:00:37 #5041 [Debug] > │     let v9 : UH6 = UH6_1                                                     │

00:00:37 #5042 [Debug] > │     let v10 : UH6 = UH6_1                                                    │

00:00:37 #5043 [Debug] > │     let struct (v11 : UH6, v12 : UH6) = method15(v8, v9, v10)                │

00:00:37 #5044 [Debug] > │     let v13 : UH6 = UH6_1                                                    │

00:00:37 #5045 [Debug] > │     let v14 : UH6 = method16(v11, v13)                                       │

00:00:37 #5046 [Debug] > │     let v15 : UH6 = UH6_1                                                    │

00:00:37 #5047 [Debug] > │     let v16 : UH6 = method16(v12, v15)                                       │

00:00:37 #5048 [Debug] > │     let v17 : (float -> ((UH0 -> UH1) -> (UH0 -> UH0))) = closure6()         │

00:00:37 #5049 [Debug] > │     let v18 : ((UH0 -> UH1) -> (UH0 -> UH0)) = v17 0.03                      │

00:00:37 #5050 [Debug] > │     let v19 : (UH0 -> UH0) = v18 v2                                          │

00:00:37 #5051 [Debug] > │     let v20 : UH4 = UH4_1                                                    │

00:00:37 #5052 [Debug] > │     let v21 : int32 = 0                                                      │

00:00:37 #5053 [Debug] > │     let v22 : UH4 = method9(v19, v20, v21)                                   │

00:00:37 #5054 [Debug] > │     let v23 : UH5 = UH5_1                                                    │

00:00:37 #5055 [Debug] > │     let v24 : UH5 = method19(v22, v23)                                       │

00:00:37 #5056 [Debug] > │     let v25 : UH6 = UH6_1                                                    │

00:00:37 #5057 [Debug] > │     let v26 : UH6 = UH6_1                                                    │

00:00:37 #5058 [Debug] > │     let struct (v27 : UH6, v28 : UH6) = method15(v24, v25, v26)              │

00:00:37 #5059 [Debug] > │     let v29 : UH6 = UH6_1                                                    │

00:00:37 #5060 [Debug] > │     let v30 : UH6 = method16(v27, v29)                                       │

00:00:37 #5061 [Debug] > │     let v31 : UH6 = UH6_1                                                    │

00:00:37 #5062 [Debug] > │     let v32 : UH6 = method16(v28, v31)                                       │

00:00:37 #5063 [Debug] > │     let v33 : (float []) = method20(v14)                                     │

00:00:37 #5064 [Debug] > │     let v34 : (float []) = method20(v16)                                     │

00:00:37 #5065 [Debug] > │     let v35 : (float []) = method20(v30)                                     │

00:00:37 #5066 [Debug] > │     let v36 : (float []) = method20(v32)                                     │

00:00:37 #5067 [Debug] > │     let v37 : string = "euler-cromer"                                        │

00:00:37 #5068 [Debug] > │     let v38 : string = "runge-kutta 4"                                       │

00:00:37 #5069 [Debug] > │     let v39 : (struct (string * (float []) * (float [])) []) = [|struct      │

00:00:37 #5070 [Debug] > │ (v37, v33, v34); struct (v38, v35, v36)|]                                    │

00:00:37 #5071 [Debug] > │     let v40 : string = "system kinetic energy versus time"                   │

00:00:37 #5072 [Debug] > │     let v41 : string = "time (s)"                                            │

00:00:37 #5073 [Debug] > │     let v42 : string = "system kinetic energy (j)"                           │

00:00:37 #5074 [Debug] > │     struct (v40, v41, v42, v39)                                              │

00:00:37 #5075 [Debug] > │ method0()                                                                    │

00:00:37 #5076 [Debug] > │                                                                              │

00:00:37 #5077 [Debug] > │                                                                              │

00:00:37 #5078 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:37 #5079 [Debug] >

00:00:37 #5080 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:37 #5081 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:37 #5082 [Debug] > │ ### wave 1                                                                   │

00:00:37 #5083 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:37 #5084 [Debug] >

00:00:37 #5085 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:37 #5086 [Debug] > // // test

00:00:37 #5087 [Debug] >

00:00:37 #5088 [Debug] > inl linear_spring k re (particle_state st1) (particle_state st2) =

00:00:37 #5089 [Debug] >     inl r1 = st1.pos_vec

00:00:37 #5090 [Debug] >     inl r2 = st2.pos_vec

00:00:37 #5091 [Debug] >     inl r21 = r2 ^-^ r1

00:00:37 #5092 [Debug] >     inl r21mag = magnitude r21

00:00:37 #5093 [Debug] >     -k * (r21mag - re) *^ r21 ^/ r21mag

00:00:37 #5094 [Debug] >

00:00:37 #5095 [Debug] > inl fixed_linear_spring k re r1 =

00:00:37 #5096 [Debug] >     inl (particle_state default_particle_state') = default_particle_state ()

00:00:37 #5097 [Debug] >     linear_spring k re (particle_state { default_particle_state' with pos_vec =

00:00:37 #5098 [Debug] > r1 })

00:00:37 #5099 [Debug] >

00:00:37 #5100 [Debug] > inl forces_string () =

00:00:37 #5101 [Debug] >     [[

00:00:37 #5102 [Debug] >         ExternalForce (0, fixed_linear_spring 5384 0 (zero_vec ()))

00:00:37 #5103 [Debug] >         ExternalForce (63, fixed_linear_spring 5384 0 (0.65 *^ i_hat ()))

00:00:37 #5104 [Debug] >     ]] /@ (

00:00:37 #5105 [Debug] >         listm'.init_series 0 59 1

00:00:37 #5106 [Debug] >         |> listm.map (fun n => InternalForce (n, n + 1, linear_spring 5384 0))

00:00:37 #5107 [Debug] >     )

00:00:37 #5108 [Debug] >

00:00:37 #5109 [Debug] > inl string_update dt =

00:00:37 #5110 [Debug] >     update_mps (runge_kutta_4 dt) (forces_string ())

00:00:37 #5111 [Debug] >

00:00:37 #5112 [Debug] > inl string_initial_overtone n =

00:00:37 #5113 [Debug] >     inl ball_mass = 0.0008293 * 0.65 / 64

00:00:37 #5114 [Debug] >     inl (particle_state default_particle_state') = default_particle_state ()

00:00:37 #5115 [Debug] >     listm'.init_series 0.01 0.64 0.01

00:00:37 #5116 [Debug] >     |> listm.map (fun x =>

00:00:37 #5117 [Debug] >         inl y = 0.005 * sin (conv n * pi * x / 0.65)

00:00:37 #5118 [Debug] >         particle_state {

00:00:37 #5119 [Debug] >             default_particle_state' with

00:00:37 #5120 [Debug] >                 mass = ball_mass

00:00:37 #5121 [Debug] >                 pos_vec = x *^ i_hat () ^+^ y *^ j_hat ()

00:00:37 #5122 [Debug] >                 velocity = zero_vec ()

00:00:37 #5123 [Debug] >         }

00:00:37 #5124 [Debug] >     )

00:00:37 #5125 [Debug] >     |> multi_particle_state

00:00:37 #5126 [Debug] >

00:00:37 #5127 [Debug] > inl string_initial_pluck () =

00:00:37 #5128 [Debug] >     inl ball_mass = 0.0008293 * 0.65 / 64

00:00:37 #5129 [Debug] >     inl (particle_state default_particle_state') = default_particle_state ()

00:00:37 #5130 [Debug] >     listm'.init_series 0.01 0.64 0.01

00:00:37 #5131 [Debug] >     |> listm.map (fun x =>

00:00:37 #5132 [Debug] >         inl y =

00:00:37 #5133 [Debug] >             inl n = if x <= 0.51 then 0 else 0.65

00:00:37 #5134 [Debug] >             0.005 / (0.51 - n) * (x - n)

00:00:37 #5135 [Debug] >         particle_state {

00:00:37 #5136 [Debug] >             default_particle_state' with

00:00:37 #5137 [Debug] >                 mass = ball_mass

00:00:37 #5138 [Debug] >                 pos_vec = x *^ i_hat () ^+^ y *^ j_hat ()

00:00:37 #5139 [Debug] >                 velocity = zero_vec ()

00:00:37 #5140 [Debug] >         }

00:00:37 #5141 [Debug] >     )

00:00:37 #5142 [Debug] >     |> multi_particle_state

00:00:37 #5143 [Debug] >

00:00:37 #5144 [Debug] > let main () =

00:00:37 #5145 [Debug] >     inl ~frames = listm'.init_series 0 9 1f64

00:00:37 #5146 [Debug] >     inl initial_state = string_initial_overtone 3i32

00:00:37 #5147 [Debug] >     inl frames =

00:00:37 #5148 [Debug] >         frames

00:00:37 #5149 [Debug] >         |> listm.map (fun n =>

00:00:37 #5150 [Debug] >             inl (multi_particle_state sts) =

00:00:37 #5151 [Debug] >                 seq.iterate' (string_update 0.000025) initial_state |> fun f =>

00:00:37 #5152 [Debug] > f 0f64

00:00:37 #5153 [Debug] >             inl rs =

00:00:37 #5154 [Debug] >                 [[ zero_vec () ]]

00:00:37 #5155 [Debug] >                 /@ (sts |> listm.map (fun (particle_state st) => st.pos_vec))

00:00:37 #5156 [Debug] >                 /@ [[ 0.65 *^ i_hat () ]]

00:00:37 #5157 [Debug] >             inl x, y =

00:00:37 #5158 [Debug] >                 rs

00:00:37 #5159 [Debug] >                 |> listm.map (fun r => r.x, r.y)

00:00:37 #5160 [Debug] >                 |> listm'.unzip

00:00:37 #5161 [Debug] >             inl x : a i32 _ = x |> listm.toArray

00:00:37 #5162 [Debug] >             inl y : a i32 _ = y |> listm.toArray

00:00:37 #5163 [Debug] >             x, y

00:00:37 #5164 [Debug] >         )

00:00:37 #5165 [Debug] >         |> listm.toArray : a i32 _

00:00:37 #5166 [Debug] >

00:00:37 #5167 [Debug] >     inl n = 0i32

00:00:37 #5168 [Debug] >

00:00:37 #5169 [Debug] >     inl x, y = index frames n

00:00:37 #5170 [Debug] >

00:00:37 #5171 [Debug] >     "wave",

00:00:37 #5172 [Debug] >     "position (m)",

00:00:37 #5173 [Debug] >     "displacement (m)",

00:00:37 #5174 [Debug] >     ;[[

00:00:37 #5175 [Debug] >         ($"$\"{!n}\"" : string), x, y

00:00:37 #5176 [Debug] >     ]]

00:00:37 #5177 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1412-0083-8338-8e000c997737\main.spi

00:00:37 #5178 [Debug] >

00:00:37 #5179 [Debug] > ╭─[ 365.70ms - return value ]──────────────────────────────────────────────────╮

00:00:37 #5180 [Debug] > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │

00:00:37 #5181 [Debug] > │ xmlns="http://www.w3.org/2000/svg">                                          │

00:00:37 #5182 [Debug] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │

00:00:37 #5183 [Debug] > │ stroke="none"/>                                                              │

00:00:37 #5184 [Debug] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │

00:00:37 #5185 [Debug] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │

00:00:37 #5186 [Debug] > │ fill="#FFFFFF">                                                              │

00:00:37 #5187 [Debug] > │ wave                                                                         │

00:00:37 #5188 [Debug] > │ </text>                                                                      │

00:00:37 #5189 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="62" y1="424" x2="62" │

00:00:37 #5190 [Debug] > │ y2="75"/>                                                                    │

00:00:37 #5191 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │

00:00:37 #5192 [Debug] > │ y2="75"/>                                                                    │

00:00:37 #5193 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="77" y1="424" x2="77" │

00:00:37 #5194 [Debug] > │ y2="75"/>                                                                    │

00:00:37 #5195 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="85" y1="424" x2="85" │

00:00:37 #5196 [Debug] > │ y2="75"/>                                                                    │

00:00:37 #5197 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="93" y1="424" x2="93" │

00:00:37 #5198 [Debug] > │ y2...                                                                        │

00:00:37 #5199 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:37 #5200 [Debug] >

00:00:37 #5201 [Debug] > ╭─[ 376.36ms - stdout ]────────────────────────────────────────────────────────╮

00:00:37 #5202 [Debug] > │ type UH0 =                                                                   │

00:00:37 #5203 [Debug] > │     | UH0_0 of float * UH0                                                   │

00:00:37 #5204 [Debug] > │     | UH0_1                                                                  │

00:00:37 #5205 [Debug] > │ and UH1 =                                                                    │

00:00:37 #5206 [Debug] > │     | UH1_0 of (float []) * (float []) * UH1                                 │

00:00:37 #5207 [Debug] > │     | UH1_1                                                                  │

00:00:37 #5208 [Debug] > │ let rec method3 (v0 : UH0, v1 : int32) : int32 =                             │

00:00:37 #5209 [Debug] > │     match v0 with                                                            │

00:00:37 #5210 [Debug] > │     | UH0_0(v2, v3) -> (* Cons *)                                            │

00:00:37 #5211 [Debug] > │         let v4 : int32 = v1 + 1                                              │

00:00:37 #5212 [Debug] > │         method3(v3, v4)                                                      │

00:00:37 #5213 [Debug] > │     | UH0_1 -> (* Nil *)                                                     │

00:00:37 #5214 [Debug] > │         v1                                                                   │

00:00:37 #5215 [Debug] > │ and method4 (v0 : (float []), v1 : UH0, v2 : int32) : int32 =                │

00:00:37 #5216 [Debug] > │     match v1 with                                                            │

00:00:37 #5217 [Debug] > │     | UH0_0(v3, v4) -> (* Cons *)                                            │

00:00:37 #5218 [Debug] > │         v0.[int v2] <- v3                                                    │

00:00:37 #5219 [Debug] > │         let v5 : int32 = v2 + 1                                              │

00:00:37 #5220 [Debug] > │         method4(v0, v4, v5)                                                  │

00:00:37 #5221 [Debug] > │     | UH0_1 -> (* Nil *)                                                     │

00:00:37 #5222 [Debug] > │         v2                                                                   │

00:00:37 #5223 [Debug] > │ and method2 (v0 : UH0) : (float []) =                                        │

00:00:37 #5224 [Debug] > │     let v1 : int32 = 0                                                       │

00:00:37 #5225 [Debug] > │     let v2 : int32 = method3(v0, v1)                                         │

00:00:37 #5226 [Debug] > │     let v3 : (float []) = Array.zeroCreate<float> (v2)                       │

00:00:37 #5227 [Debug] > │     let v4 : int32 = 0                                                       │

00:00:37 #5228 [Debug] > │     let v5 : int32 = method4(v3, v0, v4)                                     │

00:00:37 #5229 [Debug] > │     v3                                                                       │

00:00:37 #5230 [Debug] > │ and method1 (v0 : UH0, v1 : UH1) : UH1 =                                     │

00:00:37 #5231 [Debug] > │     match v0 with                                                            │

00:00:37 #5232 [Debug] > │     | UH0_0(v2, v3) -> (* Cons *)                                            │

00:00:37 #5233 [Debug] > │         let v4 : UH1 = method1(v3, v1)                                       │

00:00:37 #5234 [Debug] > │         let v5 : float = 0.0                                                 │

00:00:37 #5235 [Debug] > │         let v6 : float = 0.01                                                │

00:00:37 #5236 [Debug] > │         let v7 : float = 0.02                                                │

00:00:37 #5237 [Debug] > │         let v8 : float = 0.03                                                │

00:00:37 #5238 [Debug] > │         let v9 : float = 0.04                                                │

00:00:37 #5239 [Debug] > │         let v10 : float = 0.05                                               │

00:00:37 #5240 [Debug] > │         let v11 : float = 0.060000000000000005                               │

00:00:37 #5241 [Debug] > │         let v12 : float = 0.06999999999999999                                │

00:00:37 #5242 [Debug] > │         let v13 : float = 0.08                                               │

00:00:37 #5243 [Debug] > │         let v14 : float = 0.09                                               │

00:00:37 #5244 [Debug] > │         let v15 : float = 0.09999999999999999                                │

00:00:37 #5245 [Debug] > │         let v16 : float = 0.11                                               │

00:00:37 #5246 [Debug] > │         let v17 : float = 0.12                                               │

00:00:37 #5247 [Debug] > │         let v18 : float = 0.13                                               │

00:00:37 #5248 [Debug] > │         let v19 : float = 0.14                                               │

00:00:37 #5249 [Debug] > │         let v20 : float = 0.15000000000000002                                │

00:00:37 #5250 [Debug] > │         let v21 : float = 0.16                                               │

00:00:37 #5251 [Debug] > │         let v22 : float = 0.17                                               │

00:00:37 #5252 [Debug] > │         let v23 : float = 0.18000000000000002                                │

00:00:37 #5253 [Debug] > │         let v24 : float = 0.19                                               │

00:00:37 #5254 [Debug] > │         let v25 : float = 0.2                                                │

00:00:37 #5255 [Debug] > │         let v26 : float = 0.21000000000000002                                │

00:00:37 #5256 [Debug] > │         let v27 : float = 0.22                                               │

00:00:37 #5257 [Debug] > │         let v28 : float = 0.23                                               │

00:00:37 #5258 [Debug] > │         let v29 : float = 0.24000000000000002                                │

00:00:37 #5259 [Debug] > │         let v30 : float = 0.25                                               │

00:00:37 #5260 [Debug] > │         let v31 : float = 0.26                                               │

00:00:37 #5261 [Debug] > │         let v32 : float = 0.27                                               │

00:00:37 #5262 [Debug] > │         let v33 : float = 0.28                                               │

00:00:37 #5263 [Debug] > │         let v34 : float = 0.29000000000000004                                │

00:00:37 #5264 [Debug] > │         let v35 : float = 0.3                                                │

00:00:37 #5265 [Debug] > │         let v36 : float = 0.31                                               │

00:00:37 #5266 [Debug] > │         let v37 : float = 0.32                                               │

00:00:37 #5267 [Debug] > │         let v38 : float = 0.33                                               │

00:00:37 #5268 [Debug] > │         let v39 : float = 0.34                                               │

00:00:37 #5269 [Debug] > │         let v40 : float = 0.35000000000000003                                │

00:00:37 #5270 [Debug] > │         let v41 : float = 0.36000000000000004                                │

00:00:37 #5271 [Debug] > │         let v42 : float = 0.37                                               │

00:00:37 #5272 [Debug] > │         let v43 : float = 0.38                                               │

00:00:37 #5273 [Debug] > │         let v44 : float = 0.39                                               │

00:00:37 #5274 [Debug] > │         let v45 : float = 0.4                                                │

00:00:37 #5275 [Debug] > │         let v46 : float = 0.41000000000000003                                │

00:00:37 #5276 [Debug] > │         let v47 : float = 0.42000000000000004                                │

00:00:37 #5277 [Debug] > │         let v48 : float = 0.43                                               │

00:00:37 #5278 [Debug] > │         let v49 : float = 0.44                                               │

00:00:37 #5279 [Debug] > │         let v50 : float = 0.45                                               │

00:00:37 #5280 [Debug] > │         let v51 : float = 0.46                                               │

00:00:37 #5281 [Debug] > │         let v52 : float = 0.47000000000000003                                │

00:00:37 #5282 [Debug] > │         let v53 : float = 0.48000000000000004                                │

00:00:37 #5283 [Debug] > │         let v54 : float = 0.49                                               │

00:00:37 #5284 [Debug] > │         let v55 : float = 0.5                                                │

00:00:38 #5285 [Debug] > │         let v56 : float = 0.51                                               │

00:00:38 #5286 [Debug] > │         let v57 : float = 0.52                                               │

00:00:38 #5287 [Debug] > │         let v58 : float = 0.53                                               │

00:00:38 #5288 [Debug] > │         let v59 : float = 0.54                                               │

00:00:38 #5289 [Debug] > │         let v60 : float = 0.55                                               │

00:00:38 #5290 [Debug] > │         let v61 : float = 0.56                                               │

00:00:38 #5291 [Debug] > │         let v62 : float = 0.5700000000000001                                 │

00:00:38 #5292 [Debug] > │         let v63 : float = 0.5800000000000001                                 │

00:00:38 #5293 [Debug] > │         let v64 : float = 0.59                                               │

00:00:38 #5294 [Debug] > │         let v65 : float = 0.6                                                │

00:00:38 #5295 [Debug] > │         let v66 : float = 0.61                                               │

00:00:38 #5296 [Debug] > │         let v67 : float = 0.62                                               │

00:00:38 #5297 [Debug] > │         let v68 : float = 0.63                                               │

00:00:38 #5298 [Debug] > │         let v69 : float = 0.64                                               │

00:00:38 #5299 [Debug] > │         let v70 : float = 0.65                                               │

00:00:38 #5300 [Debug] > │         let v71 : UH0 = UH0_1                                                │

00:00:38 #5301 [Debug] > │         let v72 : UH0 = UH0_0(v70, v71)                                      │

00:00:38 #5302 [Debug] > │         let v73 : UH0 = UH0_0(v69, v72)                                      │

00:00:38 #5303 [Debug] > │         let v74 : UH0 = UH0_0(v68, v73)                                      │

00:00:38 #5304 [Debug] > │         let v75 : UH0 = UH0_0(v67, v74)                                      │

00:00:38 #5305 [Debug] > │         let v76 : UH0 = UH0_0(v66, v75)                                      │

00:00:38 #5306 [Debug] > │         let v77 : UH0 = UH0_0(v65, v76)                                      │

00:00:38 #5307 [Debug] > │         let v78 : UH0 = UH0_0(v64, v77)                                      │

00:00:38 #5308 [Debug] > │         let v79 : UH0 = UH0_0(v63, v78)                                      │

00:00:38 #5309 [Debug] > │         let v80 : UH0 = UH0_0(v62, v79)                                      │

00:00:38 #5310 [Debug] > │         let v81 : UH0 = UH0_0(v61, v80)                                      │

00:00:38 #5311 [Debug] > │         let v82 : UH0 = UH0_0(v60, v81)                                      │

00:00:38 #5312 [Debug] > │         let v83 : UH0 = UH0_0(v59, v82)                                      │

00:00:38 #5313 [Debug] > │         let v84 : UH0 = UH0_0(v58, v83)                                      │

00:00:38 #5314 [Debug] > │         let v85 : UH0 = UH0_0(v57, v84)                                      │

00:00:38 #5315 [Debug] > │         let v86 : UH0 = UH0_0(v56, v85)                                      │

00:00:38 #5316 [Debug] > │         let v87 : UH0 = UH0_0(v55, v86)                                      │

00:00:38 #5317 [Debug] > │         let v88 : UH0 = UH0_0(v54, v87)                                      │

00:00:38 #5318 [Debug] > │         let v89 : UH0 = UH0_0(v53, v88)                                      │

00:00:38 #5319 [Debug] > │         let v90 : UH0 = UH0_0(v52, v89)                                      │

00:00:38 #5320 [Debug] > │         let v91 : UH0 = UH0_0(v51, v90)                                      │

00:00:38 #5321 [Debug] > │         let v92 : UH0 = UH0_0(v50, v91)                                      │

00:00:38 #5322 [Debug] > │         let v93 : UH0 = UH0_0(v49, v92)                                      │

00:00:38 #5323 [Debug] > │         let v94 : UH0 = UH0_0(v48, v93)                                      │

00:00:38 #5324 [Debug] > │         let v95 : UH0 = UH0_0(v47, v94)                                      │

00:00:38 #5325 [Debug] > │         let v96 : UH0 = UH0_0(v46, v95)                                      │

00:00:38 #5326 [Debug] > │         let v97 : UH0 = UH0_0(v45, v96)                                      │

00:00:38 #5327 [Debug] > │         let v98 : UH0 = UH0_0(v44, v97)                                      │

00:00:38 #5328 [Debug] > │         let v99 : UH0 = UH0_0(v43, v98)                                      │

00:00:38 #5329 [Debug] > │         let v100 : UH0 = UH0_0(v42, v99)                                     │

00:00:38 #5330 [Debug] > │         let v101 : UH0 = UH0_0(v41, v100)                                    │

00:00:38 #5331 [Debug] > │         let v102 : UH0 = UH0_0(v40, v101)                                    │

00:00:38 #5332 [Debug] > │         let v103 : UH0 = UH0_0(v39, v102)                                    │

00:00:38 #5333 [Debug] > │         let v104 : UH0 = UH0_0(v38, v103)                                    │

00:00:38 #5334 [Debug] > │         let v105 : UH0 = UH0_0(v37, v104)                                    │

00:00:38 #5335 [Debug] > │         let v106 : UH0 = UH0_0(v36, v105)                                    │

00:00:38 #5336 [Debug] > │         let v107 : UH0 = UH0_0(v35, v106)                                    │

00:00:38 #5337 [Debug] > │         let v108 : UH0 = UH0_0(v34, v107)                                    │

00:00:38 #5338 [Debug] > │         let v109 : UH0 = UH0_0(v33, v108)                                    │

00:00:38 #5339 [Debug] > │         let v110 : UH0 = UH0_0(v32, v109)                                    │

00:00:38 #5340 [Debug] > │         let v111 : UH0 = UH0_0(v31, v110)                                    │

00:00:38 #5341 [Debug] > │         let v112 : UH0 = UH0_0(v30, v111)                                    │

00:00:38 #5342 [Debug] > │         let v113 : UH0 = UH0_0(v29, v112)                                    │

00:00:38 #5343 [Debug] > │         let v114 : UH0 = UH0_0(v28, v113)                                    │

00:00:38 #5344 [Debug] > │         let v115 : UH0 = UH0_0(v27, v114)                                    │

00:00:38 #5345 [Debug] > │         let v116 : UH0 = UH0_0(v26, v115)                                    │

00:00:38 #5346 [Debug] > │         let v117 : UH0 = UH0_0(v25, v116)                                    │

00:00:38 #5347 [Debug] > │         let v118 : UH0 = UH0_0(v24, v117)                                    │

00:00:38 #5348 [Debug] > │         let v119 : UH0 = UH0_0(v23, v118)                                    │

00:00:38 #5349 [Debug] > │         let v120 : UH0 = UH0_0(v22, v119)                                    │

00:00:38 #5350 [Debug] > │         let v121 : UH0 = UH0_0(v21, v120)                                    │

00:00:38 #5351 [Debug] > │         let v122 : UH0 = UH0_0(v20, v121)                                    │

00:00:38 #5352 [Debug] > │         let v123 : UH0 = UH0_0(v19, v122)                                    │

00:00:38 #5353 [Debug] > │         let v124 : UH0 = UH0_0(v18, v123)                                    │

00:00:38 #5354 [Debug] > │         let v125 : UH0 = UH0_0(v17, v124)                                    │

00:00:38 #5355 [Debug] > │         let v126 : UH0 = UH0_0(v16, v125)                                    │

00:00:38 #5356 [Debug] > │         let v127 : UH0 = UH0_0(v15, v126)                                    │

00:00:38 #5357 [Debug] > │         let v128 : UH0 = UH0_0(v14, v127)                                    │

00:00:38 #5358 [Debug] > │         let v129 : UH0 = UH0_0(v13, v128)                                    │

00:00:38 #5359 [Debug] > │         let v130 : UH0 = UH0_0(v12, v129)                                    │

00:00:38 #5360 [Debug] > │         let v131 : UH0 = UH0_0(v11, v130)                                    │

00:00:38 #5361 [Debug] > │         let v132 : UH0 = UH0_0(v10, v131)                                    │

00:00:38 #5362 [Debug] > │         let v133 : UH0 = UH0_0(v9, v132)                                     │

00:00:38 #5363 [Debug] > │         let v134 : UH0 = UH0_0(v8, v133)                                     │

00:00:38 #5364 [Debug] > │         let v135 : UH0 = UH0_0(v7, v134)                                     │

00:00:38 #5365 [Debug] > │         let v136 : UH0 = UH0_0(v6, v135)                                     │

00:00:38 #5366 [Debug] > │         let v137 : UH0 = UH0_0(v5, v136)                                     │

00:00:38 #5367 [Debug] > │         let v138 : (float []) = method2(v137)                                │

00:00:38 #5368 [Debug] > │         let v139 : float = 0.0                                               │

00:00:38 #5369 [Debug] > │         let v140 : float = 0.0007224452478461068                             │

00:00:38 #5370 [Debug] > │         let v141 : float = 0.0014297283919934465                             │

00:00:38 #5371 [Debug] > │         let v142 : float = 0.0021070055388626454                             │

00:00:38 #5372 [Debug] > │         let v143 : float = 0.00274006253677335                               │

00:00:38 #5373 [Debug] > │         let v144 : float = 0.0033156132912039757                             │

00:00:38 #5374 [Debug] > │         let v145 : float = 0.0038215786027292415                             │

00:00:38 #5375 [Debug] > │         let v146 : float = 0.004247339675607605                              │

00:00:38 #5376 [Debug] > │         let v147 : float = 0.004583960976582912                              │

00:00:38 #5377 [Debug] > │         let v148 : float = 0.004824377766717757                              │

00:00:38 #5378 [Debug] > │         let v149 : float = 0.00496354437049027                               │

00:00:38 #5379 [Debug] > │         let v150 : float = 0.004998540070400965                              │

00:00:38 #5380 [Debug] > │         let v151 : float = 0.004928630404658255                              │

00:00:38 #5381 [Debug] > │         let v152 : float = 0.004755282581475768                              │

00:00:38 #5382 [Debug] > │         let v153 : float = 0.004482134686478519                              │

00:00:38 #5383 [Debug] > │         let v154 : float = 0.0041149193294682815                             │

00:00:38 #5384 [Debug] > │         let v155 : float = 0.0036613433329888666                             │

00:00:38 #5385 [Debug] > │         let v156 : float = 0.0031309259876915697                             │

00:00:38 #5386 [Debug] > │         let v157 : float = 0.002534799269067951                              │

00:00:38 #5387 [Debug] > │         let v158 : float = 0.0018854742084416015                             │

00:00:38 #5388 [Debug] > │         let v159 : float = 0.0011965783214377905                             │

00:00:38 #5389 [Debug] > │         let v160 : float = 0.00048256960457257535                            │

00:00:38 #5390 [Debug] > │         let v161 : float = -0.00024156689762753317                           │

00:00:38 #5391 [Debug] > │         let v162 : float = -0.0009606335867685418                            │

00:00:38 #5392 [Debug] > │         let v163 : float = -0.001659539265642642                             │

00:00:38 #5393 [Debug] > │         let v164 : float = -0.002323615860218842                             │

00:00:38 #5394 [Debug] > │         let v165 : float = -0.0029389262614623636                            │

00:00:38 #5395 [Debug] > │         let v166 : float = -0.003492556826244686                             │

00:00:38 #5396 [Debug] > │         let v167 : float = -0.003972888398568771                             │

00:00:38 #5397 [Debug] > │         let v168 : float = -0.00436984016313259                              │

00:00:38 #5398 [Debug] > │         let v169 : float = -0.004675081213427074                             │

00:00:38 #5399 [Debug] > │         let v170 : float = -0.004882205394146359                             │

00:00:38 #5400 [Debug] > │         let v171 : float = -0.004986865748457456                             │

00:00:38 #5401 [Debug] > │         let v172 : float = -0.004986865748457456                             │

00:00:38 #5402 [Debug] > │         let v173 : float = -0.004882205394146361                             │

00:00:38 #5403 [Debug] > │         let v174 : float = -0.004675081213427074                             │

00:00:38 #5404 [Debug] > │         let v175 : float = -0.004369840163132589                             │

00:00:38 #5405 [Debug] > │         let v176 : float = -0.003972888398568774                             │

00:00:38 #5406 [Debug] > │         let v177 : float = -0.0034925568262446837                            │

00:00:38 #5407 [Debug] > │         let v178 : float = -0.002938926261462367                             │

00:00:38 #5408 [Debug] > │         let v179 : float = -0.002323615860218846                             │

00:00:38 #5409 [Debug] > │         let v180 : float = -0.0016595392656426435                            │

00:00:38 #5410 [Debug] > │         let v181 : float = -0.0009606335867685414                            │

00:00:38 #5411 [Debug] > │         let v182 : float = -0.00024156689762753724                           │

00:00:38 #5412 [Debug] > │         let v183 : float = 0.0004825696045725713                             │

00:00:38 #5413 [Debug] > │         let v184 : float = 0.0011965783214377866                             │

00:00:38 #5414 [Debug] > │         let v185 : float = 0.0018854742084416021                             │

00:00:38 #5415 [Debug] > │         let v186 : float = 0.002534799269067953                              │

00:00:38 #5416 [Debug] > │         let v187 : float = 0.003130925987691568                              │

00:00:38 #5417 [Debug] > │         let v188 : float = 0.0036613433329888622                             │

00:00:38 #5418 [Debug] > │         let v189 : float = 0.0041149193294682815                             │

00:00:38 #5419 [Debug] > │         let v190 : float = 0.0044821346864785195                             │

00:00:38 #5420 [Debug] > │         let v191 : float = 0.004755282581475766                              │

00:00:38 #5421 [Debug] > │         let v192 : float = 0.004928630404658255                              │

00:00:38 #5422 [Debug] > │         let v193 : float = 0.004998540070400965                              │

00:00:38 #5423 [Debug] > │         let v194 : float = 0.004963544370490271                              │

00:00:38 #5424 [Debug] > │         let v195 : float = 0.004824377766717758                              │

00:00:38 #5425 [Debug] > │         let v196 : float = 0.004583960976582912                              │

00:00:38 #5426 [Debug] > │         let v197 : float = 0.004247339675607605                              │

00:00:38 #5427 [Debug] > │         let v198 : float = 0.003821578602729245                              │

00:00:38 #5428 [Debug] > │         let v199 : float = 0.0033156132912039783                             │

00:00:38 #5429 [Debug] > │         let v200 : float = 0.0027400625367733585                             │

00:00:38 #5430 [Debug] > │         let v201 : float = 0.0021070055388626528                             │

00:00:38 #5431 [Debug] > │         let v202 : float = 0.001429728391993452                              │

00:00:38 #5432 [Debug] > │         let v203 : float = 0.0007224452478461016                             │

00:00:38 #5433 [Debug] > │         let v204 : float = 0.0                                               │

00:00:38 #5434 [Debug] > │         let v205 : UH0 = UH0_1                                               │

00:00:38 #5435 [Debug] > │         let v206 : UH0 = UH0_0(v204, v205)                                   │

00:00:38 #5436 [Debug] > │         let v207 : UH0 = UH0_0(v203, v206)                                   │

00:00:38 #5437 [Debug] > │         let v208 : UH0 = UH0_0(v202, v207)                                   │

00:00:38 #5438 [Debug] > │         let v209 : UH0 = UH0_0(v201, v208)                                   │

00:00:38 #5439 [Debug] > │         let v210 : UH0 = UH0_0(v200, v209)                                   │

00:00:38 #5440 [Debug] > │         let v211 : UH0 = UH0_0(v199, v210)                                   │

00:00:38 #5441 [Debug] > │         let v212 : UH0 = UH0_0(v198, v211)                                   │

00:00:38 #5442 [Debug] > │         let v213 : UH0 = UH0_0(v197, v212)                                   │

00:00:38 #5443 [Debug] > │         let v214 : UH0 = UH0_0(v196, v213)                                   │

00:00:38 #5444 [Debug] > │         let v215 : UH0 = UH0_0(v195, v214)                                   │

00:00:38 #5445 [Debug] > │         let v216 : UH0 = UH0_0(v194, v215)                                   │

00:00:38 #5446 [Debug] > │         let v217 : UH0 = UH0_0(v193, v216)                                   │

00:00:38 #5447 [Debug] > │         let v218 : UH0 = UH0_0(v192, v217)                                   │

00:00:38 #5448 [Debug] > │         let v219 : UH0 = UH0_0(v191, v218)                                   │

00:00:38 #5449 [Debug] > │         let v220 : UH0 = UH0_0(v190, v219)                                   │

00:00:38 #5450 [Debug] > │         let v221 : UH0 = UH0_0(v189, v220)                                   │

00:00:38 #5451 [Debug] > │         let v222 : UH0 = UH0_0(v188, v221)                                   │

00:00:38 #5452 [Debug] > │         let v223 : UH0 = UH0_0(v187, v222)                                   │

00:00:38 #5453 [Debug] > │         let v224 : UH0 = UH0_0(v186, v223)                                   │

00:00:38 #5454 [Debug] > │         let v225 : UH0 = UH0_0(v185, v224)                                   │

00:00:38 #5455 [Debug] > │         let v226 : UH0 = UH0_0(v184, v225)                                   │

00:00:38 #5456 [Debug] > │         let v227 : UH0 = UH0_0(v183, v226)                                   │

00:00:38 #5457 [Debug] > │         let v228 : UH0 = UH0_0(v182, v227)                                   │

00:00:38 #5458 [Debug] > │         let v229 : UH0 = UH0_0(v181, v228)                                   │

00:00:38 #5459 [Debug] > │         let v230 : UH0 = UH0_0(v180, v229)                                   │

00:00:38 #5460 [Debug] > │         let v231 : UH0 = UH0_0(v179, v230)                                   │

00:00:38 #5461 [Debug] > │         let v232 : UH0 = UH0_0(v178, v231)                                   │

00:00:38 #5462 [Debug] > │         let v233 : UH0 = UH0_0(v177, v232)                                   │

00:00:38 #5463 [Debug] > │         let v234 : UH0 = UH0_0(v176, v233)                                   │

00:00:38 #5464 [Debug] > │         let v235 : UH0 = UH0_0(v175, v234)                                   │

00:00:38 #5465 [Debug] > │         let v236 : UH0 = UH0_0(v174, v235)                                   │

00:00:38 #5466 [Debug] > │         let v237 : UH0 = UH0_0(v173, v236)                                   │

00:00:38 #5467 [Debug] > │         let v238 : UH0 = UH0_0(v172, v237)                                   │

00:00:38 #5468 [Debug] > │         let v239 : UH0 = UH0_0(v171, v238)                                   │

00:00:38 #5469 [Debug] > │         let v240 : UH0 = UH0_0(v170, v239)                                   │

00:00:38 #5470 [Debug] > │         let v241 : UH0 = UH0_0(v169, v240)                                   │

00:00:38 #5471 [Debug] > │         let v242 : UH0 = UH0_0(v168, v241)                                   │

00:00:38 #5472 [Debug] > │         let v243 : UH0 = UH0_0(v167, v242)                                   │

00:00:38 #5473 [Debug] > │         let v244 : UH0 = UH0_0(v166, v243)                                   │

00:00:38 #5474 [Debug] > │         let v245 : UH0 = UH0_0(v165, v244)                                   │

00:00:38 #5475 [Debug] > │         let v246 : UH0 = UH0_0(v164, v245)                                   │

00:00:38 #5476 [Debug] > │         let v247 : UH0 = UH0_0(v163, v246)                                   │

00:00:38 #5477 [Debug] > │         let v248 : UH0 = UH0_0(v162, v247)                                   │

00:00:38 #5478 [Debug] > │         let v249 : UH0 = UH0_0(v161, v248)                                   │

00:00:38 #5479 [Debug] > │         let v250 : UH0 = UH0_0(v160, v249)                                   │

00:00:38 #5480 [Debug] > │         let v251 : UH0 = UH0_0(v159, v250)                                   │

00:00:38 #5481 [Debug] > │         let v252 : UH0 = UH0_0(v158, v251)                                   │

00:00:38 #5482 [Debug] > │         let v253 : UH0 = UH0_0(v157, v252)                                   │

00:00:38 #5483 [Debug] > │         let v254 : UH0 = UH0_0(v156, v253)                                   │

00:00:38 #5484 [Debug] > │         let v255 : UH0 = UH0_0(v155, v254)                                   │

00:00:38 #5485 [Debug] > │         let v256 : UH0 = UH0_0(v154, v255)                                   │

00:00:38 #5486 [Debug] > │         let v257 : UH0 = UH0_0(v153, v256)                                   │

00:00:38 #5487 [Debug] > │         let v258 : UH0 = UH0_0(v152, v257)                                   │

00:00:38 #5488 [Debug] > │         let v259 : UH0 = UH0_0(v151, v258)                                   │

00:00:38 #5489 [Debug] > │         let v260 : UH0 = UH0_0(v150, v259)                                   │

00:00:38 #5490 [Debug] > │         let v261 : UH0 = UH0_0(v149, v260)                                   │

00:00:38 #5491 [Debug] > │         let v262 : UH0 = UH0_0(v148, v261)                                   │

00:00:38 #5492 [Debug] > │         let v263 : UH0 = UH0_0(v147, v262)                                   │

00:00:38 #5493 [Debug] > │         let v264 : UH0 = UH0_0(v146, v263)                                   │

00:00:38 #5494 [Debug] > │         let v265 : UH0 = UH0_0(v145, v264)                                   │

00:00:38 #5495 [Debug] > │         let v266 : UH0 = UH0_0(v144, v265)                                   │

00:00:38 #5496 [Debug] > │         let v267 : UH0 = UH0_0(v143, v266)                                   │

00:00:38 #5497 [Debug] > │         let v268 : UH0 = UH0_0(v142, v267)                                   │

00:00:38 #5498 [Debug] > │         let v269 : UH0 = UH0_0(v141, v268)                                   │

00:00:38 #5499 [Debug] > │         let v270 : UH0 = UH0_0(v140, v269)                                   │

00:00:38 #5500 [Debug] > │         let v271 : UH0 = UH0_0(v139, v270)                                   │

00:00:38 #5501 [Debug] > │         let v272 : (float []) = method2(v271)                                │

00:00:38 #5502 [Debug] > │         UH1_0(v138, v272, v4)                                                │

00:00:38 #5503 [Debug] > │     | UH0_1 -> (* Nil *)                                                     │

00:00:38 #5504 [Debug] > │         v1                                                                   │

00:00:38 #5505 [Debug] > │ and method6 (v0 : UH1, v1 : int32) : int32 =                                 │

00:00:38 #5506 [Debug] > │     match v0 with                                                            │

00:00:38 #5507 [Debug] > │     | UH1_0(v2, v3, v4) -> (* Cons *)                                        │

00:00:38 #5508 [Debug] > │         let v5 : int32 = v1 + 1                                              │

00:00:38 #5509 [Debug] > │         method6(v4, v5)                                                      │

00:00:38 #5510 [Debug] > │     | UH1_1 -> (* Nil *)                                                     │

00:00:38 #5511 [Debug] > │         v1                                                                   │

00:00:38 #5512 [Debug] > │ and method7 (v0 : (struct ((float []) * (float [])) []), v1 : UH1, v2 :      │

00:00:38 #5513 [Debug] > │ int32) : int32 =                                                             │

00:00:38 #5514 [Debug] > │     match v1 with                                                            │

00:00:38 #5515 [Debug] > │     | UH1_0(v3, v4, v5) -> (* Cons *)                                        │

00:00:38 #5516 [Debug] > │         v0.[int v2] <- struct (v3, v4)                                       │

00:00:38 #5517 [Debug] > │         let v6 : int32 = v2 + 1                                              │

00:00:38 #5518 [Debug] > │         method7(v0, v5, v6)                                                  │

00:00:38 #5519 [Debug] > │     | UH1_1 -> (* Nil *)                                                     │

00:00:38 #5520 [Debug] > │         v2                                                                   │

00:00:38 #5521 [Debug] > │ and method5 (v0 : UH1) : (struct ((float []) * (float [])) []) =             │

00:00:38 #5522 [Debug] > │     let v1 : int32 = 0                                                       │

00:00:38 #5523 [Debug] > │     let v2 : int32 = method6(v0, v1)                                         │

00:00:38 #5524 [Debug] > │     let v3 : (struct ((float []) * (float [])) []) = Array.zeroCreate<struct │

00:00:38 #5525 [Debug] > │ ((float []) * (float []))> (v2)                                              │

00:00:38 #5526 [Debug] > │     let v4 : int32 = 0                                                       │

00:00:38 #5527 [Debug] > │     let v5 : int32 = method7(v3, v0, v4)                                     │

00:00:38 #5528 [Debug] > │     v3                                                                       │

00:00:38 #5529 [Debug] > │ and method0 () : struct (string * string * string * (struct (string * (float │

00:00:38 #5530 [Debug] > │ []) * (float [])) [])) =                                                     │

00:00:38 #5531 [Debug] > │     let v0 : float = 0.0                                                     │

00:00:38 #5532 [Debug] > │     let v1 : float = 1.0                                                     │

00:00:38 #5533 [Debug] > │     let v2 : float = 2.0                                                     │

00:00:38 #5534 [Debug] > │     let v3 : float = 3.0                                                     │

00:00:38 #5535 [Debug] > │     let v4 : float = 4.0                                                     │

00:00:38 #5536 [Debug] > │     let v5 : float = 5.0                                                     │

00:00:38 #5537 [Debug] > │     let v6 : float = 6.0                                                     │

00:00:38 #5538 [Debug] > │     let v7 : float = 7.0                                                     │

00:00:38 #5539 [Debug] > │     let v8 : float = 8.0                                                     │

00:00:38 #5540 [Debug] > │     let v9 : float = 9.0                                                     │

00:00:38 #5541 [Debug] > │     let v10 : UH0 = UH0_1                                                    │

00:00:38 #5542 [Debug] > │     let v11 : UH0 = UH0_0(v9, v10)                                           │

00:00:38 #5543 [Debug] > │     let v12 : UH0 = UH0_0(v8, v11)                                           │

00:00:38 #5544 [Debug] > │     let v13 : UH0 = UH0_0(v7, v12)                                           │

00:00:38 #5545 [Debug] > │     let v14 : UH0 = UH0_0(v6, v13)                                           │

00:00:38 #5546 [Debug] > │     let v15 : UH0 = UH0_0(v5, v14)                                           │

00:00:38 #5547 [Debug] > │     let v16 : UH0 = UH0_0(v4, v15)                                           │

00:00:38 #5548 [Debug] > │     let v17 : UH0 = UH0_0(v3, v16)                                           │

00:00:38 #5549 [Debug] > │     let v18 : UH0 = UH0_0(v2, v17)                                           │

00:00:38 #5550 [Debug] > │     let v19 : UH0 = UH0_0(v1, v18)                                           │

00:00:38 #5551 [Debug] > │     let v20 : UH0 = UH0_0(v0, v19)                                           │

00:00:38 #5552 [Debug] > │     let v21 : UH1 = UH1_1                                                    │

00:00:38 #5553 [Debug] > │     let v22 : UH1 = method1(v20, v21)                                        │

00:00:38 #5554 [Debug] > │     let v23 : (struct ((float []) * (float [])) []) = method5(v22)           │

00:00:38 #5555 [Debug] > │     let struct (v24 : (float []), v25 : (float [])) = v23.[int 0]            │

00:00:38 #5556 [Debug] > │     let v26 : string = $"{0}"                                                │

00:00:38 #5557 [Debug] > │     let v27 : (struct (string * (float []) * (float [])) []) = [|struct      │

00:00:38 #5558 [Debug] > │ (v26, v24, v25)|]                                                            │

00:00:38 #5559 [Debug] > │     let v28 : string = "wave"                                                │

00:00:38 #5560 [Debug] > │     let v29 : string = "position (m)"                                        │

00:00:38 #5561 [Debug] > │     let v30 : string = "displacement (m)"                                    │

00:00:38 #5562 [Debug] > │     struct (v28, v29, v30, v27)                                              │

00:00:38 #5563 [Debug] > │ method0()                                                                    │

00:00:38 #5564 [Debug] > │                                                                              │

00:00:38 #5565 [Debug] > │                                                                              │

00:00:38 #5566 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:38 #5567 [Debug] >

00:00:38 #5568 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:38 #5569 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:38 #5570 [Debug] > │ ### system kinetic energy versus time 2                                      │

00:00:38 #5571 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:38 #5572 [Debug] >

00:00:38 #5573 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:38 #5574 [Debug] > // // test

00:00:38 #5575 [Debug] >

00:00:38 #5576 [Debug] > inl central_force f (particle_state st1) (particle_state st2) =

00:00:38 #5577 [Debug] >     inl r1 = st1.pos_vec

00:00:38 #5578 [Debug] >     inl r2 = st2.pos_vec

00:00:38 #5579 [Debug] >     inl r21 = r2 ^-^ r1

00:00:38 #5580 [Debug] >     inl r21mag = magnitude r21

00:00:38 #5581 [Debug] >     f r21mag *^ r21 ^/ r21mag

00:00:38 #5582 [Debug] >

00:00:38 #5583 [Debug] > inl billiard_force k re =

00:00:38 #5584 [Debug] >     inl f r =

00:00:38 #5585 [Debug] >         if r >= re

00:00:38 #5586 [Debug] >         then 0

00:00:38 #5587 [Debug] >         else -k * (r - re)

00:00:38 #5588 [Debug] >     central_force f

00:00:38 #5589 [Debug] >

00:00:38 #5590 [Debug] > type force_vector = vec

00:00:38 #5591 [Debug] > type two_body_force = particle_state -> particle_state -> force_vector

00:00:38 #5592 [Debug] >

00:00:38 #5593 [Debug] > union force t =

00:00:38 #5594 [Debug] >     | ExternalForce : t * one_body_force

00:00:38 #5595 [Debug] >     | InternalForce : t * t * two_body_force

00:00:38 #5596 [Debug] >

00:00:38 #5597 [Debug] > nominal multi_particle_state = stream.stream particle_state

00:00:38 #5598 [Debug] >

00:00:38 #5599 [Debug] > nominal d_multi_particle_state = stream.stream d_particle_state

00:00:38 #5600 [Debug] >

00:00:38 #5601 [Debug] > inl force_on n s force =

00:00:38 #5602 [Debug] >     match force with

00:00:38 #5603 [Debug] >     | ExternalForce (n0, f_one_body) =>

00:00:38 #5604 [Debug] >         if n = n0

00:00:38 #5605 [Debug] >         then f_one_body

00:00:38 #5606 [Debug] >         else fun _ => zero_vec ()

00:00:38 #5607 [Debug] >     | InternalForce (n0, n1, f_two_body) =>

00:00:38 #5608 [Debug] >         if n = n0

00:00:38 #5609 [Debug] >         then s |> stream.try_item n1 |> optionm.map f_two_body

00:00:38 #5610 [Debug] >         elif n = n1

00:00:38 #5611 [Debug] >         then s |> stream.try_item n0 |> optionm.map f_two_body

00:00:38 #5612 [Debug] >         else None

00:00:38 #5613 [Debug] >         |> optionm'.default_value (fun _ => zero_vec ())

00:00:38 #5614 [Debug] >

00:00:38 #5615 [Debug] > inl forces_on n (multi_particle_state sts) fs =

00:00:38 #5616 [Debug] >     fs

00:00:38 #5617 [Debug] >     |> listm.map (force_on n sts)

00:00:38 #5618 [Debug] >

00:00:38 #5619 [Debug] > inl newton_second_mps fs ((multi_particle_state sts) as mpst) =

00:00:38 #5620 [Debug] >     inl deriv (n, st) =

00:00:38 #5621 [Debug] >         newton_second_ps (forces_on n mpst fs) st

00:00:38 #5622 [Debug] >     sts |> stream.indexed |> stream.map deriv |> d_multi_particle_state

00:00:38 #5623 [Debug] >

00:00:38 #5624 [Debug] > instance (+++) d_multi_particle_state =

00:00:38 #5625 [Debug] >     fun (d_multi_particle_state dsts1) (d_multi_particle_state dsts2) =>

00:00:38 #5626 [Debug] >         (dsts1, dsts2)

00:00:38 #5627 [Debug] >         ||> stream.zip_with (+++)

00:00:38 #5628 [Debug] >         |> d_multi_particle_state

00:00:38 #5629 [Debug] >

00:00:38 #5630 [Debug] > instance scale d_multi_particle_state = fun w (d_multi_particle_state dsts) =>

00:00:38 #5631 [Debug] >     dsts

00:00:38 #5632 [Debug] >     |> stream.map (scale w)

00:00:38 #5633 [Debug] >     |> d_multi_particle_state

00:00:38 #5634 [Debug] >

00:00:38 #5635 [Debug] > instance shift multi_particle_state = fun dt dsts (multi_particle_state sts) =>

00:00:38 #5636 [Debug] >     inl (d_multi_particle_state dsts) =

00:00:38 #5637 [Debug] >         real

00:00:38 #5638 [Debug] >             match dsts with

00:00:38 #5639 [Debug] >             | d_multi_particle_state _ => dsts

00:00:38 #5640 [Debug] >     (dsts, sts)

00:00:38 #5641 [Debug] >     ||> stream.zip_with (shift dt)

00:00:38 #5642 [Debug] >     |> stream.memoize

00:00:38 #5643 [Debug] >     |> fun x => x ()

00:00:38 #5644 [Debug] >     |> multi_particle_state

00:00:38 #5645 [Debug] >

00:00:38 #5646 [Debug] > inl euler_cromer_mps dt : numerical_method multi_particle_state

00:00:38 #5647 [Debug] > d_multi_particle_state =

00:00:38 #5648 [Debug] >     fun deriv ((multi_particle_state sts0) as mpst0) =>

00:00:38 #5649 [Debug] >         inl (multi_particle_state sts1) = euler dt deriv mpst0

00:00:38 #5650 [Debug] >         (sts0, sts1)

00:00:38 #5651 [Debug] >         ||> stream.zip

00:00:38 #5652 [Debug] >         |> stream.map (fun ((particle_state st0), (particle_state st1)) =>

00:00:38 #5653 [Debug] >             particle_state {

00:00:38 #5654 [Debug] >                 st1 with

00:00:38 #5655 [Debug] >                     pos_vec = st0.pos_vec ^+^ st1.velocity ^* dt

00:00:38 #5656 [Debug] >             }

00:00:38 #5657 [Debug] >         )

00:00:38 #5658 [Debug] >         |> multi_particle_state

00:00:38 #5659 [Debug] >

00:00:38 #5660 [Debug] > inl update_mps (method : numerical_method multi_particle_state

00:00:38 #5661 [Debug] > d_multi_particle_state) =

00:00:38 #5662 [Debug] >     newton_second_mps >> method

00:00:38 #5663 [Debug] >

00:00:38 #5664 [Debug] > inl states_mps (method : numerical_method multi_particle_state

00:00:38 #5665 [Debug] > d_multi_particle_state) =

00:00:38 #5666 [Debug] >     newton_second_mps

00:00:38 #5667 [Debug] >     >> method

00:00:38 #5668 [Debug] >     >> (fun x (multi_particle_state y) =>

00:00:38 #5669 [Debug] >         y

00:00:38 #5670 [Debug] >         |> stream.memoize

00:00:38 #5671 [Debug] >         |> (fun x => x ())

00:00:38 #5672 [Debug] >         |> multi_particle_state |> x

00:00:38 #5673 [Debug] >     )

00:00:38 #5674 [Debug] >     // >> stream.iterate

00:00:38 #5675 [Debug] >     >> seq.iterate'

00:00:38 #5676 [Debug] >

00:00:38 #5677 [Debug] > inl kinetic_energy (particle_state st) =

00:00:38 #5678 [Debug] >     inl m = st.mass

00:00:38 #5679 [Debug] >     inl v = magnitude st.velocity

00:00:38 #5680 [Debug] >     0.5 * m * v ** 2

00:00:38 #5681 [Debug] >

00:00:38 #5682 [Debug] > inl system_ke (multi_particle_state sts) =

00:00:38 #5683 [Debug] >     sts

00:00:38 #5684 [Debug] >     |> stream.map kinetic_energy

00:00:38 #5685 [Debug] >     |> stream.sum

00:00:38 #5686 [Debug] >

00:00:38 #5687 [Debug] > inl linear_spring_pe k re (particle_state st1) (particle_state st2) =

00:00:38 #5688 [Debug] >     inl r1 = st1.pos_vec

00:00:38 #5689 [Debug] >     inl r2 = st2.pos_vec

00:00:38 #5690 [Debug] >     inl r21 = r2 ^-^ r1

00:00:38 #5691 [Debug] >     inl r21mag = magnitude r21

00:00:38 #5692 [Debug] >     k * (r21mag - re) ** 2 / 2

00:00:38 #5693 [Debug] >

00:00:38 #5694 [Debug] > inl earth_surface_gravity_pe (particle_state st) =

00:00:38 #5695 [Debug] >     inl g = 9.80665

00:00:38 #5696 [Debug] >     inl m = st.mass

00:00:38 #5697 [Debug] >     inl z = st.pos_vec.z

00:00:38 #5698 [Debug] >     m * g * z

00:00:38 #5699 [Debug] >

00:00:38 #5700 [Debug] > inl ball_radius () = 0.03

00:00:38 #5701 [Debug] >

00:00:38 #5702 [Debug] > inl billiard_forces k =

00:00:38 #5703 [Debug] >     [[ InternalForce (0i32, 1, billiard_force k (2 * ball_radius ())) ]]

00:00:38 #5704 [Debug] >

00:00:38 #5705 [Debug] > inl billiard_initial () =

00:00:38 #5706 [Debug] >     inl ball_mass = 0.160

00:00:38 #5707 [Debug] >     inl (particle_state default_particle_state') = default_particle_state ()

00:00:38 #5708 [Debug] >     [[

00:00:38 #5709 [Debug] >         particle_state {

00:00:38 #5710 [Debug] >             default_particle_state' with

00:00:38 #5711 [Debug] >                 mass = ball_mass

00:00:38 #5712 [Debug] >                 pos_vec = zero_vec ()

00:00:38 #5713 [Debug] >                 velocity = 0.2 *^ i_hat ()

00:00:38 #5714 [Debug] >         }

00:00:38 #5715 [Debug] >         particle_state {

00:00:38 #5716 [Debug] >             default_particle_state' with

00:00:38 #5717 [Debug] >                 mass = ball_mass

00:00:38 #5718 [Debug] >                 pos_vec = i_hat () ^+^ 0.02 *^ j_hat ()

00:00:38 #5719 [Debug] >                 velocity = zero_vec ()

00:00:38 #5720 [Debug] >         }

00:00:38 #5721 [Debug] >     ]]

00:00:38 #5722 [Debug] >     |> stream.from_list

00:00:38 #5723 [Debug] >     |> multi_particle_state

00:00:38 #5724 [Debug] >

00:00:38 #5725 [Debug] > inl billiard_states ~n_method k dt =

00:00:38 #5726 [Debug] >     states_mps (n_method dt) (billiard_forces k) (billiard_initial ())

00:00:38 #5727 [Debug] >

00:00:38 #5728 [Debug] > inl billiard_states_finite n_method k dt =

00:00:38 #5729 [Debug] >     billiard_states n_method k dt

00:00:38 #5730 [Debug] >     >> Some

00:00:38 #5731 [Debug] >     |> seq.take_while_ (fun (multi_particle_state mpst) (_ : i32) =>

00:00:38 #5732 [Debug] >         match mpst |> stream.try_item 0i32 with

00:00:38 #5733 [Debug] >         | Some st =>

00:00:38 #5734 [Debug] >             st.time <= 10

00:00:38 #5735 [Debug] >         | None => false

00:00:38 #5736 [Debug] >     )

00:00:38 #5737 [Debug] >

00:00:38 #5738 [Debug] > inl momentum (particle_state st) =

00:00:38 #5739 [Debug] >     inl m = st.mass

00:00:38 #5740 [Debug] >     inl v = st.velocity

00:00:38 #5741 [Debug] >     m *^ v

00:00:38 #5742 [Debug] >

00:00:38 #5743 [Debug] > inl system_p (multi_particle_state sts) =

00:00:38 #5744 [Debug] >     sts

00:00:38 #5745 [Debug] >     |> stream.map momentum

00:00:38 #5746 [Debug] >     |> stream.fold (^+^) (zero_vec ())

00:00:38 #5747 [Debug] >

00:00:38 #5748 [Debug] > inl time_ke_ec_x, time_ke_ec_y =

00:00:38 #5749 [Debug] >     billiard_states_finite euler_cromer_mps 30 0.03

00:00:38 #5750 [Debug] >     |> listm.map (fun (multi_particle_state mpst) =>

00:00:38 #5751 [Debug] >         mpst |> stream.try_item 0i32

00:00:38 #5752 [Debug] >         |> optionm.map (fun st =>

00:00:38 #5753 [Debug] >             st.time, system_ke (multi_particle_state mpst)

00:00:38 #5754 [Debug] >         )

00:00:38 #5755 [Debug] >     )

00:00:38 #5756 [Debug] >     // |> stream.to_list

00:00:38 #5757 [Debug] >     |> listm'.choose id

00:00:38 #5758 [Debug] >     |> listm'.unzip

00:00:38 #5759 [Debug] >

00:00:38 #5760 [Debug] > inl time_ke_rk4_x, time_ke_rk4_y =

00:00:38 #5761 [Debug] >     billiard_states_finite runge_kutta_4 30 0.03

00:00:38 #5762 [Debug] >     |> listm.map (fun (multi_particle_state mpst) =>

00:00:38 #5763 [Debug] >         mpst |> stream.try_item 0i32

00:00:38 #5764 [Debug] >         |> optionm.map (fun st =>

00:00:38 #5765 [Debug] >             st.time, system_ke (multi_particle_state mpst)

00:00:38 #5766 [Debug] >         )

00:00:38 #5767 [Debug] >     )

00:00:38 #5768 [Debug] >     // |> stream.to_list

00:00:38 #5769 [Debug] >     |> listm'.choose id

00:00:38 #5770 [Debug] >     |> listm'.unzip

00:00:38 #5771 [Debug] >

00:00:38 #5772 [Debug] > inl time_ke_ec_x : a i32 _ = time_ke_ec_x |> listm.toArray

00:00:38 #5773 [Debug] > inl time_ke_ec_y : a i32 _ = time_ke_ec_y |> listm.toArray

00:00:38 #5774 [Debug] >

00:00:38 #5775 [Debug] > inl time_ke_rk4_x : a i32 _ = time_ke_rk4_x |> listm.toArray

00:00:38 #5776 [Debug] > inl time_ke_rk4_y : a i32 _ = time_ke_rk4_y |> listm.toArray

00:00:38 #5777 [Debug] >

00:00:38 #5778 [Debug] > "system kinetic energy versus time",

00:00:38 #5779 [Debug] > "time (s)",

00:00:38 #5780 [Debug] > "system kinetic energy (j)",

00:00:38 #5781 [Debug] > ;[[

00:00:38 #5782 [Debug] >     "euler-cromer", time_ke_ec_x, time_ke_ec_y

00:00:38 #5783 [Debug] >     "runge-kutta 4", time_ke_rk4_x, time_ke_rk4_y

00:00:38 #5784 [Debug] > ]]

00:00:38 #5785 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1412-0134-3429-3aa2034844da\main.spi

00:00:40 #5786 [Debug] >

00:00:40 #5787 [Debug] > ╭─[ 2.08s - return value ]─────────────────────────────────────────────────────╮

00:00:40 #5788 [Debug] > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │

00:00:40 #5789 [Debug] > │ xmlns="http://www.w3.org/2000/svg">                                          │

00:00:40 #5790 [Debug] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │

00:00:40 #5791 [Debug] > │ stroke="none"/>                                                              │

00:00:40 #5792 [Debug] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │

00:00:40 #5793 [Debug] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │

00:00:40 #5794 [Debug] > │ fill="#FFFFFF">                                                              │

00:00:40 #5795 [Debug] > │ system kinetic energy versus time                                            │

00:00:40 #5796 [Debug] > │ </text>                                                                      │

00:00:40 #5797 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │

00:00:40 #5798 [Debug] > │ y2="75"/>                                                                    │

00:00:40 #5799 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │

00:00:40 #5800 [Debug] > │ y2="75"/>                                                                    │

00:00:40 #5801 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │

00:00:40 #5802 [Debug] > │ y2="75"/>                                                                    │

00:00:40 #5803 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │

00:00:40 #5804 [Debug] > │ y2="75"/>                                                                    │

00:00:40 #5805 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1...                        │

00:00:40 #5806 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:40 #5807 [Debug] >

00:00:40 #5808 [Debug] > ╭─[ 2.09s - stdout ]───────────────────────────────────────────────────────────╮

00:00:40 #5809 [Debug] > │ type UH0 =                                                                   │

00:00:40 #5810 [Debug] > │     | UH0_0 of float * float * float * float * float * float * float * float │

00:00:40 #5811 [Debug] > │ * float * (unit -> UH0)                                                      │

00:00:40 #5812 [Debug] > │     | UH0_1                                                                  │

00:00:40 #5813 [Debug] > │ and UH1 =                                                                    │

00:00:40 #5814 [Debug] > │     | UH1_0 of float * float * float * float * float * float * float * float │

00:00:40 #5815 [Debug] > │ * float * (unit -> UH1)                                                      │

00:00:40 #5816 [Debug] > │     | UH1_1                                                                  │

00:00:40 #5817 [Debug] > │ and [<Struct>] US0 =                                                         │

00:00:40 #5818 [Debug] > │     | US0_0 of f0_0 : UH0                                                    │

00:00:40 #5819 [Debug] > │     | US0_1 of f1_0 : (unit -> UH0)                                          │

00:00:40 #5820 [Debug] > │ and Mut0 = {mutable l0 : US0}                                                │

00:00:40 #5821 [Debug] > │ and UH2 =                                                                    │

00:00:40 #5822 [Debug] > │     | UH2_0 of float * float * float * float * float * float * float * float │

00:00:40 #5823 [Debug] > │ * float * float * float * float * float * float * float * float * float *    │

00:00:40 #5824 [Debug] > │ float * (unit -> UH2)                                                        │

00:00:40 #5825 [Debug] > │     | UH2_1                                                                  │

00:00:40 #5826 [Debug] > │ and UH3 =                                                                    │

00:00:40 #5827 [Debug] > │     | UH3_0 of int32 * float * float * float * float * float * float * float │

00:00:40 #5828 [Debug] > │ * float * float * (unit -> UH3)                                              │

00:00:40 #5829 [Debug] > │     | UH3_1                                                                  │

00:00:40 #5830 [Debug] > │ and [<Struct>] US1 =                                                         │

00:00:40 #5831 [Debug] > │     | US1_0                                                                  │

00:00:40 #5832 [Debug] > │     | US1_1 of f1_0 : (struct (float * float * float * float * float * float │

00:00:40 #5833 [Debug] > │ * float * float * float) -> struct (float * float * float))                  │

00:00:40 #5834 [Debug] > │ and [<Struct>] US2 =                                                         │

00:00:40 #5835 [Debug] > │     | US2_0                                                                  │

00:00:40 #5836 [Debug] > │     | US2_1 of f1_0 : float * f1_1 : float * f1_2 : float * f1_3 : float *   │

00:00:40 #5837 [Debug] > │ f1_4 : float * f1_5 : float * f1_6 : float * f1_7 : float * f1_8 : float     │

00:00:40 #5838 [Debug] > │ and UH4 =                                                                    │

00:00:40 #5839 [Debug] > │     | UH4_0 of UH0 * UH4                                                     │

00:00:40 #5840 [Debug] > │     | UH4_1                                                                  │

00:00:40 #5841 [Debug] > │ and UH5 =                                                                    │

00:00:40 #5842 [Debug] > │     | UH5_0 of int32 * UH5                                                   │

00:00:40 #5843 [Debug] > │     | UH5_1                                                                  │

00:00:40 #5844 [Debug] > │ and [<Struct>] US3 =                                                         │

00:00:40 #5845 [Debug] > │     | US3_0                                                                  │

00:00:40 #5846 [Debug] > │     | US3_1 of f1_0 : float * f1_1 : float                                   │

00:00:40 #5847 [Debug] > │ and UH6 =                                                                    │

00:00:40 #5848 [Debug] > │     | UH6_0 of US3 * UH6                                                     │

00:00:40 #5849 [Debug] > │     | UH6_1                                                                  │

00:00:40 #5850 [Debug] > │ and UH7 =                                                                    │

00:00:40 #5851 [Debug] > │     | UH7_0 of float * (unit -> UH7)                                         │

00:00:40 #5852 [Debug] > │     | UH7_1                                                                  │

00:00:40 #5853 [Debug] > │ and UH8 =                                                                    │

00:00:40 #5854 [Debug] > │     | UH8_0 of float * float * UH8                                           │

00:00:40 #5855 [Debug] > │     | UH8_1                                                                  │

00:00:40 #5856 [Debug] > │ and UH9 =                                                                    │

00:00:40 #5857 [Debug] > │     | UH9_0 of float * UH9                                                   │

00:00:40 #5858 [Debug] > │     | UH9_1                                                                  │

00:00:40 #5859 [Debug] > │ let rec closure3 (v0 : float, v1 : (unit -> UH0), v2 : (unit -> UH1)) () :   │

00:00:40 #5860 [Debug] > │ UH0 =                                                                        │

00:00:40 #5861 [Debug] > │     let v3 : UH1 = v2 ()                                                     │

00:00:40 #5862 [Debug] > │     let v4 : UH0 = v1 ()                                                     │

00:00:40 #5863 [Debug] > │     match v3 with                                                            │

00:00:40 #5864 [Debug] > │     | UH1_0(v5, v6, v7, v8, v9, v10, v11, v12, v13, v14) -> (* StreamCons *) │

00:00:40 #5865 [Debug] > │         match v4 with                                                        │

00:00:40 #5866 [Debug] > │         | UH0_0(v15, v16, v17, v18, v19, v20, v21, v22, v23, v24) -> (*      │

00:00:40 #5867 [Debug] > │ StreamCons *)                                                                │

00:00:40 #5868 [Debug] > │             let v25 : float = v10 * v0                                       │

00:00:40 #5869 [Debug] > │             let v26 : float = v20 + v25                                      │

00:00:40 #5870 [Debug] > │             let v27 : float = v0 * v7                                        │

00:00:40 #5871 [Debug] > │             let v28 : float = v0 * v8                                        │

00:00:40 #5872 [Debug] > │             let v29 : float = v0 * v9                                        │

00:00:40 #5873 [Debug] > │             let v30 : float = v17 + v27                                      │

00:00:40 #5874 [Debug] > │             let v31 : float = v18 + v28                                      │

00:00:40 #5875 [Debug] > │             let v32 : float = v19 + v29                                      │

00:00:40 #5876 [Debug] > │             let v33 : float = v0 * v11                                       │

00:00:40 #5877 [Debug] > │             let v34 : float = v0 * v12                                       │

00:00:40 #5878 [Debug] > │             let v35 : float = v0 * v13                                       │

00:00:40 #5879 [Debug] > │             let v36 : float = v21 + v33                                      │

00:00:40 #5880 [Debug] > │             let v37 : float = v22 + v34                                      │

00:00:40 #5881 [Debug] > │             let v38 : float = v23 + v35                                      │

00:00:40 #5882 [Debug] > │             let v39 : (unit -> UH0) = closure3(v0, v24, v14)                 │

00:00:40 #5883 [Debug] > │             UH0_0(v15, v16, v30, v31, v32, v26, v36, v37, v38, v39)          │

00:00:40 #5884 [Debug] > │         | UH0_1 -> (* StreamNil *)                                           │

00:00:40 #5885 [Debug] > │             UH0_1                                                            │

00:00:40 #5886 [Debug] > │     | UH1_1 -> (* StreamNil *)                                               │

00:00:40 #5887 [Debug] > │         UH0_1                                                                │

00:00:40 #5888 [Debug] > │ and closure4 (v0 : UH0) () : UH0 =                                           │

00:00:40 #5889 [Debug] > │     v0                                                                       │

00:00:40 #5890 [Debug] > │ and closure5 (v0 : UH0, v1 : Mut0) () : UH0 =                                │

00:00:40 #5891 [Debug] > │     let v2 : US0 = v1.l0                                                     │

00:00:40 #5892 [Debug] > │     match v2 with                                                            │

00:00:40 #5893 [Debug] > │     | US0_0(v3) -> (* Computed *)                                            │

00:00:40 #5894 [Debug] > │         v3                                                                   │

00:00:40 #5895 [Debug] > │     | US0_1(v4) -> (* NotComputed *)                                         │

00:00:40 #5896 [Debug] > │         let v5 : UH0 = v4 ()                                                 │

00:00:40 #5897 [Debug] > │         let v20 : UH0 =                                                      │

00:00:40 #5898 [Debug] > │             match v5 with                                                    │

00:00:40 #5899 [Debug] > │             | UH0_0(v7, v8, v9, v10, v11, v12, v13, v14, v15, v16) -> (*     │

00:00:40 #5900 [Debug] > │ StreamCons *)                                                                │

00:00:40 #5901 [Debug] > │                 let v17 : (unit -> UH0) = method1(v0, v16)                   │

00:00:40 #5902 [Debug] > │                 UH0_0(v7, v8, v9, v10, v11, v12, v13, v14, v15, v17)         │

00:00:40 #5903 [Debug] > │             | UH0_1 -> (* StreamNil *)                                       │

00:00:40 #5904 [Debug] > │                 UH0_1                                                        │

00:00:40 #5905 [Debug] > │         let v21 : US0 = US0_0(v20)                                           │

00:00:40 #5906 [Debug] > │         v1.l0 <- v21                                                         │

00:00:40 #5907 [Debug] > │         v20                                                                  │

00:00:40 #5908 [Debug] > │ and method1 (v0 : UH0, v1 : (unit -> UH0)) : (unit -> UH0) =                 │

00:00:40 #5909 [Debug] > │     let v2 : US0 = US0_1(v1)                                                 │

00:00:40 #5910 [Debug] > │     let v3 : Mut0 = {l0 = v2} : Mut0                                         │

00:00:40 #5911 [Debug] > │     closure5(v0, v3)                                                         │

00:00:40 #5912 [Debug] > │ and closure6 (v0 : (unit -> UH0), v1 : (unit -> UH0)) () : UH2 =             │

00:00:40 #5913 [Debug] > │     let v2 : UH0 = v1 ()                                                     │

00:00:40 #5914 [Debug] > │     let v3 : UH0 = v0 ()                                                     │

00:00:40 #5915 [Debug] > │     match v2 with                                                            │

00:00:40 #5916 [Debug] > │     | UH0_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* StreamCons *)  │

00:00:40 #5917 [Debug] > │         match v3 with                                                        │

00:00:40 #5918 [Debug] > │         | UH0_0(v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) -> (*      │

00:00:40 #5919 [Debug] > │ StreamCons *)                                                                │

00:00:40 #5920 [Debug] > │             let v24 : (unit -> UH2) = closure6(v23, v13)                     │

00:00:40 #5921 [Debug] > │             UH2_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v14, v15, v16, v17, │

00:00:40 #5922 [Debug] > │ v18, v19, v20, v21, v22, v24)                                                │

00:00:40 #5923 [Debug] > │         | UH0_1 -> (* StreamNil *)                                           │

00:00:40 #5924 [Debug] > │             UH2_1                                                            │

00:00:40 #5925 [Debug] > │     | UH0_1 -> (* StreamNil *)                                               │

00:00:40 #5926 [Debug] > │         UH2_1                                                                │

00:00:40 #5927 [Debug] > │ and closure7 (v0 : UH0) () : UH0 =                                           │

00:00:40 #5928 [Debug] > │     v0                                                                       │

00:00:40 #5929 [Debug] > │ and method2 (v0 : float, v1 : UH2, v2 : UH0) : UH0 =                         │

00:00:40 #5930 [Debug] > │     match v1 with                                                            │

00:00:40 #5931 [Debug] > │     | UH2_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16,   │

00:00:40 #5932 [Debug] > │ v17, v18, v19, v20, v21) -> (* StreamCons *)                                 │

00:00:40 #5933 [Debug] > │         let v22 : UH2 = v21 ()                                               │

00:00:40 #5934 [Debug] > │         let v23 : UH0 = method2(v0, v22, v2)                                 │

00:00:40 #5935 [Debug] > │         let v24 : float = v0 * v18                                           │

00:00:40 #5936 [Debug] > │         let v25 : float = v0 * v19                                           │

00:00:40 #5937 [Debug] > │         let v26 : float = v0 * v20                                           │

00:00:40 #5938 [Debug] > │         let v27 : float = v5 + v24                                           │

00:00:40 #5939 [Debug] > │         let v28 : float = v6 + v25                                           │

00:00:40 #5940 [Debug] > │         let v29 : float = v7 + v26                                           │

00:00:40 #5941 [Debug] > │         let v30 : (unit -> UH0) = closure7(v23)                              │

00:00:40 #5942 [Debug] > │         UH0_0(v12, v13, v27, v28, v29, v17, v18, v19, v20, v30)              │

00:00:40 #5943 [Debug] > │     | UH2_1 -> (* StreamNil *)                                               │

00:00:40 #5944 [Debug] > │         v2                                                                   │

00:00:40 #5945 [Debug] > │ and closure2 (v0 : float, v1 : (UH0 -> UH1)) (v2 : UH0) : UH0 =              │

00:00:40 #5946 [Debug] > │     let v3 : UH1 = v1 v2                                                     │

00:00:40 #5947 [Debug] > │     let v45 : UH0 =                                                          │

00:00:40 #5948 [Debug] > │         match v3 with                                                        │

00:00:40 #5949 [Debug] > │         | UH1_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* StreamCons │

00:00:40 #5950 [Debug] > │ *)                                                                           │

00:00:40 #5951 [Debug] > │             match v2 with                                                    │

00:00:40 #5952 [Debug] > │             | UH0_0(v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) -> (*  │

00:00:40 #5953 [Debug] > │ StreamCons *)                                                                │

00:00:40 #5954 [Debug] > │                 let v24 : float = v9 * v0                                    │

00:00:40 #5955 [Debug] > │                 let v25 : float = v19 + v24                                  │

00:00:40 #5956 [Debug] > │                 let v26 : float = v0 * v6                                    │

00:00:40 #5957 [Debug] > │                 let v27 : float = v0 * v7                                    │

00:00:40 #5958 [Debug] > │                 let v28 : float = v0 * v8                                    │

00:00:40 #5959 [Debug] > │                 let v29 : float = v16 + v26                                  │

00:00:40 #5960 [Debug] > │                 let v30 : float = v17 + v27                                  │

00:00:40 #5961 [Debug] > │                 let v31 : float = v18 + v28                                  │

00:00:40 #5962 [Debug] > │                 let v32 : float = v0 * v10                                   │

00:00:40 #5963 [Debug] > │                 let v33 : float = v0 * v11                                   │

00:00:40 #5964 [Debug] > │                 let v34 : float = v0 * v12                                   │

00:00:40 #5965 [Debug] > │                 let v35 : float = v20 + v32                                  │

00:00:40 #5966 [Debug] > │                 let v36 : float = v21 + v33                                  │

00:00:40 #5967 [Debug] > │                 let v37 : float = v22 + v34                                  │

00:00:40 #5968 [Debug] > │                 let v38 : (unit -> UH0) = closure3(v0, v23, v13)             │

00:00:40 #5969 [Debug] > │                 UH0_0(v14, v15, v29, v30, v31, v25, v35, v36, v37, v38)      │

00:00:40 #5970 [Debug] > │             | UH0_1 -> (* StreamNil *)                                       │

00:00:40 #5971 [Debug] > │                 UH0_1                                                        │

00:00:40 #5972 [Debug] > │         | UH1_1 -> (* StreamNil *)                                           │

00:00:40 #5973 [Debug] > │             UH0_1                                                            │

00:00:40 #5974 [Debug] > │     let v46 : (unit -> UH0) = closure4(v45)                                  │

00:00:40 #5975 [Debug] > │     let v47 : (unit -> UH0) = method1(v45, v46)                              │

00:00:40 #5976 [Debug] > │     let v48 : UH0 = v47 ()                                                   │

00:00:40 #5977 [Debug] > │     let v76 : UH2 =                                                          │

00:00:40 #5978 [Debug] > │         match v2 with                                                        │

00:00:40 #5979 [Debug] > │         | UH0_0(v49, v50, v51, v52, v53, v54, v55, v56, v57, v58) -> (*      │

00:00:40 #5980 [Debug] > │ StreamCons *)                                                                │

00:00:40 #5981 [Debug] > │             match v48 with                                                   │

00:00:40 #5982 [Debug] > │             | UH0_0(v59, v60, v61, v62, v63, v64, v65, v66, v67, v68) -> (*  │

00:00:40 #5983 [Debug] > │ StreamCons *)                                                                │

00:00:40 #5984 [Debug] > │                 let v69 : (unit -> UH2) = closure6(v68, v58)                 │

00:00:40 #5985 [Debug] > │                 UH2_0(v49, v50, v51, v52, v53, v54, v55, v56, v57, v59, v60, │

00:00:40 #5986 [Debug] > │ v61, v62, v63, v64, v65, v66, v67, v69)                                      │

00:00:40 #5987 [Debug] > │             | UH0_1 -> (* StreamNil *)                                       │

00:00:40 #5988 [Debug] > │                 UH2_1                                                        │

00:00:40 #5989 [Debug] > │         | UH0_1 -> (* StreamNil *)                                           │

00:00:40 #5990 [Debug] > │             UH2_1                                                            │

00:00:40 #5991 [Debug] > │     let v77 : UH0 = UH0_1                                                    │

00:00:40 #5992 [Debug] > │     let v78 : UH0 = method2(v0, v76, v77)                                    │

00:00:40 #5993 [Debug] > │     v78                                                                      │

00:00:40 #5994 [Debug] > │ and closure1 (v0 : float) (v1 : (UH0 -> UH1)) : (UH0 -> UH0) =               │

00:00:40 #5995 [Debug] > │     closure2(v0, v1)                                                         │

00:00:40 #5996 [Debug] > │ and closure0 () (v0 : float) : ((UH0 -> UH1) -> (UH0 -> UH0)) =              │

00:00:40 #5997 [Debug] > │     closure1(v0)                                                             │

00:00:40 #5998 [Debug] > │ and closure9 (v0 : UH3) () : UH3 =                                           │

00:00:40 #5999 [Debug] > │     v0                                                                       │

00:00:40 #6000 [Debug] > │ and method3 (v0 : UH0, v1 : UH3, v2 : int32) : struct (UH3 * int32) =        │

00:00:40 #6001 [Debug] > │     match v0 with                                                            │

00:00:40 #6002 [Debug] > │     | UH0_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* StreamCons *)   │

00:00:40 #6003 [Debug] > │         let v13 : int32 = v2 + 1                                             │

00:00:40 #6004 [Debug] > │         let v14 : UH0 = v12 ()                                               │

00:00:40 #6005 [Debug] > │         let v15 : (unit -> UH3) = closure9(v1)                               │

00:00:40 #6006 [Debug] > │         let v16 : UH3 = UH3_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v15) │

00:00:40 #6007 [Debug] > │         method3(v14, v16, v13)                                               │

00:00:40 #6008 [Debug] > │     | UH0_1 -> (* StreamNil *)                                               │

00:00:40 #6009 [Debug] > │         struct (v1, v2)                                                      │

00:00:40 #6010 [Debug] > │ and closure10 (v0 : UH3) () : UH3 =                                          │

00:00:40 #6011 [Debug] > │     v0                                                                       │

00:00:40 #6012 [Debug] > │ and method4 (v0 : UH3, v1 : UH3) : UH3 =                                     │

00:00:40 #6013 [Debug] > │     match v0 with                                                            │

00:00:40 #6014 [Debug] > │     | UH3_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* StreamCons  │

00:00:40 #6015 [Debug] > │ *)                                                                           │

00:00:40 #6016 [Debug] > │         let v13 : UH3 = v12 ()                                               │

00:00:40 #6017 [Debug] > │         let v14 : (unit -> UH3) = closure10(v1)                              │

00:00:40 #6018 [Debug] > │         let v15 : UH3 = UH3_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v14) │

00:00:40 #6019 [Debug] > │         method4(v13, v15)                                                    │

00:00:40 #6020 [Debug] > │     | UH3_1 -> (* StreamNil *)                                               │

00:00:40 #6021 [Debug] > │         v1                                                                   │

00:00:40 #6022 [Debug] > │ and method6 (v0 : int32, v1 : UH0) : US2 =                                   │

00:00:40 #6023 [Debug] > │     match v1 with                                                            │

00:00:40 #6024 [Debug] > │     | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* StreamCons *)    │

00:00:40 #6025 [Debug] > │         let v12 : bool = v0 <= 0                                             │

00:00:40 #6026 [Debug] > │         if v12 then                                                          │

00:00:40 #6027 [Debug] > │             US2_1(v2, v3, v4, v5, v6, v7, v8, v9, v10)                       │

00:00:40 #6028 [Debug] > │         else                                                                 │

00:00:40 #6029 [Debug] > │             let v14 : int32 = v0 - 1                                         │

00:00:40 #6030 [Debug] > │             let v15 : UH0 = v11 ()                                           │

00:00:40 #6031 [Debug] > │             method6(v14, v15)                                                │

00:00:40 #6032 [Debug] > │     | UH0_1 -> (* StreamNil *)                                               │

00:00:40 #6033 [Debug] > │         US2_0                                                                │

00:00:40 #6034 [Debug] > │ and closure11 (v0 : float, v1 : float, v2 : float, v3 : float, v4 : float,   │

00:00:40 #6035 [Debug] > │ v5 : float, v6 : float, v7 : float, v8 : float) struct (v9 : float, v10 :    │

00:00:40 #6036 [Debug] > │ float, v11 : float, v12 : float, v13 : float, v14 : float, v15 : float, v16  │

00:00:40 #6037 [Debug] > │ : float, v17 : float) : struct (float * float * float) =                     │

00:00:40 #6038 [Debug] > │     let v18 : float = -1.0 * v2                                              │

00:00:40 #6039 [Debug] > │     let v19 : float = -1.0 * v3                                              │

00:00:40 #6040 [Debug] > │     let v20 : float = -1.0 * v4                                              │

00:00:40 #6041 [Debug] > │     let v21 : float = v11 + v18                                              │

00:00:40 #6042 [Debug] > │     let v22 : float = v12 + v19                                              │

00:00:40 #6043 [Debug] > │     let v23 : float = v13 + v20                                              │

00:00:40 #6044 [Debug] > │     let v24 : float = v21 * v21                                              │

00:00:40 #6045 [Debug] > │     let v25 : float = v22 * v22                                              │

00:00:40 #6046 [Debug] > │     let v26 : float = v24 + v25                                              │

00:00:40 #6047 [Debug] > │     let v27 : float = v23 * v23                                              │

00:00:40 #6048 [Debug] > │     let v28 : float = v26 + v27                                              │

00:00:40 #6049 [Debug] > │     let v29 : float = sqrt v28                                               │

00:00:40 #6050 [Debug] > │     let v30 : bool = v29 >= 0.06                                             │

00:00:40 #6051 [Debug] > │     let v33 : float =                                                        │

00:00:40 #6052 [Debug] > │         if v30 then                                                          │

00:00:40 #6053 [Debug] > │             0.0                                                              │

00:00:40 #6054 [Debug] > │         else                                                                 │

00:00:40 #6055 [Debug] > │             let v31 : float = v29 - 0.06                                     │

00:00:40 #6056 [Debug] > │             let v32 : float = -30.0 * v31                                    │

00:00:40 #6057 [Debug] > │             v32                                                              │

00:00:40 #6058 [Debug] > │     let v34 : float = v33 * v21                                              │

00:00:40 #6059 [Debug] > │     let v35 : float = v33 * v22                                              │

00:00:40 #6060 [Debug] > │     let v36 : float = v33 * v23                                              │

00:00:40 #6061 [Debug] > │     let v37 : float = v34 / v29                                              │

00:00:40 #6062 [Debug] > │     let v38 : float = v35 / v29                                              │

00:00:40 #6063 [Debug] > │     let v39 : float = v36 / v29                                              │

00:00:40 #6064 [Debug] > │     struct (v37, v38, v39)                                                   │

00:00:40 #6065 [Debug] > │ and closure12 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4  │

00:00:40 #6066 [Debug] > │ : float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float *   │

00:00:40 #6067 [Debug] > │ float * float) =                                                             │

00:00:40 #6068 [Debug] > │     struct (0.0, 0.0, 0.0)                                                   │

00:00:40 #6069 [Debug] > │ and closure13 (v0 : UH1) () : UH1 =                                          │

00:00:40 #6070 [Debug] > │     v0                                                                       │

00:00:40 #6071 [Debug] > │ and method5 (v0 : UH0, v1 : UH3, v2 : UH1) : UH1 =                           │

00:00:40 #6072 [Debug] > │     match v1 with                                                            │

00:00:40 #6073 [Debug] > │     | UH3_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* StreamCons │

00:00:40 #6074 [Debug] > │ *)                                                                           │

00:00:40 #6075 [Debug] > │         let v14 : UH3 = v13 ()                                               │

00:00:40 #6076 [Debug] > │         let v15 : UH1 = method5(v0, v14, v2)                                 │

00:00:40 #6077 [Debug] > │         let v16 : bool = v3 = 0                                              │

00:00:40 #6078 [Debug] > │         let v52 : US1 =                                                      │

00:00:40 #6079 [Debug] > │             if v16 then                                                      │

00:00:40 #6080 [Debug] > │                 let v17 : int32 = 1                                          │

00:00:40 #6081 [Debug] > │                 let v18 : US2 = method6(v17, v0)                             │

00:00:40 #6082 [Debug] > │                 match v18 with                                               │

00:00:40 #6083 [Debug] > │                 | US2_0 -> (* None *)                                        │

00:00:40 #6084 [Debug] > │                     US1_0                                                    │

00:00:40 #6085 [Debug] > │                 | US2_1(v19, v20, v21, v22, v23, v24, v25, v26, v27) -> (*   │

00:00:40 #6086 [Debug] > │ Some *)                                                                      │

00:00:40 #6087 [Debug] > │                     let v28 : (struct (float * float * float * float * float │

00:00:40 #6088 [Debug] > │ * float * float * float * float) -> struct (float * float * float)) =        │

00:00:40 #6089 [Debug] > │ closure11(v19, v20, v21, v22, v23, v24, v25, v26, v27)                       │

00:00:40 #6090 [Debug] > │                     US1_1(v28)                                               │

00:00:40 #6091 [Debug] > │             else                                                             │

00:00:40 #6092 [Debug] > │                 let v33 : bool = v3 = 1                                      │

00:00:40 #6093 [Debug] > │                 if v33 then                                                  │

00:00:40 #6094 [Debug] > │                     let v34 : int32 = 0                                      │

00:00:40 #6095 [Debug] > │                     let v35 : US2 = method6(v34, v0)                         │

00:00:40 #6096 [Debug] > │                     match v35 with                                           │

00:00:40 #6097 [Debug] > │                     | US2_0 -> (* None *)                                    │

00:00:40 #6098 [Debug] > │                         US1_0                                                │

00:00:40 #6099 [Debug] > │                     | US2_1(v36, v37, v38, v39, v40, v41, v42, v43, v44) ->  │

00:00:40 #6100 [Debug] > │ (* Some *)                                                                   │

00:00:40 #6101 [Debug] > │                         let v45 : (struct (float * float * float * float *   │

00:00:40 #6102 [Debug] > │ float * float * float * float * float) -> struct (float * float * float)) =  │

00:00:40 #6103 [Debug] > │ closure11(v36, v37, v38, v39, v40, v41, v42, v43, v44)                       │

00:00:40 #6104 [Debug] > │                         US1_1(v45)                                           │

00:00:40 #6105 [Debug] > │                 else                                                         │

00:00:40 #6106 [Debug] > │                     US1_0                                                    │

00:00:40 #6107 [Debug] > │         let v56 : (struct (float * float * float * float * float * float *   │

00:00:40 #6108 [Debug] > │ float * float * float) -> struct (float * float * float)) =                  │

00:00:40 #6109 [Debug] > │             match v52 with                                                   │

00:00:40 #6110 [Debug] > │             | US1_0 -> (* None *)                                            │

00:00:40 #6111 [Debug] > │                 closure12()                                                  │

00:00:40 #6112 [Debug] > │             | US1_1(v53) -> (* Some *)                                       │

00:00:40 #6113 [Debug] > │                 v53                                                          │

00:00:40 #6114 [Debug] > │         let struct (v57 : float, v58 : float, v59 : float) = v56 struct (v4, │

00:00:40 #6115 [Debug] > │ v5, v6, v7, v8, v9, v10, v11, v12)                                           │

00:00:40 #6116 [Debug] > │         let v60 : float = v57 / v5                                           │

00:00:40 #6117 [Debug] > │         let v61 : float = v58 / v5                                           │

00:00:40 #6118 [Debug] > │         let v62 : float = v59 / v5                                           │

00:00:40 #6119 [Debug] > │         let v63 : (unit -> UH1) = closure13(v15)                             │

00:00:40 #6120 [Debug] > │         UH1_0(0.0, 0.0, v10, v11, v12, 1.0, v60, v61, v62, v63)              │

00:00:40 #6121 [Debug] > │     | UH3_1 -> (* StreamNil *)                                               │

00:00:40 #6122 [Debug] > │         v2                                                                   │

00:00:40 #6123 [Debug] > │ and closure8 () (v0 : UH0) : UH1 =                                           │

00:00:40 #6124 [Debug] > │     let v1 : UH3 = UH3_1                                                     │

00:00:40 #6125 [Debug] > │     let v2 : int32 = 0                                                       │

00:00:40 #6126 [Debug] > │     let struct (v3 : UH3, v4 : int32) = method3(v0, v1, v2)                  │

00:00:40 #6127 [Debug] > │     let v5 : UH3 = UH3_1                                                     │

00:00:40 #6128 [Debug] > │     let v6 : UH3 = method4(v3, v5)                                           │

00:00:40 #6129 [Debug] > │     let v7 : UH1 = UH1_1                                                     │

00:00:40 #6130 [Debug] > │     let v8 : UH1 = method5(v0, v6, v7)                                       │

00:00:40 #6131 [Debug] > │     v8                                                                       │

00:00:40 #6132 [Debug] > │ and method8 (v0 : int32, v1 : int32) : UH5 =                                 │

00:00:40 #6133 [Debug] > │     let v2 : bool = v1 < v0                                                  │

00:00:40 #6134 [Debug] > │     if v2 then                                                               │

00:00:40 #6135 [Debug] > │         let v3 : int32 = v1 + 1                                              │

00:00:40 #6136 [Debug] > │         let v4 : UH5 = method8(v0, v3)                                       │

00:00:40 #6137 [Debug] > │         UH5_0(v1, v4)                                                        │

00:00:40 #6138 [Debug] > │     else                                                                     │

00:00:40 #6139 [Debug] > │         UH5_1                                                                │

00:00:40 #6140 [Debug] > │ and closure15 () () : UH0 =                                                  │

00:00:40 #6141 [Debug] > │     UH0_1                                                                    │

00:00:40 #6142 [Debug] > │ and closure14 () () : UH0 =                                                  │

00:00:40 #6143 [Debug] > │     let v0 : (unit -> UH0) = closure15()                                     │

00:00:40 #6144 [Debug] > │     UH0_0(0.0, 0.16, 1.0, 0.02, 0.0, 0.0, 0.0, 0.0, 0.0, v0)                 │

00:00:40 #6145 [Debug] > │ and method9 (v0 : (UH0 -> UH0), v1 : UH5, v2 : UH0) : UH0 =                  │

00:00:40 #6146 [Debug] > │     match v1 with                                                            │

00:00:40 #6147 [Debug] > │     | UH5_0(v3, v4) -> (* Cons *)                                            │

00:00:40 #6148 [Debug] > │         let v5 : (unit -> UH0) = closure4(v2)                                │

00:00:40 #6149 [Debug] > │         let v6 : (unit -> UH0) = method1(v2, v5)                             │

00:00:40 #6150 [Debug] > │         let v7 : UH0 = v6 ()                                                 │

00:00:40 #6151 [Debug] > │         let v8 : UH0 = v0 v7                                                 │

00:00:40 #6152 [Debug] > │         method9(v0, v4, v8)                                                  │

00:00:40 #6153 [Debug] > │     | UH5_1 -> (* Nil *)                                                     │

00:00:40 #6154 [Debug] > │         v2                                                                   │

00:00:40 #6155 [Debug] > │ and method10 (v0 : UH4, v1 : UH4) : UH4 =                                    │

00:00:40 #6156 [Debug] > │     match v0 with                                                            │

00:00:40 #6157 [Debug] > │     | UH4_0(v2, v3) -> (* Cons *)                                            │

00:00:40 #6158 [Debug] > │         let v4 : UH4 = UH4_0(v2, v1)                                         │

00:00:40 #6159 [Debug] > │         method10(v3, v4)                                                     │

00:00:40 #6160 [Debug] > │     | UH4_1 -> (* Nil *)                                                     │

00:00:40 #6161 [Debug] > │         v1                                                                   │

00:00:40 #6162 [Debug] > │ and method7 (v0 : (UH0 -> UH0), v1 : UH4, v2 : int32) : UH4 =                │

00:00:40 #6163 [Debug] > │     let v3 : int32 = 0                                                       │

00:00:40 #6164 [Debug] > │     let v4 : UH5 = method8(v2, v3)                                           │

00:00:40 #6165 [Debug] > │     let v5 : float = 0.0                                                     │

00:00:40 #6166 [Debug] > │     let v6 : float = 0.16                                                    │

00:00:40 #6167 [Debug] > │     let v7 : float = 0.0                                                     │

00:00:40 #6168 [Debug] > │     let v8 : float = 0.0                                                     │

00:00:40 #6169 [Debug] > │     let v9 : float = 0.0                                                     │

00:00:40 #6170 [Debug] > │     let v10 : float = 0.0                                                    │

00:00:40 #6171 [Debug] > │     let v11 : float = 0.2                                                    │

00:00:40 #6172 [Debug] > │     let v12 : float = 0.0                                                    │

00:00:40 #6173 [Debug] > │     let v13 : float = 0.0                                                    │

00:00:40 #6174 [Debug] > │     let v14 : (unit -> UH0) = closure14()                                    │

00:00:40 #6175 [Debug] > │     let v15 : UH0 = UH0_0(v5, v6, v7, v8, v9, v10, v11, v12, v13, v14)       │

00:00:40 #6176 [Debug] > │     let v16 : UH0 = method9(v0, v4, v15)                                     │

00:00:40 #6177 [Debug] > │     let v17 : int32 = 0                                                      │

00:00:40 #6178 [Debug] > │     let v18 : US2 = method6(v17, v16)                                        │

00:00:40 #6179 [Debug] > │     let v30 : bool =                                                         │

00:00:40 #6180 [Debug] > │         match v18 with                                                       │

00:00:40 #6181 [Debug] > │         | US2_0 -> (* None *)                                                │

00:00:40 #6182 [Debug] > │             false                                                            │

00:00:40 #6183 [Debug] > │         | US2_1(v19, v20, v21, v22, v23, v24, v25, v26, v27) -> (* Some *)   │

00:00:40 #6184 [Debug] > │             let v28 : bool = v24 <= 10.0                                     │

00:00:40 #6185 [Debug] > │             v28                                                              │

00:00:40 #6186 [Debug] > │     if v30 then                                                              │

00:00:40 #6187 [Debug] > │         let v31 : UH4 = UH4_0(v16, v1)                                       │

00:00:40 #6188 [Debug] > │         let v32 : int32 = v2 + 1                                             │

00:00:40 #6189 [Debug] > │         method7(v0, v31, v32)                                                │

00:00:40 #6190 [Debug] > │     else                                                                     │

00:00:40 #6191 [Debug] > │         let v34 : UH4 = UH4_1                                                │

00:00:40 #6192 [Debug] > │         method10(v1, v34)                                                    │

00:00:40 #6193 [Debug] > │ and closure16 (v0 : UH7) () : UH7 =                                          │

00:00:40 #6194 [Debug] > │     v0                                                                       │

00:00:40 #6195 [Debug] > │ and method12 (v0 : UH0, v1 : UH7) : UH7 =                                    │

00:00:40 #6196 [Debug] > │     match v0 with                                                            │

00:00:40 #6197 [Debug] > │     | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* StreamCons *)    │

00:00:40 #6198 [Debug] > │         let v12 : UH0 = v11 ()                                               │

00:00:40 #6199 [Debug] > │         let v13 : UH7 = method12(v12, v1)                                    │

00:00:40 #6200 [Debug] > │         let v14 : float = v8 * v8                                            │

00:00:40 #6201 [Debug] > │         let v15 : float = v9 * v9                                            │

00:00:40 #6202 [Debug] > │         let v16 : float = v14 + v15                                          │

00:00:40 #6203 [Debug] > │         let v17 : float = v10 * v10                                          │

00:00:40 #6204 [Debug] > │         let v18 : float = v16 + v17                                          │

00:00:40 #6205 [Debug] > │         let v19 : float = sqrt v18                                           │

00:00:40 #6206 [Debug] > │         let v20 : float = 0.5 * v3                                           │

00:00:40 #6207 [Debug] > │         let v21 : float = v19 ** 2.0                                         │

00:00:40 #6208 [Debug] > │         let v22 : float = v20 * v21                                          │

00:00:40 #6209 [Debug] > │         let v23 : (unit -> UH7) = closure16(v13)                             │

00:00:40 #6210 [Debug] > │         UH7_0(v22, v23)                                                      │

00:00:40 #6211 [Debug] > │     | UH0_1 -> (* StreamNil *)                                               │

00:00:40 #6212 [Debug] > │         v1                                                                   │

00:00:40 #6213 [Debug] > │ and method13 (v0 : UH7, v1 : float) : float =                                │

00:00:40 #6214 [Debug] > │     match v0 with                                                            │

00:00:40 #6215 [Debug] > │     | UH7_0(v2, v3) -> (* StreamCons *)                                      │

00:00:40 #6216 [Debug] > │         let v4 : float = v1 + v2                                             │

00:00:40 #6217 [Debug] > │         let v5 : UH7 = v3 ()                                                 │

00:00:40 #6218 [Debug] > │         method13(v5, v4)                                                     │

00:00:40 #6219 [Debug] > │     | UH7_1 -> (* StreamNil *)                                               │

00:00:40 #6220 [Debug] > │         v1                                                                   │

00:00:40 #6221 [Debug] > │ and method11 (v0 : UH4, v1 : UH6) : UH6 =                                    │

00:00:40 #6222 [Debug] > │     match v0 with                                                            │

00:00:40 #6223 [Debug] > │     | UH4_0(v2, v3) -> (* Cons *)                                            │

00:00:40 #6224 [Debug] > │         let v4 : UH6 = method11(v3, v1)                                      │

00:00:40 #6225 [Debug] > │         let v5 : int32 = 0                                                   │

00:00:40 #6226 [Debug] > │         let v6 : US2 = method6(v5, v2)                                       │

00:00:40 #6227 [Debug] > │         let v23 : US3 =                                                      │

00:00:40 #6228 [Debug] > │             match v6 with                                                    │

00:00:40 #6229 [Debug] > │             | US2_0 -> (* None *)                                            │

00:00:40 #6230 [Debug] > │                 US3_0                                                        │

00:00:40 #6231 [Debug] > │             | US2_1(v7, v8, v9, v10, v11, v12, v13, v14, v15) -> (* Some *)  │

00:00:40 #6232 [Debug] > │                 let v16 : UH7 = UH7_1                                        │

00:00:40 #6233 [Debug] > │                 let v17 : UH7 = method12(v2, v16)                            │

00:00:40 #6234 [Debug] > │                 let v18 : float = 0.0                                        │

00:00:40 #6235 [Debug] > │                 let v19 : float = method13(v17, v18)                         │

00:00:40 #6236 [Debug] > │                 US3_1(v12, v19)                                              │

00:00:40 #6237 [Debug] > │         UH6_0(v23, v4)                                                       │

00:00:40 #6238 [Debug] > │     | UH4_1 -> (* Nil *)                                                     │

00:00:40 #6239 [Debug] > │         v1                                                                   │

00:00:40 #6240 [Debug] > │ and method14 (v0 : UH6, v1 : UH8) : UH8 =                                    │

00:00:40 #6241 [Debug] > │     match v0 with                                                            │

00:00:40 #6242 [Debug] > │     | UH6_0(v2, v3) -> (* Cons *)                                            │

00:00:40 #6243 [Debug] > │         let v4 : UH8 = method14(v3, v1)                                      │

00:00:40 #6244 [Debug] > │         match v2 with                                                        │

00:00:40 #6245 [Debug] > │         | US3_0 -> (* None *)                                                │

00:00:40 #6246 [Debug] > │             v4                                                               │

00:00:40 #6247 [Debug] > │         | US3_1(v5, v6) -> (* Some *)                                        │

00:00:40 #6248 [Debug] > │             UH8_0(v5, v6, v4)                                                │

00:00:40 #6249 [Debug] > │     | UH6_1 -> (* Nil *)                                                     │

00:00:40 #6250 [Debug] > │         v1                                                                   │

00:00:40 #6251 [Debug] > │ and method15 (v0 : UH8, v1 : UH9, v2 : UH9) : struct (UH9 * UH9) =           │

00:00:40 #6252 [Debug] > │     match v0 with                                                            │

00:00:40 #6253 [Debug] > │     | UH8_0(v3, v4, v5) -> (* Cons *)                                        │

00:00:40 #6254 [Debug] > │         let v6 : UH9 = UH9_0(v3, v1)                                         │

00:00:40 #6255 [Debug] > │         let v7 : UH9 = UH9_0(v4, v2)                                         │

00:00:40 #6256 [Debug] > │         method15(v5, v6, v7)                                                 │

00:00:40 #6257 [Debug] > │     | UH8_1 -> (* Nil *)                                                     │

00:00:40 #6258 [Debug] > │         struct (v1, v2)                                                      │

00:00:40 #6259 [Debug] > │ and method16 (v0 : UH9, v1 : UH9) : UH9 =                                    │

00:00:40 #6260 [Debug] > │     match v0 with                                                            │

00:00:40 #6261 [Debug] > │     | UH9_0(v2, v3) -> (* Cons *)                                            │

00:00:40 #6262 [Debug] > │         let v4 : UH9 = UH9_0(v2, v1)                                         │

00:00:40 #6263 [Debug] > │         method16(v3, v4)                                                     │

00:00:40 #6264 [Debug] > │     | UH9_1 -> (* Nil *)                                                     │

00:00:40 #6265 [Debug] > │         v1                                                                   │

00:00:40 #6266 [Debug] > │ and closure20 (v0 : (unit -> UH1), v1 : (unit -> UH1)) () : UH1 =            │

00:00:40 #6267 [Debug] > │     let v2 : UH1 = v1 ()                                                     │

00:00:40 #6268 [Debug] > │     let v3 : UH1 = v0 ()                                                     │

00:00:40 #6269 [Debug] > │     match v2 with                                                            │

00:00:40 #6270 [Debug] > │     | UH1_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* StreamCons *)  │

00:00:40 #6271 [Debug] > │         match v3 with                                                        │

00:00:40 #6272 [Debug] > │         | UH1_0(v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) -> (*      │

00:00:40 #6273 [Debug] > │ StreamCons *)                                                                │

00:00:40 #6274 [Debug] > │             let v24 : float = v4 + v14                                       │

00:00:40 #6275 [Debug] > │             let v25 : float = v5 + v15                                       │

00:00:40 #6276 [Debug] > │             let v26 : float = v9 + v19                                       │

00:00:40 #6277 [Debug] > │             let v27 : float = v6 + v16                                       │

00:00:40 #6278 [Debug] > │             let v28 : float = v7 + v17                                       │

00:00:40 #6279 [Debug] > │             let v29 : float = v8 + v18                                       │

00:00:40 #6280 [Debug] > │             let v30 : float = v10 + v20                                      │

00:00:40 #6281 [Debug] > │             let v31 : float = v11 + v21                                      │

00:00:40 #6282 [Debug] > │             let v32 : float = v12 + v22                                      │

00:00:40 #6283 [Debug] > │             let v33 : (unit -> UH1) = closure20(v23, v13)                    │

00:00:40 #6284 [Debug] > │             UH1_0(v24, v25, v27, v28, v29, v26, v30, v31, v32, v33)          │

00:00:40 #6285 [Debug] > │         | UH1_1 -> (* StreamNil *)                                           │

00:00:40 #6286 [Debug] > │             UH1_1                                                            │

00:00:40 #6287 [Debug] > │     | UH1_1 -> (* StreamNil *)                                               │

00:00:40 #6288 [Debug] > │         UH1_1                                                                │

00:00:40 #6289 [Debug] > │ and closure19 (v0 : float, v1 : (UH0 -> UH1)) (v2 : UH0) : UH0 =             │

00:00:40 #6290 [Debug] > │     let v3 : UH1 = v1 v2                                                     │

00:00:40 #6291 [Debug] > │     let v4 : float = v0 / 2.0                                                │

00:00:40 #6292 [Debug] > │     let v46 : UH0 =                                                          │

00:00:40 #6293 [Debug] > │         match v3 with                                                        │

00:00:40 #6294 [Debug] > │         | UH1_0(v5, v6, v7, v8, v9, v10, v11, v12, v13, v14) -> (*           │

00:00:40 #6295 [Debug] > │ StreamCons *)                                                                │

00:00:40 #6296 [Debug] > │             match v2 with                                                    │

00:00:40 #6297 [Debug] > │             | UH0_0(v15, v16, v17, v18, v19, v20, v21, v22, v23, v24) -> (*  │

00:00:40 #6298 [Debug] > │ StreamCons *)                                                                │

00:00:40 #6299 [Debug] > │                 let v25 : float = v10 * v4                                   │

00:00:40 #6300 [Debug] > │                 let v26 : float = v20 + v25                                  │

00:00:40 #6301 [Debug] > │                 let v27 : float = v4 * v7                                    │

00:00:40 #6302 [Debug] > │                 let v28 : float = v4 * v8                                    │

00:00:40 #6303 [Debug] > │                 let v29 : float = v4 * v9                                    │

00:00:40 #6304 [Debug] > │                 let v30 : float = v17 + v27                                  │

00:00:40 #6305 [Debug] > │                 let v31 : float = v18 + v28                                  │

00:00:40 #6306 [Debug] > │                 let v32 : float = v19 + v29                                  │

00:00:40 #6307 [Debug] > │                 let v33 : float = v4 * v11                                   │

00:00:40 #6308 [Debug] > │                 let v34 : float = v4 * v12                                   │

00:00:40 #6309 [Debug] > │                 let v35 : float = v4 * v13                                   │

00:00:40 #6310 [Debug] > │                 let v36 : float = v21 + v33                                  │

00:00:40 #6311 [Debug] > │                 let v37 : float = v22 + v34                                  │

00:00:40 #6312 [Debug] > │                 let v38 : float = v23 + v35                                  │

00:00:40 #6313 [Debug] > │                 let v39 : (unit -> UH0) = closure3(v4, v24, v14)             │

00:00:40 #6314 [Debug] > │                 UH0_0(v15, v16, v30, v31, v32, v26, v36, v37, v38, v39)      │

00:00:40 #6315 [Debug] > │             | UH0_1 -> (* StreamNil *)                                       │

00:00:40 #6316 [Debug] > │                 UH0_1                                                        │

00:00:40 #6317 [Debug] > │         | UH1_1 -> (* StreamNil *)                                           │

00:00:40 #6318 [Debug] > │             UH0_1                                                            │

00:00:40 #6319 [Debug] > │     let v47 : (unit -> UH0) = closure4(v46)                                  │

00:00:40 #6320 [Debug] > │     let v48 : (unit -> UH0) = method1(v46, v47)                              │

00:00:40 #6321 [Debug] > │     let v49 : UH0 = v48 ()                                                   │

00:00:40 #6322 [Debug] > │     let v50 : UH1 = v1 v49                                                   │

00:00:40 #6323 [Debug] > │     let v92 : UH0 =                                                          │

00:00:40 #6324 [Debug] > │         match v50 with                                                       │

00:00:40 #6325 [Debug] > │         | UH1_0(v51, v52, v53, v54, v55, v56, v57, v58, v59, v60) -> (*      │

00:00:40 #6326 [Debug] > │ StreamCons *)                                                                │

00:00:40 #6327 [Debug] > │             match v2 with                                                    │

00:00:40 #6328 [Debug] > │             | UH0_0(v61, v62, v63, v64, v65, v66, v67, v68, v69, v70) -> (*  │

00:00:40 #6329 [Debug] > │ StreamCons *)                                                                │

00:00:40 #6330 [Debug] > │                 let v71 : float = v56 * v4                                   │

00:00:40 #6331 [Debug] > │                 let v72 : float = v66 + v71                                  │

00:00:40 #6332 [Debug] > │                 let v73 : float = v4 * v53                                   │

00:00:40 #6333 [Debug] > │                 let v74 : float = v4 * v54                                   │

00:00:40 #6334 [Debug] > │                 let v75 : float = v4 * v55                                   │

00:00:40 #6335 [Debug] > │                 let v76 : float = v63 + v73                                  │

00:00:40 #6336 [Debug] > │                 let v77 : float = v64 + v74                                  │

00:00:40 #6337 [Debug] > │                 let v78 : float = v65 + v75                                  │

00:00:40 #6338 [Debug] > │                 let v79 : float = v4 * v57                                   │

00:00:40 #6339 [Debug] > │                 let v80 : float = v4 * v58                                   │

00:00:40 #6340 [Debug] > │                 let v81 : float = v4 * v59                                   │

00:00:40 #6341 [Debug] > │                 let v82 : float = v67 + v79                                  │

00:00:40 #6342 [Debug] > │                 let v83 : float = v68 + v80                                  │

00:00:40 #6343 [Debug] > │                 let v84 : float = v69 + v81                                  │

00:00:40 #6344 [Debug] > │                 let v85 : (unit -> UH0) = closure3(v4, v70, v60)             │

00:00:40 #6345 [Debug] > │                 UH0_0(v61, v62, v76, v77, v78, v72, v82, v83, v84, v85)      │

00:00:40 #6346 [Debug] > │             | UH0_1 -> (* StreamNil *)                                       │

00:00:40 #6347 [Debug] > │                 UH0_1                                                        │

00:00:40 #6348 [Debug] > │         | UH1_1 -> (* StreamNil *)                                           │

00:00:40 #6349 [Debug] > │             UH0_1                                                            │

00:00:40 #6350 [Debug] > │     let v93 : (unit -> UH0) = closure4(v92)                                  │

00:00:40 #6351 [Debug] > │     let v94 : (unit -> UH0) = method1(v92, v93)                              │

00:00:40 #6352 [Debug] > │     let v95 : UH0 = v94 ()                                                   │

00:00:40 #6353 [Debug] > │     let v96 : UH1 = v1 v95                                                   │

00:00:40 #6354 [Debug] > │     let v138 : UH0 =                                                         │

00:00:40 #6355 [Debug] > │         match v96 with                                                       │

00:00:40 #6356 [Debug] > │         | UH1_0(v97, v98, v99, v100, v101, v102, v103, v104, v105, v106) ->  │

00:00:40 #6357 [Debug] > │ (* StreamCons *)                                                             │

00:00:40 #6358 [Debug] > │             match v2 with                                                    │

00:00:40 #6359 [Debug] > │             | UH0_0(v107, v108, v109, v110, v111, v112, v113, v114, v115,    │

00:00:40 #6360 [Debug] > │ v116) -> (* StreamCons *)                                                    │

00:00:40 #6361 [Debug] > │                 let v117 : float = v102 * v0                                 │

00:00:40 #6362 [Debug] > │                 let v118 : float = v112 + v117                               │

00:00:40 #6363 [Debug] > │                 let v119 : float = v0 * v99                                  │

00:00:40 #6364 [Debug] > │                 let v120 : float = v0 * v100                                 │

00:00:40 #6365 [Debug] > │                 let v121 : float = v0 * v101                                 │

00:00:40 #6366 [Debug] > │                 let v122 : float = v109 + v119                               │

00:00:40 #6367 [Debug] > │                 let v123 : float = v110 + v120                               │

00:00:40 #6368 [Debug] > │                 let v124 : float = v111 + v121                               │

00:00:40 #6369 [Debug] > │                 let v125 : float = v0 * v103                                 │

00:00:40 #6370 [Debug] > │                 let v126 : float = v0 * v104                                 │

00:00:40 #6371 [Debug] > │                 let v127 : float = v0 * v105                                 │

00:00:40 #6372 [Debug] > │                 let v128 : float = v113 + v125                               │

00:00:40 #6373 [Debug] > │                 let v129 : float = v114 + v126                               │

00:00:40 #6374 [Debug] > │                 let v130 : float = v115 + v127                               │

00:00:40 #6375 [Debug] > │                 let v131 : (unit -> UH0) = closure3(v0, v116, v106)          │

00:00:40 #6376 [Debug] > │                 UH0_0(v107, v108, v122, v123, v124, v118, v128, v129, v130,  │

00:00:40 #6377 [Debug] > │ v131)                                                                        │

00:00:40 #6378 [Debug] > │             | UH0_1 -> (* StreamNil *)                                       │

00:00:40 #6379 [Debug] > │                 UH0_1                                                        │

00:00:40 #6380 [Debug] > │         | UH1_1 -> (* StreamNil *)                                           │

00:00:40 #6381 [Debug] > │             UH0_1                                                            │

00:00:40 #6382 [Debug] > │     let v139 : (unit -> UH0) = closure4(v138)                                │

00:00:40 #6383 [Debug] > │     let v140 : (unit -> UH0) = method1(v138, v139)                           │

00:00:40 #6384 [Debug] > │     let v141 : UH0 = v140 ()                                                 │

00:00:40 #6385 [Debug] > │     let v142 : UH1 = v1 v141                                                 │

00:00:40 #6386 [Debug] > │     let v143 : float = v0 / 6.0                                              │

00:00:40 #6387 [Debug] > │     let v180 : UH1 =                                                         │

00:00:40 #6388 [Debug] > │         match v3 with                                                        │

00:00:40 #6389 [Debug] > │         | UH1_0(v144, v145, v146, v147, v148, v149, v150, v151, v152, v153)  │

00:00:40 #6390 [Debug] > │ -> (* StreamCons *)                                                          │

00:00:40 #6391 [Debug] > │             match v50 with                                                   │

00:00:40 #6392 [Debug] > │             | UH1_0(v154, v155, v156, v157, v158, v159, v160, v161, v162,    │

00:00:40 #6393 [Debug] > │ v163) -> (* StreamCons *)                                                    │

00:00:40 #6394 [Debug] > │                 let v164 : float = v144 + v154                               │

00:00:40 #6395 [Debug] > │                 let v165 : float = v145 + v155                               │

00:00:40 #6396 [Debug] > │                 let v166 : float = v149 + v159                               │

00:00:40 #6397 [Debug] > │                 let v167 : float = v146 + v156                               │

00:00:40 #6398 [Debug] > │                 let v168 : float = v147 + v157                               │

00:00:40 #6399 [Debug] > │                 let v169 : float = v148 + v158                               │

00:00:40 #6400 [Debug] > │                 let v170 : float = v150 + v160                               │

00:00:40 #6401 [Debug] > │                 let v171 : float = v151 + v161                               │

00:00:40 #6402 [Debug] > │                 let v172 : float = v152 + v162                               │

00:00:40 #6403 [Debug] > │                 let v173 : (unit -> UH1) = closure20(v163, v153)             │

00:00:40 #6404 [Debug] > │                 UH1_0(v164, v165, v167, v168, v169, v166, v170, v171, v172,  │

00:00:40 #6405 [Debug] > │ v173)                                                                        │

00:00:40 #6406 [Debug] > │             | UH1_1 -> (* StreamNil *)                                       │

00:00:40 #6407 [Debug] > │                 UH1_1                                                        │

00:00:40 #6408 [Debug] > │         | UH1_1 -> (* StreamNil *)                                           │

00:00:40 #6409 [Debug] > │             UH1_1                                                            │

00:00:40 #6410 [Debug] > │     let v217 : UH1 =                                                         │

00:00:40 #6411 [Debug] > │         match v180 with                                                      │

00:00:40 #6412 [Debug] > │         | UH1_0(v181, v182, v183, v184, v185, v186, v187, v188, v189, v190)  │

00:00:40 #6413 [Debug] > │ -> (* StreamCons *)                                                          │

00:00:40 #6414 [Debug] > │             match v50 with                                                   │

00:00:40 #6415 [Debug] > │             | UH1_0(v191, v192, v193, v194, v195, v196, v197, v198, v199,    │

00:00:40 #6416 [Debug] > │ v200) -> (* StreamCons *)                                                    │

00:00:40 #6417 [Debug] > │                 let v201 : float = v181 + v191                               │

00:00:40 #6418 [Debug] > │                 let v202 : float = v182 + v192                               │

00:00:40 #6419 [Debug] > │                 let v203 : float = v186 + v196                               │

00:00:40 #6420 [Debug] > │                 let v204 : float = v183 + v193                               │

00:00:40 #6421 [Debug] > │                 let v205 : float = v184 + v194                               │

00:00:40 #6422 [Debug] > │                 let v206 : float = v185 + v195                               │

00:00:40 #6423 [Debug] > │                 let v207 : float = v187 + v197                               │

00:00:40 #6424 [Debug] > │                 let v208 : float = v188 + v198                               │

00:00:40 #6425 [Debug] > │                 let v209 : float = v189 + v199                               │

00:00:40 #6426 [Debug] > │                 let v210 : (unit -> UH1) = closure20(v200, v190)             │

00:00:40 #6427 [Debug] > │                 UH1_0(v201, v202, v204, v205, v206, v203, v207, v208, v209,  │

00:00:40 #6428 [Debug] > │ v210)                                                                        │

00:00:40 #6429 [Debug] > │             | UH1_1 -> (* StreamNil *)                                       │

00:00:40 #6430 [Debug] > │                 UH1_1                                                        │

00:00:40 #6431 [Debug] > │         | UH1_1 -> (* StreamNil *)                                           │

00:00:40 #6432 [Debug] > │             UH1_1                                                            │

00:00:40 #6433 [Debug] > │     let v254 : UH1 =                                                         │

00:00:40 #6434 [Debug] > │         match v217 with                                                      │

00:00:40 #6435 [Debug] > │         | UH1_0(v218, v219, v220, v221, v222, v223, v224, v225, v226, v227)  │

00:00:40 #6436 [Debug] > │ -> (* StreamCons *)                                                          │

00:00:40 #6437 [Debug] > │             match v96 with                                                   │

00:00:40 #6438 [Debug] > │             | UH1_0(v228, v229, v230, v231, v232, v233, v234, v235, v236,    │

00:00:40 #6439 [Debug] > │ v237) -> (* StreamCons *)                                                    │

00:00:40 #6440 [Debug] > │                 let v238 : float = v218 + v228                               │

00:00:40 #6441 [Debug] > │                 let v239 : float = v219 + v229                               │

00:00:40 #6442 [Debug] > │                 let v240 : float = v223 + v233                               │

00:00:40 #6443 [Debug] > │                 let v241 : float = v220 + v230                               │

00:00:40 #6444 [Debug] > │                 let v242 : float = v221 + v231                               │

00:00:40 #6445 [Debug] > │                 let v243 : float = v222 + v232                               │

00:00:40 #6446 [Debug] > │                 let v244 : float = v224 + v234                               │

00:00:40 #6447 [Debug] > │                 let v245 : float = v225 + v235                               │

00:00:40 #6448 [Debug] > │                 let v246 : float = v226 + v236                               │

00:00:40 #6449 [Debug] > │                 let v247 : (unit -> UH1) = closure20(v237, v227)             │

00:00:40 #6450 [Debug] > │                 UH1_0(v238, v239, v241, v242, v243, v240, v244, v245, v246,  │

00:00:40 #6451 [Debug] > │ v247)                                                                        │

00:00:40 #6452 [Debug] > │             | UH1_1 -> (* StreamNil *)                                       │

00:00:40 #6453 [Debug] > │                 UH1_1                                                        │

00:00:40 #6454 [Debug] > │         | UH1_1 -> (* StreamNil *)                                           │

00:00:40 #6455 [Debug] > │             UH1_1                                                            │

00:00:40 #6456 [Debug] > │     let v291 : UH1 =                                                         │

00:00:40 #6457 [Debug] > │         match v254 with                                                      │

00:00:40 #6458 [Debug] > │         | UH1_0(v255, v256, v257, v258, v259, v260, v261, v262, v263, v264)  │

00:00:40 #6459 [Debug] > │ -> (* StreamCons *)                                                          │

00:00:40 #6460 [Debug] > │             match v96 with                                                   │

00:00:40 #6461 [Debug] > │             | UH1_0(v265, v266, v267, v268, v269, v270, v271, v272, v273,    │

00:00:40 #6462 [Debug] > │ v274) -> (* StreamCons *)                                                    │

00:00:40 #6463 [Debug] > │                 let v275 : float = v255 + v265                               │

00:00:40 #6464 [Debug] > │                 let v276 : float = v256 + v266                               │

00:00:40 #6465 [Debug] > │                 let v277 : float = v260 + v270                               │

00:00:40 #6466 [Debug] > │                 let v278 : float = v257 + v267                               │

00:00:40 #6467 [Debug] > │                 let v279 : float = v258 + v268                               │

00:00:40 #6468 [Debug] > │                 let v280 : float = v259 + v269                               │

00:00:40 #6469 [Debug] > │                 let v281 : float = v261 + v271                               │

00:00:40 #6470 [Debug] > │                 let v282 : float = v262 + v272                               │

00:00:40 #6471 [Debug] > │                 let v283 : float = v263 + v273                               │

00:00:40 #6472 [Debug] > │                 let v284 : (unit -> UH1) = closure20(v274, v264)             │

00:00:40 #6473 [Debug] > │                 UH1_0(v275, v276, v278, v279, v280, v277, v281, v282, v283,  │

00:00:40 #6474 [Debug] > │ v284)                                                                        │

00:00:40 #6475 [Debug] > │             | UH1_1 -> (* StreamNil *)                                       │

00:00:40 #6476 [Debug] > │                 UH1_1                                                        │

00:00:40 #6477 [Debug] > │         | UH1_1 -> (* StreamNil *)                                           │

00:00:40 #6478 [Debug] > │             UH1_1                                                            │

00:00:40 #6479 [Debug] > │     let v328 : UH1 =                                                         │

00:00:40 #6480 [Debug] > │         match v291 with                                                      │

00:00:40 #6481 [Debug] > │         | UH1_0(v292, v293, v294, v295, v296, v297, v298, v299, v300, v301)  │

00:00:40 #6482 [Debug] > │ -> (* StreamCons *)                                                          │

00:00:40 #6483 [Debug] > │             match v142 with                                                  │

00:00:40 #6484 [Debug] > │             | UH1_0(v302, v303, v304, v305, v306, v307, v308, v309, v310,    │

00:00:40 #6485 [Debug] > │ v311) -> (* StreamCons *)                                                    │

00:00:40 #6486 [Debug] > │                 let v312 : float = v292 + v302                               │

00:00:40 #6487 [Debug] > │                 let v313 : float = v293 + v303                               │

00:00:40 #6488 [Debug] > │                 let v314 : float = v297 + v307                               │

00:00:40 #6489 [Debug] > │                 let v315 : float = v294 + v304                               │

00:00:40 #6490 [Debug] > │                 let v316 : float = v295 + v305                               │

00:00:40 #6491 [Debug] > │                 let v317 : float = v296 + v306                               │

00:00:40 #6492 [Debug] > │                 let v318 : float = v298 + v308                               │

00:00:40 #6493 [Debug] > │                 let v319 : float = v299 + v309                               │

00:00:40 #6494 [Debug] > │                 let v320 : float = v300 + v310                               │

00:00:40 #6495 [Debug] > │                 let v321 : (unit -> UH1) = closure20(v311, v301)             │

00:00:40 #6496 [Debug] > │                 UH1_0(v312, v313, v315, v316, v317, v314, v318, v319, v320,  │

00:00:40 #6497 [Debug] > │ v321)                                                                        │

00:00:40 #6498 [Debug] > │             | UH1_1 -> (* StreamNil *)                                       │

00:00:40 #6499 [Debug] > │                 UH1_1                                                        │

00:00:40 #6500 [Debug] > │         | UH1_1 -> (* StreamNil *)                                           │

00:00:40 #6501 [Debug] > │             UH1_1                                                            │

00:00:40 #6502 [Debug] > │     let v370 : UH0 =                                                         │

00:00:40 #6503 [Debug] > │         match v328 with                                                      │

00:00:40 #6504 [Debug] > │         | UH1_0(v329, v330, v331, v332, v333, v334, v335, v336, v337, v338)  │

00:00:40 #6505 [Debug] > │ -> (* StreamCons *)                                                          │

00:00:40 #6506 [Debug] > │             match v2 with                                                    │

00:00:40 #6507 [Debug] > │             | UH0_0(v339, v340, v341, v342, v343, v344, v345, v346, v347,    │

00:00:40 #6508 [Debug] > │ v348) -> (* StreamCons *)                                                    │

00:00:40 #6509 [Debug] > │                 let v349 : float = v334 * v143                               │

00:00:40 #6510 [Debug] > │                 let v350 : float = v344 + v349                               │

00:00:40 #6511 [Debug] > │                 let v351 : float = v143 * v331                               │

00:00:40 #6512 [Debug] > │                 let v352 : float = v143 * v332                               │

00:00:40 #6513 [Debug] > │                 let v353 : float = v143 * v333                               │

00:00:40 #6514 [Debug] > │                 let v354 : float = v341 + v351                               │

00:00:40 #6515 [Debug] > │                 let v355 : float = v342 + v352                               │

00:00:40 #6516 [Debug] > │                 let v356 : float = v343 + v353                               │

00:00:40 #6517 [Debug] > │                 let v357 : float = v143 * v335                               │

00:00:40 #6518 [Debug] > │                 let v358 : float = v143 * v336                               │

00:00:40 #6519 [Debug] > │                 let v359 : float = v143 * v337                               │

00:00:40 #6520 [Debug] > │                 let v360 : float = v345 + v357                               │

00:00:40 #6521 [Debug] > │                 let v361 : float = v346 + v358                               │

00:00:40 #6522 [Debug] > │                 let v362 : float = v347 + v359                               │

00:00:40 #6523 [Debug] > │                 let v363 : (unit -> UH0) = closure3(v143, v348, v338)        │

00:00:40 #6524 [Debug] > │                 UH0_0(v339, v340, v354, v355, v356, v350, v360, v361, v362,  │

00:00:40 #6525 [Debug] > │ v363)                                                                        │

00:00:40 #6526 [Debug] > │             | UH0_1 -> (* StreamNil *)                                       │

00:00:40 #6527 [Debug] > │                 UH0_1                                                        │

00:00:40 #6528 [Debug] > │         | UH1_1 -> (* StreamNil *)                                           │

00:00:40 #6529 [Debug] > │             UH0_1                                                            │

00:00:40 #6530 [Debug] > │     let v371 : (unit -> UH0) = closure4(v370)                                │

00:00:40 #6531 [Debug] > │     let v372 : (unit -> UH0) = method1(v370, v371)                           │

00:00:40 #6532 [Debug] > │     let v373 : UH0 = v372 ()                                                 │

00:00:40 #6533 [Debug] > │     v373                                                                     │

00:00:40 #6534 [Debug] > │ and closure18 (v0 : float) (v1 : (UH0 -> UH1)) : (UH0 -> UH0) =              │

00:00:40 #6535 [Debug] > │     closure19(v0, v1)                                                        │

00:00:40 #6536 [Debug] > │ and closure17 () (v0 : float) : ((UH0 -> UH1) -> (UH0 -> UH0)) =             │

00:00:40 #6537 [Debug] > │     closure18(v0)                                                            │

00:00:40 #6538 [Debug] > │ and method17 (v0 : UH4, v1 : UH6) : UH6 =                                    │

00:00:40 #6539 [Debug] > │     match v0 with                                                            │

00:00:40 #6540 [Debug] > │     | UH4_0(v2, v3) -> (* Cons *)                                            │

00:00:40 #6541 [Debug] > │         let v4 : UH6 = method17(v3, v1)                                      │

00:00:40 #6542 [Debug] > │         let v5 : int32 = 0                                                   │

00:00:40 #6543 [Debug] > │         let v6 : US2 = method6(v5, v2)                                       │

00:00:40 #6544 [Debug] > │         let v23 : US3 =                                                      │

00:00:40 #6545 [Debug] > │             match v6 with                                                    │

00:00:40 #6546 [Debug] > │             | US2_0 -> (* None *)                                            │

00:00:40 #6547 [Debug] > │                 US3_0                                                        │

00:00:40 #6548 [Debug] > │             | US2_1(v7, v8, v9, v10, v11, v12, v13, v14, v15) -> (* Some *)  │

00:00:40 #6549 [Debug] > │                 let v16 : UH7 = UH7_1                                        │

00:00:40 #6550 [Debug] > │                 let v17 : UH7 = method12(v2, v16)                            │

00:00:40 #6551 [Debug] > │                 let v18 : float = 0.0                                        │

00:00:40 #6552 [Debug] > │                 let v19 : float = method13(v17, v18)                         │

00:00:40 #6553 [Debug] > │                 US3_1(v12, v19)                                              │

00:00:40 #6554 [Debug] > │         UH6_0(v23, v4)                                                       │

00:00:40 #6555 [Debug] > │     | UH4_1 -> (* Nil *)                                                     │

00:00:40 #6556 [Debug] > │         v1                                                                   │

00:00:40 #6557 [Debug] > │ and method19 (v0 : UH9, v1 : int32) : int32 =                                │

00:00:40 #6558 [Debug] > │     match v0 with                                                            │

00:00:40 #6559 [Debug] > │     | UH9_0(v2, v3) -> (* Cons *)                                            │

00:00:40 #6560 [Debug] > │         let v4 : int32 = v1 + 1                                              │

00:00:40 #6561 [Debug] > │         method19(v3, v4)                                                     │

00:00:40 #6562 [Debug] > │     | UH9_1 -> (* Nil *)                                                     │

00:00:40 #6563 [Debug] > │         v1                                                                   │

00:00:40 #6564 [Debug] > │ and method20 (v0 : (float []), v1 : UH9, v2 : int32) : int32 =               │

00:00:40 #6565 [Debug] > │     match v1 with                                                            │

00:00:40 #6566 [Debug] > │     | UH9_0(v3, v4) -> (* Cons *)                                            │

00:00:40 #6567 [Debug] > │         v0.[int v2] <- v3                                                    │

00:00:40 #6568 [Debug] > │         let v5 : int32 = v2 + 1                                              │

00:00:40 #6569 [Debug] > │         method20(v0, v4, v5)                                                 │

00:00:40 #6570 [Debug] > │     | UH9_1 -> (* Nil *)                                                     │

00:00:40 #6571 [Debug] > │         v2                                                                   │

00:00:40 #6572 [Debug] > │ and method18 (v0 : UH9) : (float []) =                                       │

00:00:40 #6573 [Debug] > │     let v1 : int32 = 0                                                       │

00:00:40 #6574 [Debug] > │     let v2 : int32 = method19(v0, v1)                                        │

00:00:40 #6575 [Debug] > │     let v3 : (float []) = Array.zeroCreate<float> (v2)                       │

00:00:40 #6576 [Debug] > │     let v4 : int32 = 0                                                       │

00:00:40 #6577 [Debug] > │     let v5 : int32 = method20(v3, v0, v4)                                    │

00:00:40 #6578 [Debug] > │     v3                                                                       │

00:00:40 #6579 [Debug] > │ and method0 () : struct (string * string * string * (struct (string * (float │

00:00:40 #6580 [Debug] > │ []) * (float [])) [])) =                                                     │

00:00:40 #6581 [Debug] > │     let v0 : (float -> ((UH0 -> UH1) -> (UH0 -> UH0))) = closure0()          │

00:00:40 #6582 [Debug] > │     let v1 : ((UH0 -> UH1) -> (UH0 -> UH0)) = v0 0.03                        │

00:00:40 #6583 [Debug] > │     let v2 : (UH0 -> UH1) = closure8()                                       │

00:00:40 #6584 [Debug] > │     let v3 : (UH0 -> UH0) = v1 v2                                            │

00:00:40 #6585 [Debug] > │     let v4 : UH4 = UH4_1                                                     │

00:00:40 #6586 [Debug] > │     let v5 : int32 = 0                                                       │

00:00:40 #6587 [Debug] > │     let v6 : UH4 = method7(v3, v4, v5)                                       │

00:00:40 #6588 [Debug] > │     let v7 : UH6 = UH6_1                                                     │

00:00:40 #6589 [Debug] > │     let v8 : UH6 = method11(v6, v7)                                          │

00:00:40 #6590 [Debug] > │     let v9 : UH8 = UH8_1                                                     │

00:00:40 #6591 [Debug] > │     let v10 : UH8 = method14(v8, v9)                                         │

00:00:40 #6592 [Debug] > │     let v11 : UH9 = UH9_1                                                    │

00:00:40 #6593 [Debug] > │     let v12 : UH9 = UH9_1                                                    │

00:00:40 #6594 [Debug] > │     let struct (v13 : UH9, v14 : UH9) = method15(v10, v11, v12)              │

00:00:40 #6595 [Debug] > │     let v15 : UH9 = UH9_1                                                    │

00:00:40 #6596 [Debug] > │     let v16 : UH9 = method16(v13, v15)                                       │

00:00:40 #6597 [Debug] > │     let v17 : UH9 = UH9_1                                                    │

00:00:40 #6598 [Debug] > │     let v18 : UH9 = method16(v14, v17)                                       │

00:00:40 #6599 [Debug] > │     let v19 : (float -> ((UH0 -> UH1) -> (UH0 -> UH0))) = closure17()        │

00:00:40 #6600 [Debug] > │     let v20 : ((UH0 -> UH1) -> (UH0 -> UH0)) = v19 0.03                      │

00:00:40 #6601 [Debug] > │     let v21 : (UH0 -> UH0) = v20 v2                                          │

00:00:40 #6602 [Debug] > │     let v22 : UH4 = UH4_1                                                    │

00:00:40 #6603 [Debug] > │     let v23 : int32 = 0                                                      │

00:00:40 #6604 [Debug] > │     let v24 : UH4 = method7(v21, v22, v23)                                   │

00:00:40 #6605 [Debug] > │     let v25 : UH6 = UH6_1                                                    │

00:00:40 #6606 [Debug] > │     let v26 : UH6 = method17(v24, v25)                                       │

00:00:40 #6607 [Debug] > │     let v27 : UH8 = UH8_1                                                    │

00:00:40 #6608 [Debug] > │     let v28 : UH8 = method14(v26, v27)                                       │

00:00:40 #6609 [Debug] > │     let v29 : UH9 = UH9_1                                                    │

00:00:40 #6610 [Debug] > │     let v30 : UH9 = UH9_1                                                    │

00:00:40 #6611 [Debug] > │     let struct (v31 : UH9, v32 : UH9) = method15(v28, v29, v30)              │

00:00:40 #6612 [Debug] > │     let v33 : UH9 = UH9_1                                                    │

00:00:40 #6613 [Debug] > │     let v34 : UH9 = method16(v31, v33)                                       │

00:00:40 #6614 [Debug] > │     let v35 : UH9 = UH9_1                                                    │

00:00:40 #6615 [Debug] > │     let v36 : UH9 = method16(v32, v35)                                       │

00:00:40 #6616 [Debug] > │     let v37 : (float []) = method18(v16)                                     │

00:00:40 #6617 [Debug] > │     let v38 : (float []) = method18(v18)                                     │

00:00:40 #6618 [Debug] > │     let v39 : (float []) = method18(v34)                                     │

00:00:40 #6619 [Debug] > │     let v40 : (float []) = method18(v36)                                     │

00:00:40 #6620 [Debug] > │     let v41 : string = "euler-cromer"                                        │

00:00:40 #6621 [Debug] > │     let v42 : string = "runge-kutta 4"                                       │

00:00:40 #6622 [Debug] > │     let v43 : (struct (string * (float []) * (float [])) []) = [|struct      │

00:00:40 #6623 [Debug] > │ (v41, v37, v38); struct (v42, v39, v40)|]                                    │

00:00:40 #6624 [Debug] > │     let v44 : string = "system kinetic energy versus time"                   │

00:00:40 #6625 [Debug] > │     let v45 : string = "time (s)"                                            │

00:00:40 #6626 [Debug] > │     let v46 : string = "system kinetic energy (j)"                           │

00:00:40 #6627 [Debug] > │     struct (v44, v45, v46, v43)                                              │

00:00:40 #6628 [Debug] > │ method0()                                                                    │

00:00:40 #6629 [Debug] > │                                                                              │

00:00:40 #6630 [Debug] > │                                                                              │

00:00:40 #6631 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:40 #6632 [Debug] >

00:00:40 #6633 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:40 #6634 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:40 #6635 [Debug] > │ ### wave 2                                                                   │

00:00:40 #6636 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:40 #6637 [Debug] >

00:00:40 #6638 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:40 #6639 [Debug] > // // test

00:00:40 #6640 [Debug] >

00:00:40 #6641 [Debug] > inl linear_spring k re (particle_state st1) (particle_state st2) =

00:00:40 #6642 [Debug] >     inl r1 = st1.pos_vec

00:00:40 #6643 [Debug] >     inl r2 = st2.pos_vec

00:00:40 #6644 [Debug] >     inl r21 = r2 ^-^ r1

00:00:40 #6645 [Debug] >     inl r21mag = magnitude r21

00:00:40 #6646 [Debug] >     -k * (r21mag - re) *^ r21 ^/ r21mag

00:00:40 #6647 [Debug] >

00:00:40 #6648 [Debug] > inl fixed_linear_spring k re r1 =

00:00:40 #6649 [Debug] >     inl (particle_state default_particle_state') = default_particle_state ()

00:00:40 #6650 [Debug] >     linear_spring k re (particle_state { default_particle_state' with pos_vec =

00:00:40 #6651 [Debug] > r1 })

00:00:40 #6652 [Debug] >

00:00:40 #6653 [Debug] > inl forces_string () =

00:00:40 #6654 [Debug] >     [[

00:00:40 #6655 [Debug] >         ExternalForce (0i32, fixed_linear_spring 5384 0 (zero_vec ()))

00:00:40 #6656 [Debug] >         ExternalForce (63, fixed_linear_spring 5384 0 (0.65 *^ i_hat ()))

00:00:40 #6657 [Debug] >     ]] /@ (

00:00:40 #6658 [Debug] >         listm'.init_series 0 59 1

00:00:40 #6659 [Debug] >         |> listm.map (fun n => InternalForce (n, n + 1, linear_spring 5384 0))

00:00:40 #6660 [Debug] >     )

00:00:40 #6661 [Debug] >

00:00:40 #6662 [Debug] > inl string_update dt =

00:00:40 #6663 [Debug] >     update_mps (join runge_kutta_4 dt) (join forces_string ())

00:00:40 #6664 [Debug] >

00:00:40 #6665 [Debug] > inl string_initial_overtone n =

00:00:40 #6666 [Debug] >     inl ball_mass = 0.0008293 * 0.65 / 64

00:00:40 #6667 [Debug] >     inl (particle_state default_particle_state') = default_particle_state ()

00:00:40 #6668 [Debug] >     listm'.init_series 0.01 0.64 0.01

00:00:40 #6669 [Debug] >     |> listm.map (fun x =>

00:00:40 #6670 [Debug] >         inl y = 0.005 * sin (conv n * pi * x / 0.65)

00:00:40 #6671 [Debug] >         particle_state {

00:00:40 #6672 [Debug] >             default_particle_state' with

00:00:40 #6673 [Debug] >                 mass = ball_mass

00:00:40 #6674 [Debug] >                 pos_vec = x *^ i_hat () ^+^ y *^ j_hat ()

00:00:40 #6675 [Debug] >                 velocity = zero_vec ()

00:00:40 #6676 [Debug] >         }

00:00:40 #6677 [Debug] >     )

00:00:40 #6678 [Debug] >     |> stream.from_list

00:00:40 #6679 [Debug] >     |> multi_particle_state

00:00:40 #6680 [Debug] >

00:00:40 #6681 [Debug] > let main () =

00:00:40 #6682 [Debug] >     inl ~frames = listm'.init_series 0 65 1f64 |> stream.from_list

00:00:40 #6683 [Debug] >     inl ~initial_state = string_initial_overtone 3i32

00:00:40 #6684 [Debug] >     inl frames =

00:00:40 #6685 [Debug] >         frames

00:00:40 #6686 [Debug] >         |> stream.map (fun n =>

00:00:40 #6687 [Debug] >             inl (multi_particle_state sts) =

00:00:40 #6688 [Debug] >                 stream.iterate (string_update 0.000025) initial_state |>

00:00:40 #6689 [Debug] > stream.item n

00:00:40 #6690 [Debug] >             inl x, y =

00:00:40 #6691 [Debug] >                 [[ zero_vec () ]]

00:00:40 #6692 [Debug] >                 /@ (sts |> stream.map (fun (particle_state st) => st.pos_vec) |>

00:00:40 #6693 [Debug] > stream.to_list)

00:00:40 #6694 [Debug] >                 /@ [[ 0.65 *^ i_hat () ]]

00:00:40 #6695 [Debug] >                 |> listm.map (fun r => r.x, r.y)

00:00:40 #6696 [Debug] >                 |> stream.from_list

00:00:40 #6697 [Debug] >                 |> stream.unzip

00:00:40 #6698 [Debug] >             inl x : a i32 _ = x |> stream.to_list |> listm.toArray

00:00:40 #6699 [Debug] >             inl y : a i32 _ = y |> stream.to_list |> listm.toArray

00:00:40 #6700 [Debug] >             x, y

00:00:40 #6701 [Debug] >         )

00:00:40 #6702 [Debug] >

00:00:40 #6703 [Debug] >     inl plots =

00:00:40 #6704 [Debug] >         frames

00:00:40 #6705 [Debug] >         |> stream.indexed

00:00:40 #6706 [Debug] >         |> stream.map (fun ((n : i32), (x, y)) =>

00:00:40 #6707 [Debug] >             "wave",

00:00:40 #6708 [Debug] >             "position (m)",

00:00:40 #6709 [Debug] >             "displacement (m)",

00:00:40 #6710 [Debug] >             ;[[

00:00:40 #6711 [Debug] >                 ($"$\"{!n}\"" : string), x, y

00:00:40 #6712 [Debug] >             ]]

00:00:40 #6713 [Debug] >         )

00:00:40 #6714 [Debug] >

00:00:40 #6715 [Debug] >     plots |> stream.to_list |> listm.toArray : a i32 _

00:00:40 #6716 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1412-0376-7673-7f14e68153c1\main.spi

00:00:48 #6717 [Debug] >

00:00:48 #6718 [Debug] > ╭─[ 7.68s - return value ]─────────────────────────────────────────────────────╮

00:00:48 #6719 [Debug] > │ <table><thead><tr><th><i>index</i></th><th>value</th></tr></thead><tbody><tr │

00:00:48 #6720 [Debug] > │ ><td>0</td><td><svg width="640" height="480" viewBox="0 0 640 480"           │

00:00:48 #6721 [Debug] > │ xmlns="http://www.w3.org/2000/svg">                                          │

00:00:48 #6722 [Debug] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │

00:00:48 #6723 [Debug] > │ stroke="none"/>                                                              │

00:00:48 #6724 [Debug] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │

00:00:48 #6725 [Debug] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │

00:00:48 #6726 [Debug] > │ fill="#FFFFFF">                                                              │

00:00:48 #6727 [Debug] > │ wave                                                                         │

00:00:48 #6728 [Debug] > │ </text>                                                                      │

00:00:48 #6729 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="62" y1="424" x2="62" │

00:00:48 #6730 [Debug] > │ y2="75"/>                                                                    │

00:00:48 #6731 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │

00:00:48 #6732 [Debug] > │ y2="75"/>                                                                    │

00:00:48 #6733 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="77" y1="424" x2="77" │

00:00:48 #6734 [Debug] > │ y2="75"/>                                                                    │

00:00:48 #6735 [Debug] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="85" y1="424"         │

00:00:48 #6736 [Debug] > │ x2="85...                                                                    │

00:00:48 #6737 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:48 #6738 [Debug] >

00:00:48 #6739 [Debug] > ╭─[ 7.73s - stdout ]───────────────────────────────────────────────────────────╮

00:00:48 #6740 [Debug] > │ type UH0 =                                                                   │

00:00:48 #6741 [Debug] > │     | UH0_0 of float * (unit -> UH0)                                         │

00:00:48 #6742 [Debug] > │     | UH0_1                                                                  │

00:00:48 #6743 [Debug] > │ and UH1 =                                                                    │

00:00:48 #6744 [Debug] > │     | UH1_0 of float * float * float * float * float * float * float * float │

00:00:48 #6745 [Debug] > │ * float * (unit -> UH1)                                                      │

00:00:48 #6746 [Debug] > │     | UH1_1                                                                  │

00:00:48 #6747 [Debug] > │ and UH2 =                                                                    │

00:00:48 #6748 [Debug] > │     | UH2_0 of (float []) * (float []) * (unit -> UH2)                       │

00:00:48 #6749 [Debug] > │     | UH2_1                                                                  │

00:00:48 #6750 [Debug] > │ and UH3 =                                                                    │

00:00:48 #6751 [Debug] > │     | UH3_0 of float * float * float * float * float * float * float * float │

00:00:48 #6752 [Debug] > │ * float * (unit -> UH3)                                                      │

00:00:48 #6753 [Debug] > │     | UH3_1                                                                  │

00:00:48 #6754 [Debug] > │ and [<Struct>] US0 =                                                         │

00:00:48 #6755 [Debug] > │     | US0_0 of f0_0 : UH1                                                    │

00:00:48 #6756 [Debug] > │     | US0_1 of f1_0 : (unit -> UH1)                                          │

00:00:48 #6757 [Debug] > │ and Mut0 = {mutable l0 : US0}                                                │

00:00:48 #6758 [Debug] > │ and [<Struct>] US1 =                                                         │

00:00:48 #6759 [Debug] > │     | US1_0 of f0_0 : int32 * f0_1 : (struct (float * float * float * float  │

00:00:48 #6760 [Debug] > │ * float * float * float * float * float) -> struct (float * float * float))  │

00:00:48 #6761 [Debug] > │     | US1_1 of f1_0 : int32 * f1_1 : int32 * f1_2 : (struct (float * float * │

00:00:48 #6762 [Debug] > │ float * float * float * float * float * float * float) -> (struct (float *   │

00:00:48 #6763 [Debug] > │ float * float * float * float * float * float * float * float) -> struct     │

00:00:48 #6764 [Debug] > │ (float * float * float)))                                                    │

00:00:48 #6765 [Debug] > │ and UH4 =                                                                    │

00:00:48 #6766 [Debug] > │     | UH4_0 of US1 * UH4                                                     │

00:00:48 #6767 [Debug] > │     | UH4_1                                                                  │

00:00:48 #6768 [Debug] > │ and UH5 =                                                                    │

00:00:48 #6769 [Debug] > │     | UH5_0 of int32 * float * float * float * float * float * float * float │

00:00:48 #6770 [Debug] > │ * float * float * (unit -> UH5)                                              │

00:00:48 #6771 [Debug] > │     | UH5_1                                                                  │

00:00:48 #6772 [Debug] > │ and UH6 =                                                                    │

00:00:48 #6773 [Debug] > │     | UH6_0 of (struct (float * float * float * float * float * float *      │

00:00:48 #6774 [Debug] > │ float * float * float) -> struct (float * float * float)) * UH6              │

00:00:48 #6775 [Debug] > │     | UH6_1                                                                  │

00:00:48 #6776 [Debug] > │ and [<Struct>] US2 =                                                         │

00:00:48 #6777 [Debug] > │     | US2_0                                                                  │

00:00:48 #6778 [Debug] > │     | US2_1 of f1_0 : (struct (float * float * float * float * float * float │

00:00:48 #6779 [Debug] > │ * float * float * float) -> struct (float * float * float))                  │

00:00:48 #6780 [Debug] > │ and [<Struct>] US3 =                                                         │

00:00:48 #6781 [Debug] > │     | US3_0                                                                  │

00:00:48 #6782 [Debug] > │     | US3_1 of f1_0 : float * f1_1 : float * f1_2 : float * f1_3 : float *   │

00:00:48 #6783 [Debug] > │ f1_4 : float * f1_5 : float * f1_6 : float * f1_7 : float * f1_8 : float     │

00:00:48 #6784 [Debug] > │ and UH7 =                                                                    │

00:00:48 #6785 [Debug] > │     | UH7_0 of float * float * float * UH7                                   │

00:00:48 #6786 [Debug] > │     | UH7_1                                                                  │

00:00:48 #6787 [Debug] > │ and UH8 =                                                                    │

00:00:48 #6788 [Debug] > │     | UH8_0 of UH1 * (unit -> UH8)                                           │

00:00:48 #6789 [Debug] > │     | UH8_1                                                                  │

00:00:48 #6790 [Debug] > │ and [<Struct>] US4 =                                                         │

00:00:48 #6791 [Debug] > │     | US4_0                                                                  │

00:00:48 #6792 [Debug] > │     | US4_1 of f1_0 : UH1                                                    │

00:00:48 #6793 [Debug] > │ and UH9 =                                                                    │

00:00:48 #6794 [Debug] > │     | UH9_0 of float * float * float * (unit -> UH9)                         │

00:00:48 #6795 [Debug] > │     | UH9_1                                                                  │

00:00:48 #6796 [Debug] > │ and UH10 =                                                                   │

00:00:48 #6797 [Debug] > │     | UH10_0 of float * float * UH10                                         │

00:00:48 #6798 [Debug] > │     | UH10_1                                                                 │

00:00:48 #6799 [Debug] > │ and UH11 =                                                                   │

00:00:48 #6800 [Debug] > │     | UH11_0 of float * float * (unit -> UH11)                               │

00:00:48 #6801 [Debug] > │     | UH11_1                                                                 │

00:00:48 #6802 [Debug] > │ and UH12 =                                                                   │

00:00:48 #6803 [Debug] > │     | UH12_0 of float * UH12                                                 │

00:00:48 #6804 [Debug] > │     | UH12_1                                                                 │

00:00:48 #6805 [Debug] > │ and UH13 =                                                                   │

00:00:48 #6806 [Debug] > │     | UH13_0 of int32 * (float []) * (float []) * (unit -> UH13)             │

00:00:48 #6807 [Debug] > │     | UH13_1                                                                 │

00:00:48 #6808 [Debug] > │ and UH14 =                                                                   │

00:00:48 #6809 [Debug] > │     | UH14_0 of string * string * string * (struct (string * (float []) *    │

00:00:48 #6810 [Debug] > │ (float [])) []) * (unit -> UH14)                                             │

00:00:48 #6811 [Debug] > │     | UH14_1                                                                 │

00:00:48 #6812 [Debug] > │ and UH15 =                                                                   │

00:00:48 #6813 [Debug] > │     | UH15_0 of string * string * string * (struct (string * (float []) *    │

00:00:48 #6814 [Debug] > │ (float [])) []) * UH15                                                       │

00:00:48 #6815 [Debug] > │     | UH15_1                                                                 │

00:00:48 #6816 [Debug] > │ let rec closure65 () () : UH0 =                                              │

00:00:48 #6817 [Debug] > │     UH0_1                                                                    │

00:00:48 #6818 [Debug] > │ and closure64 () () : UH0 =                                                  │

00:00:48 #6819 [Debug] > │     let v0 : (unit -> UH0) = closure65()                                     │

00:00:48 #6820 [Debug] > │     UH0_0(65.0, v0)                                                          │

00:00:48 #6821 [Debug] > │ and closure63 () () : UH0 =                                                  │

00:00:48 #6822 [Debug] > │     let v0 : (unit -> UH0) = closure64()                                     │

00:00:48 #6823 [Debug] > │     UH0_0(64.0, v0)                                                          │

00:00:48 #6824 [Debug] > │ and closure62 () () : UH0 =                                                  │

00:00:48 #6825 [Debug] > │     let v0 : (unit -> UH0) = closure63()                                     │

00:00:48 #6826 [Debug] > │     UH0_0(63.0, v0)                                                          │

00:00:48 #6827 [Debug] > │ and closure61 () () : UH0 =                                                  │

00:00:48 #6828 [Debug] > │     let v0 : (unit -> UH0) = closure62()                                     │

00:00:48 #6829 [Debug] > │     UH0_0(62.0, v0)                                                          │

00:00:48 #6830 [Debug] > │ and closure60 () () : UH0 =                                                  │

00:00:48 #6831 [Debug] > │     let v0 : (unit -> UH0) = closure61()                                     │

00:00:48 #6832 [Debug] > │     UH0_0(61.0, v0)                                                          │

00:00:48 #6833 [Debug] > │ and closure59 () () : UH0 =                                                  │

00:00:48 #6834 [Debug] > │     let v0 : (unit -> UH0) = closure60()                                     │

00:00:48 #6835 [Debug] > │     UH0_0(60.0, v0)                                                          │

00:00:48 #6836 [Debug] > │ and closure58 () () : UH0 =                                                  │

00:00:48 #6837 [Debug] > │     let v0 : (unit -> UH0) = closure59()                                     │

00:00:48 #6838 [Debug] > │     UH0_0(59.0, v0)                                                          │

00:00:48 #6839 [Debug] > │ and closure57 () () : UH0 =                                                  │

00:00:48 #6840 [Debug] > │     let v0 : (unit -> UH0) = closure58()                                     │

00:00:48 #6841 [Debug] > │     UH0_0(58.0, v0)                                                          │

00:00:48 #6842 [Debug] > │ and closure56 () () : UH0 =                                                  │

00:00:48 #6843 [Debug] > │     let v0 : (unit -> UH0) = closure57()                                     │

00:00:48 #6844 [Debug] > │     UH0_0(57.0, v0)                                                          │

00:00:48 #6845 [Debug] > │ and closure55 () () : UH0 =                                                  │

00:00:48 #6846 [Debug] > │     let v0 : (unit -> UH0) = closure56()                                     │

00:00:48 #6847 [Debug] > │     UH0_0(56.0, v0)                                                          │

00:00:48 #6848 [Debug] > │ and closure54 () () : UH0 =                                                  │

00:00:48 #6849 [Debug] > │     let v0 : (unit -> UH0) = closure55()                                     │

00:00:48 #6850 [Debug] > │     UH0_0(55.0, v0)                                                          │

00:00:48 #6851 [Debug] > │ and closure53 () () : UH0 =                                                  │

00:00:48 #6852 [Debug] > │     let v0 : (unit -> UH0) = closure54()                                     │

00:00:48 #6853 [Debug] > │     UH0_0(54.0, v0)                                                          │

00:00:48 #6854 [Debug] > │ and closure52 () () : UH0 =                                                  │

00:00:48 #6855 [Debug] > │     let v0 : (unit -> UH0) = closure53()                                     │

00:00:48 #6856 [Debug] > │     UH0_0(53.0, v0)                                                          │

00:00:48 #6857 [Debug] > │ and closure51 () () : UH0 =                                                  │

00:00:48 #6858 [Debug] > │     let v0 : (unit -> UH0) = closure52()                                     │

00:00:48 #6859 [Debug] > │     UH0_0(52.0, v0)                                                          │

00:00:48 #6860 [Debug] > │ and closure50 () () : UH0 =                                                  │

00:00:48 #6861 [Debug] > │     let v0 : (unit -> UH0) = closure51()                                     │

00:00:48 #6862 [Debug] > │     UH0_0(51.0, v0)                                                          │

00:00:48 #6863 [Debug] > │ and closure49 () () : UH0 =                                                  │

00:00:48 #6864 [Debug] > │     let v0 : (unit -> UH0) = closure50()                                     │

00:00:48 #6865 [Debug] > │     UH0_0(50.0, v0)                                                          │

00:00:48 #6866 [Debug] > │ and closure48 () () : UH0 =                                                  │

00:00:48 #6867 [Debug] > │     let v0 : (unit -> UH0) = closure49()                                     │

00:00:48 #6868 [Debug] > │     UH0_0(49.0, v0)                                                          │

00:00:48 #6869 [Debug] > │ and closure47 () () : UH0 =                                                  │

00:00:48 #6870 [Debug] > │     let v0 : (unit -> UH0) = closure48()                                     │

00:00:48 #6871 [Debug] > │     UH0_0(48.0, v0)                                                          │

00:00:48 #6872 [Debug] > │ and closure46 () () : UH0 =                                                  │

00:00:48 #6873 [Debug] > │     let v0 : (unit -> UH0) = closure47()                                     │

00:00:48 #6874 [Debug] > │     UH0_0(47.0, v0)                                                          │

00:00:48 #6875 [Debug] > │ and closure45 () () : UH0 =                                                  │

00:00:48 #6876 [Debug] > │     let v0 : (unit -> UH0) = closure46()                                     │

00:00:48 #6877 [Debug] > │     UH0_0(46.0, v0)                                                          │

00:00:48 #6878 [Debug] > │ and closure44 () () : UH0 =                                                  │

00:00:48 #6879 [Debug] > │     let v0 : (unit -> UH0) = closure45()                                     │

00:00:48 #6880 [Debug] > │     UH0_0(45.0, v0)                                                          │

00:00:48 #6881 [Debug] > │ and closure43 () () : UH0 =                                                  │

00:00:48 #6882 [Debug] > │     let v0 : (unit -> UH0) = closure44()                                     │

00:00:48 #6883 [Debug] > │     UH0_0(44.0, v0)                                                          │

00:00:48 #6884 [Debug] > │ and closure42 () () : UH0 =                                                  │

00:00:48 #6885 [Debug] > │     let v0 : (unit -> UH0) = closure43()                                     │

00:00:48 #6886 [Debug] > │     UH0_0(43.0, v0)                                                          │

00:00:48 #6887 [Debug] > │ and closure41 () () : UH0 =                                                  │

00:00:48 #6888 [Debug] > │     let v0 : (unit -> UH0) = closure42()                                     │

00:00:48 #6889 [Debug] > │     UH0_0(42.0, v0)                                                          │

00:00:48 #6890 [Debug] > │ and closure40 () () : UH0 =                                                  │

00:00:48 #6891 [Debug] > │     let v0 : (unit -> UH0) = closure41()                                     │

00:00:48 #6892 [Debug] > │     UH0_0(41.0, v0)                                                          │

00:00:48 #6893 [Debug] > │ and closure39 () () : UH0 =                                                  │

00:00:48 #6894 [Debug] > │     let v0 : (unit -> UH0) = closure40()                                     │

00:00:48 #6895 [Debug] > │     UH0_0(40.0, v0)                                                          │

00:00:48 #6896 [Debug] > │ and closure38 () () : UH0 =                                                  │

00:00:48 #6897 [Debug] > │     let v0 : (unit -> UH0) = closure39()                                     │

00:00:48 #6898 [Debug] > │     UH0_0(39.0, v0)                                                          │

00:00:48 #6899 [Debug] > │ and closure37 () () : UH0 =                                                  │

00:00:48 #6900 [Debug] > │     let v0 : (unit -> UH0) = closure38()                                     │

00:00:48 #6901 [Debug] > │     UH0_0(38.0, v0)                                                          │

00:00:48 #6902 [Debug] > │ and closure36 () () : UH0 =                                                  │

00:00:48 #6903 [Debug] > │     let v0 : (unit -> UH0) = closure37()                                     │

00:00:48 #6904 [Debug] > │     UH0_0(37.0, v0)                                                          │

00:00:48 #6905 [Debug] > │ and closure35 () () : UH0 =                                                  │

00:00:48 #6906 [Debug] > │     let v0 : (unit -> UH0) = closure36()                                     │

00:00:48 #6907 [Debug] > │     UH0_0(36.0, v0)                                                          │

00:00:48 #6908 [Debug] > │ and closure34 () () : UH0 =                                                  │

00:00:48 #6909 [Debug] > │     let v0 : (unit -> UH0) = closure35()                                     │

00:00:48 #6910 [Debug] > │     UH0_0(35.0, v0)                                                          │

00:00:48 #6911 [Debug] > │ and closure33 () () : UH0 =                                                  │

00:00:48 #6912 [Debug] > │     let v0 : (unit -> UH0) = closure34()                                     │

00:00:48 #6913 [Debug] > │     UH0_0(34.0, v0)                                                          │

00:00:48 #6914 [Debug] > │ and closure32 () () : UH0 =                                                  │

00:00:48 #6915 [Debug] > │     let v0 : (unit -> UH0) = closure33()                                     │

00:00:48 #6916 [Debug] > │     UH0_0(33.0, v0)                                                          │

00:00:48 #6917 [Debug] > │ and closure31 () () : UH0 =                                                  │

00:00:48 #6918 [Debug] > │     let v0 : (unit -> UH0) = closure32()                                     │

00:00:48 #6919 [Debug] > │     UH0_0(32.0, v0)                                                          │

00:00:48 #6920 [Debug] > │ and closure30 () () : UH0 =                                                  │

00:00:48 #6921 [Debug] > │     let v0 : (unit -> UH0) = closure31()                                     │

00:00:48 #6922 [Debug] > │     UH0_0(31.0, v0)                                                          │

00:00:48 #6923 [Debug] > │ and closure29 () () : UH0 =                                                  │

00:00:48 #6924 [Debug] > │     let v0 : (unit -> UH0) = closure30()                                     │

00:00:48 #6925 [Debug] > │     UH0_0(30.0, v0)                                                          │

00:00:48 #6926 [Debug] > │ and closure28 () () : UH0 =                                                  │

00:00:48 #6927 [Debug] > │     let v0 : (unit -> UH0) = closure29()                                     │

00:00:48 #6928 [Debug] > │     UH0_0(29.0, v0)                                                          │

00:00:48 #6929 [Debug] > │ and closure27 () () : UH0 =                                                  │

00:00:48 #6930 [Debug] > │     let v0 : (unit -> UH0) = closure28()                                     │

00:00:48 #6931 [Debug] > │     UH0_0(28.0, v0)                                                          │

00:00:48 #6932 [Debug] > │ and closure26 () () : UH0 =                                                  │

00:00:48 #6933 [Debug] > │     let v0 : (unit -> UH0) = closure27()                                     │

00:00:48 #6934 [Debug] > │     UH0_0(27.0, v0)                                                          │

00:00:48 #6935 [Debug] > │ and closure25 () () : UH0 =                                                  │

00:00:48 #6936 [Debug] > │     let v0 : (unit -> UH0) = closure26()                                     │

00:00:48 #6937 [Debug] > │     UH0_0(26.0, v0)                                                          │

00:00:48 #6938 [Debug] > │ and closure24 () () : UH0 =                                                  │

00:00:48 #6939 [Debug] > │     let v0 : (unit -> UH0) = closure25()                                     │

00:00:48 #6940 [Debug] > │     UH0_0(25.0, v0)                                                          │

00:00:48 #6941 [Debug] > │ and closure23 () () : UH0 =                                                  │

00:00:48 #6942 [Debug] > │     let v0 : (unit -> UH0) = closure24()                                     │

00:00:48 #6943 [Debug] > │     UH0_0(24.0, v0)                                                          │

00:00:48 #6944 [Debug] > │ and closure22 () () : UH0 =                                                  │

00:00:48 #6945 [Debug] > │     let v0 : (unit -> UH0) = closure23()                                     │

00:00:48 #6946 [Debug] > │     UH0_0(23.0, v0)                                                          │

00:00:48 #6947 [Debug] > │ and closure21 () () : UH0 =                                                  │

00:00:48 #6948 [Debug] > │     let v0 : (unit -> UH0) = closure22()                                     │

00:00:48 #6949 [Debug] > │     UH0_0(22.0, v0)                                                          │

00:00:48 #6950 [Debug] > │ and closure20 () () : UH0 =                                                  │

00:00:48 #6951 [Debug] > │     let v0 : (unit -> UH0) = closure21()                                     │

00:00:48 #6952 [Debug] > │     UH0_0(21.0, v0)                                                          │

00:00:48 #6953 [Debug] > │ and closure19 () () : UH0 =                                                  │

00:00:48 #6954 [Debug] > │     let v0 : (unit -> UH0) = closure20()                                     │

00:00:48 #6955 [Debug] > │     UH0_0(20.0, v0)                                                          │

00:00:48 #6956 [Debug] > │ and closure18 () () : UH0 =                                                  │

00:00:48 #6957 [Debug] > │     let v0 : (unit -> UH0) = closure19()                                     │

00:00:48 #6958 [Debug] > │     UH0_0(19.0, v0)                                                          │

00:00:48 #6959 [Debug] > │ and closure17 () () : UH0 =                                                  │

00:00:48 #6960 [Debug] > │     let v0 : (unit -> UH0) = closure18()                                     │

00:00:48 #6961 [Debug] > │     UH0_0(18.0, v0)                                                          │

00:00:48 #6962 [Debug] > │ and closure16 () () : UH0 =                                                  │

00:00:48 #6963 [Debug] > │     let v0 : (unit -> UH0) = closure17()                                     │

00:00:48 #6964 [Debug] > │     UH0_0(17.0, v0)                                                          │

00:00:48 #6965 [Debug] > │ and closure15 () () : UH0 =                                                  │

00:00:48 #6966 [Debug] > │     let v0 : (unit -> UH0) = closure16()                                     │

00:00:48 #6967 [Debug] > │     UH0_0(16.0, v0)                                                          │

00:00:48 #6968 [Debug] > │ and closure14 () () : UH0 =                                                  │

00:00:48 #6969 [Debug] > │     let v0 : (unit -> UH0) = closure15()                                     │

00:00:48 #6970 [Debug] > │     UH0_0(15.0, v0)                                                          │

00:00:48 #6971 [Debug] > │ and closure13 () () : UH0 =                                                  │

00:00:48 #6972 [Debug] > │     let v0 : (unit -> UH0) = closure14()                                     │

00:00:48 #6973 [Debug] > │     UH0_0(14.0, v0)                                                          │

00:00:48 #6974 [Debug] > │ and closure12 () () : UH0 =                                                  │

00:00:48 #6975 [Debug] > │     let v0 : (unit -> UH0) = closure13()                                     │

00:00:48 #6976 [Debug] > │     UH0_0(13.0, v0)                                                          │

00:00:48 #6977 [Debug] > │ and closure11 () () : UH0 =                                                  │

00:00:48 #6978 [Debug] > │     let v0 : (unit -> UH0) = closure12()                                     │

00:00:48 #6979 [Debug] > │     UH0_0(12.0, v0)                                                          │

00:00:48 #6980 [Debug] > │ and closure10 () () : UH0 =                                                  │

00:00:48 #6981 [Debug] > │     let v0 : (unit -> UH0) = closure11()                                     │

00:00:48 #6982 [Debug] > │     UH0_0(11.0, v0)                                                          │

00:00:48 #6983 [Debug] > │ and closure9 () () : UH0 =                                                   │

00:00:48 #6984 [Debug] > │     let v0 : (unit -> UH0) = closure10()                                     │

00:00:48 #6985 [Debug] > │     UH0_0(10.0, v0)                                                          │

00:00:48 #6986 [Debug] > │ and closure8 () () : UH0 =                                                   │

00:00:48 #6987 [Debug] > │     let v0 : (unit -> UH0) = closure9()                                      │

00:00:48 #6988 [Debug] > │     UH0_0(9.0, v0)                                                           │

00:00:48 #6989 [Debug] > │ and closure7 () () : UH0 =                                                   │

00:00:48 #6990 [Debug] > │     let v0 : (unit -> UH0) = closure8()                                      │

00:00:48 #6991 [Debug] > │     UH0_0(8.0, v0)                                                           │

00:00:48 #6992 [Debug] > │ and closure6 () () : UH0 =                                                   │

00:00:48 #6993 [Debug] > │     let v0 : (unit -> UH0) = closure7()                                      │

00:00:48 #6994 [Debug] > │     UH0_0(7.0, v0)                                                           │

00:00:48 #6995 [Debug] > │ and closure5 () () : UH0 =                                                   │

00:00:48 #6996 [Debug] > │     let v0 : (unit -> UH0) = closure6()                                      │

00:00:48 #6997 [Debug] > │     UH0_0(6.0, v0)                                                           │

00:00:48 #6998 [Debug] > │ and closure4 () () : UH0 =                                                   │

00:00:48 #6999 [Debug] > │     let v0 : (unit -> UH0) = closure5()                                      │

00:00:48 #7000 [Debug] > │     UH0_0(5.0, v0)                                                           │

00:00:48 #7001 [Debug] > │ and closure3 () () : UH0 =                                                   │

00:00:48 #7002 [Debug] > │     let v0 : (unit -> UH0) = closure4()                                      │

00:00:48 #7003 [Debug] > │     UH0_0(4.0, v0)                                                           │

00:00:48 #7004 [Debug] > │ and closure2 () () : UH0 =                                                   │

00:00:48 #7005 [Debug] > │     let v0 : (unit -> UH0) = closure3()                                      │

00:00:48 #7006 [Debug] > │     UH0_0(3.0, v0)                                                           │

00:00:48 #7007 [Debug] > │ and closure1 () () : UH0 =                                                   │

00:00:48 #7008 [Debug] > │     let v0 : (unit -> UH0) = closure2()                                      │

00:00:48 #7009 [Debug] > │     UH0_0(2.0, v0)                                                           │

00:00:48 #7010 [Debug] > │ and closure0 () () : UH0 =                                                   │

00:00:48 #7011 [Debug] > │     let v0 : (unit -> UH0) = closure1()                                      │

00:00:48 #7012 [Debug] > │     UH0_0(1.0, v0)                                                           │

00:00:48 #7013 [Debug] > │ and closure129 () () : UH1 =                                                 │

00:00:48 #7014 [Debug] > │     UH1_1                                                                    │

00:00:48 #7015 [Debug] > │ and closure128 () () : UH1 =                                                 │

00:00:48 #7016 [Debug] > │     let v0 : (unit -> UH1) = closure129()                                    │

00:00:48 #7017 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.64, 0.0007224452478461016, 0.0, 0.0, 0.0,  │

00:00:48 #7018 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7019 [Debug] > │ and closure127 () () : UH1 =                                                 │

00:00:48 #7020 [Debug] > │     let v0 : (unit -> UH1) = closure128()                                    │

00:00:48 #7021 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.63, 0.001429728391993452, 0.0, 0.0, 0.0,   │

00:00:48 #7022 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7023 [Debug] > │ and closure126 () () : UH1 =                                                 │

00:00:48 #7024 [Debug] > │     let v0 : (unit -> UH1) = closure127()                                    │

00:00:48 #7025 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.62, 0.0021070055388626528, 0.0, 0.0, 0.0,  │

00:00:48 #7026 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7027 [Debug] > │ and closure125 () () : UH1 =                                                 │

00:00:48 #7028 [Debug] > │     let v0 : (unit -> UH1) = closure126()                                    │

00:00:48 #7029 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.61, 0.0027400625367733585, 0.0, 0.0, 0.0,  │

00:00:48 #7030 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7031 [Debug] > │ and closure124 () () : UH1 =                                                 │

00:00:48 #7032 [Debug] > │     let v0 : (unit -> UH1) = closure125()                                    │

00:00:48 #7033 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.6, 0.0033156132912039783, 0.0, 0.0, 0.0,   │

00:00:48 #7034 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7035 [Debug] > │ and closure123 () () : UH1 =                                                 │

00:00:48 #7036 [Debug] > │     let v0 : (unit -> UH1) = closure124()                                    │

00:00:48 #7037 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.59, 0.003821578602729245, 0.0, 0.0, 0.0,   │

00:00:48 #7038 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7039 [Debug] > │ and closure122 () () : UH1 =                                                 │

00:00:48 #7040 [Debug] > │     let v0 : (unit -> UH1) = closure123()                                    │

00:00:48 #7041 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.5800000000000001, 0.004247339675607605,    │

00:00:48 #7042 [Debug] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0)                                                 │

00:00:48 #7043 [Debug] > │ and closure121 () () : UH1 =                                                 │

00:00:48 #7044 [Debug] > │     let v0 : (unit -> UH1) = closure122()                                    │

00:00:48 #7045 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.5700000000000001, 0.004583960976582912,    │

00:00:48 #7046 [Debug] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0)                                                 │

00:00:48 #7047 [Debug] > │ and closure120 () () : UH1 =                                                 │

00:00:48 #7048 [Debug] > │     let v0 : (unit -> UH1) = closure121()                                    │

00:00:48 #7049 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.56, 0.004824377766717758, 0.0, 0.0, 0.0,   │

00:00:48 #7050 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7051 [Debug] > │ and closure119 () () : UH1 =                                                 │

00:00:48 #7052 [Debug] > │     let v0 : (unit -> UH1) = closure120()                                    │

00:00:48 #7053 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.55, 0.004963544370490271, 0.0, 0.0, 0.0,   │

00:00:48 #7054 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7055 [Debug] > │ and closure118 () () : UH1 =                                                 │

00:00:48 #7056 [Debug] > │     let v0 : (unit -> UH1) = closure119()                                    │

00:00:48 #7057 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.54, 0.004998540070400965, 0.0, 0.0, 0.0,   │

00:00:48 #7058 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7059 [Debug] > │ and closure117 () () : UH1 =                                                 │

00:00:48 #7060 [Debug] > │     let v0 : (unit -> UH1) = closure118()                                    │

00:00:48 #7061 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.53, 0.004928630404658255, 0.0, 0.0, 0.0,   │

00:00:48 #7062 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7063 [Debug] > │ and closure116 () () : UH1 =                                                 │

00:00:48 #7064 [Debug] > │     let v0 : (unit -> UH1) = closure117()                                    │

00:00:48 #7065 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.52, 0.004755282581475766, 0.0, 0.0, 0.0,   │

00:00:48 #7066 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7067 [Debug] > │ and closure115 () () : UH1 =                                                 │

00:00:48 #7068 [Debug] > │     let v0 : (unit -> UH1) = closure116()                                    │

00:00:48 #7069 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.51, 0.0044821346864785195, 0.0, 0.0, 0.0,  │

00:00:48 #7070 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7071 [Debug] > │ and closure114 () () : UH1 =                                                 │

00:00:48 #7072 [Debug] > │     let v0 : (unit -> UH1) = closure115()                                    │

00:00:48 #7073 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.5, 0.0041149193294682815, 0.0, 0.0, 0.0,   │

00:00:48 #7074 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7075 [Debug] > │ and closure113 () () : UH1 =                                                 │

00:00:48 #7076 [Debug] > │     let v0 : (unit -> UH1) = closure114()                                    │

00:00:48 #7077 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.49, 0.0036613433329888622, 0.0, 0.0, 0.0,  │

00:00:48 #7078 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7079 [Debug] > │ and closure112 () () : UH1 =                                                 │

00:00:48 #7080 [Debug] > │     let v0 : (unit -> UH1) = closure113()                                    │

00:00:48 #7081 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.48000000000000004, 0.003130925987691568,   │

00:00:48 #7082 [Debug] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0)                                                 │

00:00:48 #7083 [Debug] > │ and closure111 () () : UH1 =                                                 │

00:00:48 #7084 [Debug] > │     let v0 : (unit -> UH1) = closure112()                                    │

00:00:48 #7085 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.47000000000000003, 0.002534799269067953,   │

00:00:48 #7086 [Debug] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0)                                                 │

00:00:48 #7087 [Debug] > │ and closure110 () () : UH1 =                                                 │

00:00:48 #7088 [Debug] > │     let v0 : (unit -> UH1) = closure111()                                    │

00:00:48 #7089 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.46, 0.0018854742084416021, 0.0, 0.0, 0.0,  │

00:00:48 #7090 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7091 [Debug] > │ and closure109 () () : UH1 =                                                 │

00:00:48 #7092 [Debug] > │     let v0 : (unit -> UH1) = closure110()                                    │

00:00:48 #7093 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.45, 0.0011965783214377866, 0.0, 0.0, 0.0,  │

00:00:48 #7094 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7095 [Debug] > │ and closure108 () () : UH1 =                                                 │

00:00:48 #7096 [Debug] > │     let v0 : (unit -> UH1) = closure109()                                    │

00:00:48 #7097 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.44, 0.0004825696045725713, 0.0, 0.0, 0.0,  │

00:00:48 #7098 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7099 [Debug] > │ and closure107 () () : UH1 =                                                 │

00:00:48 #7100 [Debug] > │     let v0 : (unit -> UH1) = closure108()                                    │

00:00:48 #7101 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.43, -0.00024156689762753724, 0.0, 0.0,     │

00:00:48 #7102 [Debug] > │ 0.0, 0.0, 0.0, v0)                                                           │

00:00:48 #7103 [Debug] > │ and closure106 () () : UH1 =                                                 │

00:00:48 #7104 [Debug] > │     let v0 : (unit -> UH1) = closure107()                                    │

00:00:48 #7105 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.42000000000000004, -0.0009606335867685414, │

00:00:48 #7106 [Debug] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0)                                                 │

00:00:48 #7107 [Debug] > │ and closure105 () () : UH1 =                                                 │

00:00:48 #7108 [Debug] > │     let v0 : (unit -> UH1) = closure106()                                    │

00:00:48 #7109 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.41000000000000003, -0.0016595392656426435, │

00:00:48 #7110 [Debug] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0)                                                 │

00:00:48 #7111 [Debug] > │ and closure104 () () : UH1 =                                                 │

00:00:48 #7112 [Debug] > │     let v0 : (unit -> UH1) = closure105()                                    │

00:00:48 #7113 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.4, -0.002323615860218846, 0.0, 0.0, 0.0,   │

00:00:48 #7114 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7115 [Debug] > │ and closure103 () () : UH1 =                                                 │

00:00:48 #7116 [Debug] > │     let v0 : (unit -> UH1) = closure104()                                    │

00:00:48 #7117 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.39, -0.002938926261462367, 0.0, 0.0, 0.0,  │

00:00:48 #7118 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7119 [Debug] > │ and closure102 () () : UH1 =                                                 │

00:00:48 #7120 [Debug] > │     let v0 : (unit -> UH1) = closure103()                                    │

00:00:48 #7121 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.38, -0.0034925568262446837, 0.0, 0.0, 0.0, │

00:00:48 #7122 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7123 [Debug] > │ and closure101 () () : UH1 =                                                 │

00:00:48 #7124 [Debug] > │     let v0 : (unit -> UH1) = closure102()                                    │

00:00:48 #7125 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.37, -0.003972888398568774, 0.0, 0.0, 0.0,  │

00:00:48 #7126 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7127 [Debug] > │ and closure100 () () : UH1 =                                                 │

00:00:48 #7128 [Debug] > │     let v0 : (unit -> UH1) = closure101()                                    │

00:00:48 #7129 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.36000000000000004, -0.004369840163132589,  │

00:00:48 #7130 [Debug] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0)                                                 │

00:00:48 #7131 [Debug] > │ and closure99 () () : UH1 =                                                  │

00:00:48 #7132 [Debug] > │     let v0 : (unit -> UH1) = closure100()                                    │

00:00:48 #7133 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.35000000000000003, -0.004675081213427074,  │

00:00:48 #7134 [Debug] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0)                                                 │

00:00:48 #7135 [Debug] > │ and closure98 () () : UH1 =                                                  │

00:00:48 #7136 [Debug] > │     let v0 : (unit -> UH1) = closure99()                                     │

00:00:48 #7137 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.34, -0.004882205394146361, 0.0, 0.0, 0.0,  │

00:00:48 #7138 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7139 [Debug] > │ and closure97 () () : UH1 =                                                  │

00:00:48 #7140 [Debug] > │     let v0 : (unit -> UH1) = closure98()                                     │

00:00:48 #7141 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.33, -0.004986865748457456, 0.0, 0.0, 0.0,  │

00:00:48 #7142 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7143 [Debug] > │ and closure96 () () : UH1 =                                                  │

00:00:48 #7144 [Debug] > │     let v0 : (unit -> UH1) = closure97()                                     │

00:00:48 #7145 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.32, -0.004986865748457456, 0.0, 0.0, 0.0,  │

00:00:48 #7146 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7147 [Debug] > │ and closure95 () () : UH1 =                                                  │

00:00:48 #7148 [Debug] > │     let v0 : (unit -> UH1) = closure96()                                     │

00:00:48 #7149 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.31, -0.004882205394146359, 0.0, 0.0, 0.0,  │

00:00:48 #7150 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7151 [Debug] > │ and closure94 () () : UH1 =                                                  │

00:00:48 #7152 [Debug] > │     let v0 : (unit -> UH1) = closure95()                                     │

00:00:48 #7153 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.3, -0.004675081213427074, 0.0, 0.0, 0.0,   │

00:00:48 #7154 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7155 [Debug] > │ and closure93 () () : UH1 =                                                  │

00:00:48 #7156 [Debug] > │     let v0 : (unit -> UH1) = closure94()                                     │

00:00:48 #7157 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.29000000000000004, -0.00436984016313259,   │

00:00:48 #7158 [Debug] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0)                                                 │

00:00:48 #7159 [Debug] > │ and closure92 () () : UH1 =                                                  │

00:00:48 #7160 [Debug] > │     let v0 : (unit -> UH1) = closure93()                                     │

00:00:48 #7161 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.28, -0.003972888398568771, 0.0, 0.0, 0.0,  │

00:00:48 #7162 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7163 [Debug] > │ and closure91 () () : UH1 =                                                  │

00:00:48 #7164 [Debug] > │     let v0 : (unit -> UH1) = closure92()                                     │

00:00:48 #7165 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.27, -0.003492556826244686, 0.0, 0.0, 0.0,  │

00:00:48 #7166 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7167 [Debug] > │ and closure90 () () : UH1 =                                                  │

00:00:48 #7168 [Debug] > │     let v0 : (unit -> UH1) = closure91()                                     │

00:00:48 #7169 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.26, -0.0029389262614623636, 0.0, 0.0, 0.0, │

00:00:48 #7170 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7171 [Debug] > │ and closure89 () () : UH1 =                                                  │

00:00:48 #7172 [Debug] > │     let v0 : (unit -> UH1) = closure90()                                     │

00:00:48 #7173 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.25, -0.002323615860218842, 0.0, 0.0, 0.0,  │

00:00:48 #7174 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7175 [Debug] > │ and closure88 () () : UH1 =                                                  │

00:00:48 #7176 [Debug] > │     let v0 : (unit -> UH1) = closure89()                                     │

00:00:48 #7177 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.24000000000000002, -0.001659539265642642,  │

00:00:48 #7178 [Debug] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0)                                                 │

00:00:48 #7179 [Debug] > │ and closure87 () () : UH1 =                                                  │

00:00:48 #7180 [Debug] > │     let v0 : (unit -> UH1) = closure88()                                     │

00:00:48 #7181 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.23, -0.0009606335867685418, 0.0, 0.0, 0.0, │

00:00:48 #7182 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7183 [Debug] > │ and closure86 () () : UH1 =                                                  │

00:00:48 #7184 [Debug] > │     let v0 : (unit -> UH1) = closure87()                                     │

00:00:48 #7185 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.22, -0.00024156689762753317, 0.0, 0.0,     │

00:00:48 #7186 [Debug] > │ 0.0, 0.0, 0.0, v0)                                                           │

00:00:48 #7187 [Debug] > │ and closure85 () () : UH1 =                                                  │

00:00:48 #7188 [Debug] > │     let v0 : (unit -> UH1) = closure86()                                     │

00:00:48 #7189 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.21000000000000002, 0.00048256960457257535, │

00:00:48 #7190 [Debug] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0)                                                 │

00:00:48 #7191 [Debug] > │ and closure84 () () : UH1 =                                                  │

00:00:48 #7192 [Debug] > │     let v0 : (unit -> UH1) = closure85()                                     │

00:00:48 #7193 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.2, 0.0011965783214377905, 0.0, 0.0, 0.0,   │

00:00:48 #7194 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7195 [Debug] > │ and closure83 () () : UH1 =                                                  │

00:00:48 #7196 [Debug] > │     let v0 : (unit -> UH1) = closure84()                                     │

00:00:48 #7197 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.19, 0.0018854742084416015, 0.0, 0.0, 0.0,  │

00:00:48 #7198 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7199 [Debug] > │ and closure82 () () : UH1 =                                                  │

00:00:48 #7200 [Debug] > │     let v0 : (unit -> UH1) = closure83()                                     │

00:00:48 #7201 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.18000000000000002, 0.002534799269067951,   │

00:00:48 #7202 [Debug] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0)                                                 │

00:00:48 #7203 [Debug] > │ and closure81 () () : UH1 =                                                  │

00:00:48 #7204 [Debug] > │     let v0 : (unit -> UH1) = closure82()                                     │

00:00:48 #7205 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.17, 0.0031309259876915697, 0.0, 0.0, 0.0,  │

00:00:48 #7206 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7207 [Debug] > │ and closure80 () () : UH1 =                                                  │

00:00:48 #7208 [Debug] > │     let v0 : (unit -> UH1) = closure81()                                     │

00:00:48 #7209 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.16, 0.0036613433329888666, 0.0, 0.0, 0.0,  │

00:00:48 #7210 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7211 [Debug] > │ and closure79 () () : UH1 =                                                  │

00:00:48 #7212 [Debug] > │     let v0 : (unit -> UH1) = closure80()                                     │

00:00:48 #7213 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.15000000000000002, 0.0041149193294682815,  │

00:00:48 #7214 [Debug] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0)                                                 │

00:00:48 #7215 [Debug] > │ and closure78 () () : UH1 =                                                  │

00:00:48 #7216 [Debug] > │     let v0 : (unit -> UH1) = closure79()                                     │

00:00:48 #7217 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.14, 0.004482134686478519, 0.0, 0.0, 0.0,   │

00:00:48 #7218 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7219 [Debug] > │ and closure77 () () : UH1 =                                                  │

00:00:48 #7220 [Debug] > │     let v0 : (unit -> UH1) = closure78()                                     │

00:00:48 #7221 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.13, 0.004755282581475768, 0.0, 0.0, 0.0,   │

00:00:48 #7222 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7223 [Debug] > │ and closure76 () () : UH1 =                                                  │

00:00:48 #7224 [Debug] > │     let v0 : (unit -> UH1) = closure77()                                     │

00:00:48 #7225 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.12, 0.004928630404658255, 0.0, 0.0, 0.0,   │

00:00:48 #7226 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7227 [Debug] > │ and closure75 () () : UH1 =                                                  │

00:00:48 #7228 [Debug] > │     let v0 : (unit -> UH1) = closure76()                                     │

00:00:48 #7229 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.11, 0.004998540070400965, 0.0, 0.0, 0.0,   │

00:00:48 #7230 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7231 [Debug] > │ and closure74 () () : UH1 =                                                  │

00:00:48 #7232 [Debug] > │     let v0 : (unit -> UH1) = closure75()                                     │

00:00:48 #7233 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.09999999999999999, 0.00496354437049027,    │

00:00:48 #7234 [Debug] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0)                                                 │

00:00:48 #7235 [Debug] > │ and closure73 () () : UH1 =                                                  │

00:00:48 #7236 [Debug] > │     let v0 : (unit -> UH1) = closure74()                                     │

00:00:48 #7237 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.09, 0.004824377766717757, 0.0, 0.0, 0.0,   │

00:00:48 #7238 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7239 [Debug] > │ and closure72 () () : UH1 =                                                  │

00:00:48 #7240 [Debug] > │     let v0 : (unit -> UH1) = closure73()                                     │

00:00:48 #7241 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.08, 0.004583960976582912, 0.0, 0.0, 0.0,   │

00:00:48 #7242 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7243 [Debug] > │ and closure71 () () : UH1 =                                                  │

00:00:48 #7244 [Debug] > │     let v0 : (unit -> UH1) = closure72()                                     │

00:00:48 #7245 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.06999999999999999, 0.004247339675607605,   │

00:00:48 #7246 [Debug] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0)                                                 │

00:00:48 #7247 [Debug] > │ and closure70 () () : UH1 =                                                  │

00:00:48 #7248 [Debug] > │     let v0 : (unit -> UH1) = closure71()                                     │

00:00:48 #7249 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.060000000000000005, 0.0038215786027292415, │

00:00:48 #7250 [Debug] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0)                                                 │

00:00:48 #7251 [Debug] > │ and closure69 () () : UH1 =                                                  │

00:00:48 #7252 [Debug] > │     let v0 : (unit -> UH1) = closure70()                                     │

00:00:48 #7253 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.05, 0.0033156132912039757, 0.0, 0.0, 0.0,  │

00:00:48 #7254 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7255 [Debug] > │ and closure68 () () : UH1 =                                                  │

00:00:48 #7256 [Debug] > │     let v0 : (unit -> UH1) = closure69()                                     │

00:00:48 #7257 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.04, 0.00274006253677335, 0.0, 0.0, 0.0,    │

00:00:48 #7258 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7259 [Debug] > │ and closure67 () () : UH1 =                                                  │

00:00:48 #7260 [Debug] > │     let v0 : (unit -> UH1) = closure68()                                     │

00:00:48 #7261 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.03, 0.0021070055388626454, 0.0, 0.0, 0.0,  │

00:00:48 #7262 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7263 [Debug] > │ and closure66 () () : UH1 =                                                  │

00:00:48 #7264 [Debug] > │     let v0 : (unit -> UH1) = closure67()                                     │

00:00:48 #7265 [Debug] > │     UH1_0(0.0, 8.422578125E-06, 0.02, 0.0014297283919934465, 0.0, 0.0, 0.0,  │

00:00:48 #7266 [Debug] > │ 0.0, 0.0, v0)                                                                │

00:00:48 #7267 [Debug] > │ and closure132 (v0 : (unit -> UH1), v1 : (unit -> UH3)) () : UH1 =           │

00:00:48 #7268 [Debug] > │     let v2 : UH3 = v1 ()                                                     │

00:00:48 #7269 [Debug] > │     let v3 : UH1 = v0 ()                                                     │

00:00:48 #7270 [Debug] > │     match v2 with                                                            │

00:00:48 #7271 [Debug] > │     | UH3_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* StreamCons *)  │

00:00:48 #7272 [Debug] > │         match v3 with                                                        │

00:00:48 #7273 [Debug] > │         | UH1_0(v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) -> (*      │

00:00:48 #7274 [Debug] > │ StreamCons *)                                                                │

00:00:48 #7275 [Debug] > │             let v24 : float = v9 * 1.25E-05                                  │

00:00:48 #7276 [Debug] > │             let v25 : float = v19 + v24                                      │

00:00:48 #7277 [Debug] > │             let v26 : float = 1.25E-05 * v6                                  │

00:00:48 #7278 [Debug] > │             let v27 : float = 1.25E-05 * v7                                  │

00:00:48 #7279 [Debug] > │             let v28 : float = 1.25E-05 * v8                                  │

00:00:48 #7280 [Debug] > │             let v29 : float = v16 + v26                                      │

00:00:48 #7281 [Debug] > │             let v30 : float = v17 + v27                                      │

00:00:48 #7282 [Debug] > │             let v31 : float = v18 + v28                                      │

00:00:48 #7283 [Debug] > │             let v32 : float = 1.25E-05 * v10                                 │

00:00:48 #7284 [Debug] > │             let v33 : float = 1.25E-05 * v11                                 │

00:00:48 #7285 [Debug] > │             let v34 : float = 1.25E-05 * v12                                 │

00:00:48 #7286 [Debug] > │             let v35 : float = v20 + v32                                      │

00:00:48 #7287 [Debug] > │             let v36 : float = v21 + v33                                      │

00:00:48 #7288 [Debug] > │             let v37 : float = v22 + v34                                      │

00:00:48 #7289 [Debug] > │             let v38 : (unit -> UH1) = closure132(v23, v13)                   │

00:00:48 #7290 [Debug] > │             UH1_0(v14, v15, v29, v30, v31, v25, v35, v36, v37, v38)          │

00:00:48 #7291 [Debug] > │         | UH1_1 -> (* StreamNil *)                                           │

00:00:48 #7292 [Debug] > │             UH1_1                                                            │

00:00:48 #7293 [Debug] > │     | UH3_1 -> (* StreamNil *)                                               │

00:00:48 #7294 [Debug] > │         UH1_1                                                                │

00:00:48 #7295 [Debug] > │ and closure133 (v0 : UH1) () : UH1 =                                         │

00:00:48 #7296 [Debug] > │     v0                                                                       │

00:00:48 #7297 [Debug] > │ and closure134 (v0 : UH1, v1 : Mut0) () : UH1 =                              │

00:00:48 #7298 [Debug] > │     let v2 : US0 = v1.l0                                                     │

00:00:48 #7299 [Debug] > │     match v2 with                                                            │

00:00:48 #7300 [Debug] > │     | US0_0(v3) -> (* Computed *)                                            │

00:00:48 #7301 [Debug] > │         v3                                                                   │

00:00:48 #7302 [Debug] > │     | US0_1(v4) -> (* NotComputed *)                                         │

00:00:48 #7303 [Debug] > │         let v5 : UH1 = v4 ()                                                 │

00:00:48 #7304 [Debug] > │         let v20 : UH1 =                                                      │

00:00:48 #7305 [Debug] > │             match v5 with                                                    │

00:00:48 #7306 [Debug] > │             | UH1_0(v7, v8, v9, v10, v11, v12, v13, v14, v15, v16) -> (*     │

00:00:48 #7307 [Debug] > │ StreamCons *)                                                                │

00:00:48 #7308 [Debug] > │                 let v17 : (unit -> UH1) = method3(v0, v16)                   │

00:00:48 #7309 [Debug] > │                 UH1_0(v7, v8, v9, v10, v11, v12, v13, v14, v15, v17)         │

00:00:48 #7310 [Debug] > │             | UH1_1 -> (* StreamNil *)                                       │

00:00:48 #7311 [Debug] > │                 UH1_1                                                        │

00:00:48 #7312 [Debug] > │         let v21 : US0 = US0_0(v20)                                           │

00:00:48 #7313 [Debug] > │         v1.l0 <- v21                                                         │

00:00:48 #7314 [Debug] > │         v20                                                                  │

00:00:48 #7315 [Debug] > │ and method3 (v0 : UH1, v1 : (unit -> UH1)) : (unit -> UH1) =                 │

00:00:48 #7316 [Debug] > │     let v2 : US0 = US0_1(v1)                                                 │

00:00:48 #7317 [Debug] > │     let v3 : Mut0 = {l0 = v2} : Mut0                                         │

00:00:48 #7318 [Debug] > │     closure134(v0, v3)                                                       │

00:00:48 #7319 [Debug] > │ and closure135 (v0 : (unit -> UH1), v1 : (unit -> UH3)) () : UH1 =           │

00:00:48 #7320 [Debug] > │     let v2 : UH3 = v1 ()                                                     │

00:00:48 #7321 [Debug] > │     let v3 : UH1 = v0 ()                                                     │

00:00:48 #7322 [Debug] > │     match v2 with                                                            │

00:00:48 #7323 [Debug] > │     | UH3_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* StreamCons *)  │

00:00:48 #7324 [Debug] > │         match v3 with                                                        │

00:00:48 #7325 [Debug] > │         | UH1_0(v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) -> (*      │

00:00:48 #7326 [Debug] > │ StreamCons *)                                                                │

00:00:48 #7327 [Debug] > │             let v24 : float = v9 * 2.5E-05                                   │

00:00:48 #7328 [Debug] > │             let v25 : float = v19 + v24                                      │

00:00:48 #7329 [Debug] > │             let v26 : float = 2.5E-05 * v6                                   │

00:00:48 #7330 [Debug] > │             let v27 : float = 2.5E-05 * v7                                   │

00:00:48 #7331 [Debug] > │             let v28 : float = 2.5E-05 * v8                                   │

00:00:48 #7332 [Debug] > │             let v29 : float = v16 + v26                                      │

00:00:48 #7333 [Debug] > │             let v30 : float = v17 + v27                                      │

00:00:48 #7334 [Debug] > │             let v31 : float = v18 + v28                                      │

00:00:48 #7335 [Debug] > │             let v32 : float = 2.5E-05 * v10                                  │

00:00:48 #7336 [Debug] > │             let v33 : float = 2.5E-05 * v11                                  │

00:00:48 #7337 [Debug] > │             let v34 : float = 2.5E-05 * v12                                  │

00:00:48 #7338 [Debug] > │             let v35 : float = v20 + v32                                      │

00:00:48 #7339 [Debug] > │             let v36 : float = v21 + v33                                      │

00:00:48 #7340 [Debug] > │             let v37 : float = v22 + v34                                      │

00:00:48 #7341 [Debug] > │             let v38 : (unit -> UH1) = closure135(v23, v13)                   │

00:00:48 #7342 [Debug] > │             UH1_0(v14, v15, v29, v30, v31, v25, v35, v36, v37, v38)          │

00:00:48 #7343 [Debug] > │         | UH1_1 -> (* StreamNil *)                                           │

00:00:48 #7344 [Debug] > │             UH1_1                                                            │

00:00:48 #7345 [Debug] > │     | UH3_1 -> (* StreamNil *)                                               │

00:00:48 #7346 [Debug] > │         UH1_1                                                                │

00:00:48 #7347 [Debug] > │ and closure136 (v0 : (unit -> UH3), v1 : (unit -> UH3)) () : UH3 =           │

00:00:48 #7348 [Debug] > │     let v2 : UH3 = v1 ()                                                     │

00:00:48 #7349 [Debug] > │     let v3 : UH3 = v0 ()                                                     │

00:00:48 #7350 [Debug] > │     match v2 with                                                            │

00:00:48 #7351 [Debug] > │     | UH3_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* StreamCons *)  │

00:00:48 #7352 [Debug] > │         match v3 with                                                        │

00:00:48 #7353 [Debug] > │         | UH3_0(v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) -> (*      │

00:00:48 #7354 [Debug] > │ StreamCons *)                                                                │

00:00:48 #7355 [Debug] > │             let v24 : float = v4 + v14                                       │

00:00:48 #7356 [Debug] > │             let v25 : float = v5 + v15                                       │

00:00:48 #7357 [Debug] > │             let v26 : float = v9 + v19                                       │

00:00:48 #7358 [Debug] > │             let v27 : float = v6 + v16                                       │

00:00:48 #7359 [Debug] > │             let v28 : float = v7 + v17                                       │

00:00:48 #7360 [Debug] > │             let v29 : float = v8 + v18                                       │

00:00:48 #7361 [Debug] > │             let v30 : float = v10 + v20                                      │

00:00:48 #7362 [Debug] > │             let v31 : float = v11 + v21                                      │

00:00:48 #7363 [Debug] > │             let v32 : float = v12 + v22                                      │

00:00:48 #7364 [Debug] > │             let v33 : (unit -> UH3) = closure136(v23, v13)                   │

00:00:48 #7365 [Debug] > │             UH3_0(v24, v25, v27, v28, v29, v26, v30, v31, v32, v33)          │

00:00:48 #7366 [Debug] > │         | UH3_1 -> (* StreamNil *)                                           │

00:00:48 #7367 [Debug] > │             UH3_1                                                            │

00:00:48 #7368 [Debug] > │     | UH3_1 -> (* StreamNil *)                                               │

00:00:48 #7369 [Debug] > │         UH3_1                                                                │

00:00:48 #7370 [Debug] > │ and closure137 (v0 : (unit -> UH1), v1 : (unit -> UH3)) () : UH1 =           │

00:00:48 #7371 [Debug] > │     let v2 : UH3 = v1 ()                                                     │

00:00:48 #7372 [Debug] > │     let v3 : UH1 = v0 ()                                                     │

00:00:48 #7373 [Debug] > │     match v2 with                                                            │

00:00:48 #7374 [Debug] > │     | UH3_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* StreamCons *)  │

00:00:48 #7375 [Debug] > │         match v3 with                                                        │

00:00:48 #7376 [Debug] > │         | UH1_0(v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) -> (*      │

00:00:48 #7377 [Debug] > │ StreamCons *)                                                                │

00:00:48 #7378 [Debug] > │             let v24 : float = v9 * 4.166666666666667E-06                     │

00:00:48 #7379 [Debug] > │             let v25 : float = v19 + v24                                      │

00:00:48 #7380 [Debug] > │             let v26 : float = 4.166666666666667E-06 * v6                     │

00:00:48 #7381 [Debug] > │             let v27 : float = 4.166666666666667E-06 * v7                     │

00:00:48 #7382 [Debug] > │             let v28 : float = 4.166666666666667E-06 * v8                     │

00:00:48 #7383 [Debug] > │             let v29 : float = v16 + v26                                      │

00:00:48 #7384 [Debug] > │             let v30 : float = v17 + v27                                      │

00:00:48 #7385 [Debug] > │             let v31 : float = v18 + v28                                      │

00:00:48 #7386 [Debug] > │             let v32 : float = 4.166666666666667E-06 * v10                    │

00:00:48 #7387 [Debug] > │             let v33 : float = 4.166666666666667E-06 * v11                    │

00:00:48 #7388 [Debug] > │             let v34 : float = 4.166666666666667E-06 * v12                    │

00:00:48 #7389 [Debug] > │             let v35 : float = v20 + v32                                      │

00:00:48 #7390 [Debug] > │             let v36 : float = v21 + v33                                      │

00:00:48 #7391 [Debug] > │             let v37 : float = v22 + v34                                      │

00:00:48 #7392 [Debug] > │             let v38 : (unit -> UH1) = closure137(v23, v13)                   │

00:00:48 #7393 [Debug] > │             UH1_0(v14, v15, v29, v30, v31, v25, v35, v36, v37, v38)          │

00:00:48 #7394 [Debug] > │         | UH1_1 -> (* StreamNil *)                                           │

00:00:48 #7395 [Debug] > │             UH1_1                                                            │

00:00:48 #7396 [Debug] > │     | UH3_1 -> (* StreamNil *)                                               │

00:00:48 #7397 [Debug] > │         UH1_1                                                                │

00:00:48 #7398 [Debug] > │ and closure131 (v0 : (UH1 -> UH3)) (v1 : UH1) : UH1 =                        │

00:00:48 #7399 [Debug] > │     let v2 : UH3 = v0 v1                                                     │

00:00:48 #7400 [Debug] > │     let v44 : UH1 =                                                          │

00:00:48 #7401 [Debug] > │         match v2 with                                                        │

00:00:48 #7402 [Debug] > │         | UH3_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* StreamCons  │

00:00:48 #7403 [Debug] > │ *)                                                                           │

00:00:48 #7404 [Debug] > │             match v1 with                                                    │

00:00:48 #7405 [Debug] > │             | UH1_0(v13, v14, v15, v16, v17, v18, v19, v20, v21, v22) -> (*  │

00:00:48 #7406 [Debug] > │ StreamCons *)                                                                │

00:00:48 #7407 [Debug] > │                 let v23 : float = v8 * 1.25E-05                              │

00:00:48 #7408 [Debug] > │                 let v24 : float = v18 + v23                                  │

00:00:48 #7409 [Debug] > │                 let v25 : float = 1.25E-05 * v5                              │

00:00:48 #7410 [Debug] > │                 let v26 : float = 1.25E-05 * v6                              │

00:00:48 #7411 [Debug] > │                 let v27 : float = 1.25E-05 * v7                              │

00:00:48 #7412 [Debug] > │                 let v28 : float = v15 + v25                                  │

00:00:48 #7413 [Debug] > │                 let v29 : float = v16 + v26                                  │

00:00:48 #7414 [Debug] > │                 let v30 : float = v17 + v27                                  │

00:00:48 #7415 [Debug] > │                 let v31 : float = 1.25E-05 * v9                              │

00:00:48 #7416 [Debug] > │                 let v32 : float = 1.25E-05 * v10                             │

00:00:48 #7417 [Debug] > │                 let v33 : float = 1.25E-05 * v11                             │

00:00:48 #7418 [Debug] > │                 let v34 : float = v19 + v31                                  │

00:00:48 #7419 [Debug] > │                 let v35 : float = v20 + v32                                  │

00:00:48 #7420 [Debug] > │                 let v36 : float = v21 + v33                                  │

00:00:48 #7421 [Debug] > │                 let v37 : (unit -> UH1) = closure132(v22, v12)               │

00:00:48 #7422 [Debug] > │                 UH1_0(v13, v14, v28, v29, v30, v24, v34, v35, v36, v37)      │

00:00:48 #7423 [Debug] > │             | UH1_1 -> (* StreamNil *)                                       │

00:00:48 #7424 [Debug] > │                 UH1_1                                                        │

00:00:48 #7425 [Debug] > │         | UH3_1 -> (* StreamNil *)                                           │

00:00:48 #7426 [Debug] > │             UH1_1                                                            │

00:00:48 #7427 [Debug] > │     let v45 : (unit -> UH1) = closure133(v44)                                │

00:00:48 #7428 [Debug] > │     let v46 : (unit -> UH1) = method3(v44, v45)                              │

00:00:48 #7429 [Debug] > │     let v47 : UH1 = v46 ()                                                   │

00:00:48 #7430 [Debug] > │     let v48 : UH3 = v0 v47                                                   │

00:00:48 #7431 [Debug] > │     let v90 : UH1 =                                                          │

00:00:48 #7432 [Debug] > │         match v48 with                                                       │

00:00:48 #7433 [Debug] > │         | UH3_0(v49, v50, v51, v52, v53, v54, v55, v56, v57, v58) -> (*      │

00:00:48 #7434 [Debug] > │ StreamCons *)                                                                │

00:00:48 #7435 [Debug] > │             match v1 with                                                    │

00:00:48 #7436 [Debug] > │             | UH1_0(v59, v60, v61, v62, v63, v64, v65, v66, v67, v68) -> (*  │

00:00:48 #7437 [Debug] > │ StreamCons *)                                                                │

00:00:48 #7438 [Debug] > │                 let v69 : float = v54 * 1.25E-05                             │

00:00:48 #7439 [Debug] > │                 let v70 : float = v64 + v69                                  │

00:00:48 #7440 [Debug] > │                 let v71 : float = 1.25E-05 * v51                             │

00:00:48 #7441 [Debug] > │                 let v72 : float = 1.25E-05 * v52                             │

00:00:48 #7442 [Debug] > │                 let v73 : float = 1.25E-05 * v53                             │

00:00:48 #7443 [Debug] > │                 let v74 : float = v61 + v71                                  │

00:00:48 #7444 [Debug] > │                 let v75 : float = v62 + v72                                  │

00:00:48 #7445 [Debug] > │                 let v76 : float = v63 + v73                                  │

00:00:48 #7446 [Debug] > │                 let v77 : float = 1.25E-05 * v55                             │

00:00:48 #7447 [Debug] > │                 let v78 : float = 1.25E-05 * v56                             │

00:00:48 #7448 [Debug] > │                 let v79 : float = 1.25E-05 * v57                             │

00:00:48 #7449 [Debug] > │                 let v80 : float = v65 + v77                                  │

00:00:48 #7450 [Debug] > │                 let v81 : float = v66 + v78                                  │

00:00:48 #7451 [Debug] > │                 let v82 : float = v67 + v79                                  │

00:00:48 #7452 [Debug] > │                 let v83 : (unit -> UH1) = closure132(v68, v58)               │

00:00:48 #7453 [Debug] > │                 UH1_0(v59, v60, v74, v75, v76, v70, v80, v81, v82, v83)      │

00:00:48 #7454 [Debug] > │             | UH1_1 -> (* StreamNil *)                                       │

00:00:48 #7455 [Debug] > │                 UH1_1                                                        │

00:00:48 #7456 [Debug] > │         | UH3_1 -> (* StreamNil *)                                           │

00:00:48 #7457 [Debug] > │             UH1_1                                                            │

00:00:48 #7458 [Debug] > │     let v91 : (unit -> UH1) = closure133(v90)                                │

00:00:48 #7459 [Debug] > │     let v92 : (unit -> UH1) = method3(v90, v91)                              │

00:00:48 #7460 [Debug] > │     let v93 : UH1 = v92 ()                                                   │

00:00:48 #7461 [Debug] > │     let v94 : UH3 = v0 v93                                                   │

00:00:48 #7462 [Debug] > │     let v136 : UH1 =                                                         │

00:00:48 #7463 [Debug] > │         match v94 with                                                       │

00:00:48 #7464 [Debug] > │         | UH3_0(v95, v96, v97, v98, v99, v100, v101, v102, v103, v104) -> (* │

00:00:48 #7465 [Debug] > │ StreamCons *)                                                                │

00:00:48 #7466 [Debug] > │             match v1 with                                                    │

00:00:48 #7467 [Debug] > │             | UH1_0(v105, v106, v107, v108, v109, v110, v111, v112, v113,    │

00:00:48 #7468 [Debug] > │ v114) -> (* StreamCons *)                                                    │

00:00:48 #7469 [Debug] > │                 let v115 : float = v100 * 2.5E-05                            │

00:00:48 #7470 [Debug] > │                 let v116 : float = v110 + v115                               │

00:00:48 #7471 [Debug] > │                 let v117 : float = 2.5E-05 * v97                             │

00:00:48 #7472 [Debug] > │                 let v118 : float = 2.5E-05 * v98                             │

00:00:48 #7473 [Debug] > │                 let v119 : float = 2.5E-05 * v99                             │

00:00:48 #7474 [Debug] > │                 let v120 : float = v107 + v117                               │

00:00:48 #7475 [Debug] > │                 let v121 : float = v108 + v118                               │

00:00:48 #7476 [Debug] > │                 let v122 : float = v109 + v119                               │

00:00:48 #7477 [Debug] > │                 let v123 : float = 2.5E-05 * v101                            │

00:00:48 #7478 [Debug] > │                 let v124 : float = 2.5E-05 * v102                            │

00:00:48 #7479 [Debug] > │                 let v125 : float = 2.5E-05 * v103                            │

00:00:48 #7480 [Debug] > │                 let v126 : float = v111 + v123                               │

00:00:48 #7481 [Debug] > │                 let v127 : float = v112 + v124                               │

00:00:48 #7482 [Debug] > │                 let v128 : float = v113 + v125                               │

00:00:48 #7483 [Debug] > │                 let v129 : (unit -> UH1) = closure135(v114, v104)            │

00:00:48 #7484 [Debug] > │                 UH1_0(v105, v106, v120, v121, v122, v116, v126, v127, v128,  │

00:00:48 #7485 [Debug] > │ v129)                                                                        │

00:00:48 #7486 [Debug] > │             | UH1_1 -> (* StreamNil *)                                       │

00:00:48 #7487 [Debug] > │                 UH1_1                                                        │

00:00:48 #7488 [Debug] > │         | UH3_1 -> (* StreamNil *)                                           │

00:00:48 #7489 [Debug] > │             UH1_1                                                            │

00:00:48 #7490 [Debug] > │     let v137 : (unit -> UH1) = closure133(v136)                              │

00:00:48 #7491 [Debug] > │     let v138 : (unit -> UH1) = method3(v136, v137)                           │

00:00:48 #7492 [Debug] > │     let v139 : UH1 = v138 ()                                                 │

00:00:48 #7493 [Debug] > │     let v140 : UH3 = v0 v139                                                 │

00:00:48 #7494 [Debug] > │     let v177 : UH3 =                                                         │

00:00:48 #7495 [Debug] > │         match v2 with                                                        │

00:00:48 #7496 [Debug] > │         | UH3_0(v141, v142, v143, v144, v145, v146, v147, v148, v149, v150)  │

00:00:48 #7497 [Debug] > │ -> (* StreamCons *)                                                          │

00:00:48 #7498 [Debug] > │             match v48 with                                                   │

00:00:48 #7499 [Debug] > │             | UH3_0(v151, v152, v153, v154, v155, v156, v157, v158, v159,    │

00:00:48 #7500 [Debug] > │ v160) -> (* StreamCons *)                                                    │

00:00:48 #7501 [Debug] > │                 let v161 : float = v141 + v151                               │

00:00:48 #7502 [Debug] > │                 let v162 : float = v142 + v152                               │

00:00:48 #7503 [Debug] > │                 let v163 : float = v146 + v156                               │

00:00:48 #7504 [Debug] > │                 let v164 : float = v143 + v153                               │

00:00:48 #7505 [Debug] > │                 let v165 : float = v144 + v154                               │

00:00:48 #7506 [Debug] > │                 let v166 : float = v145 + v155                               │

00:00:48 #7507 [Debug] > │                 let v167 : float = v147 + v157                               │

00:00:48 #7508 [Debug] > │                 let v168 : float = v148 + v158                               │

00:00:48 #7509 [Debug] > │                 let v169 : float = v149 + v159                               │

00:00:48 #7510 [Debug] > │                 let v170 : (unit -> UH3) = closure136(v160, v150)            │

00:00:48 #7511 [Debug] > │                 UH3_0(v161, v162, v164, v165, v166, v163, v167, v168, v169,  │

00:00:48 #7512 [Debug] > │ v170)                                                                        │

00:00:48 #7513 [Debug] > │             | UH3_1 -> (* StreamNil *)                                       │

00:00:48 #7514 [Debug] > │                 UH3_1                                                        │

00:00:48 #7515 [Debug] > │         | UH3_1 -> (* StreamNil *)                                           │

00:00:48 #7516 [Debug] > │             UH3_1                                                            │

00:00:48 #7517 [Debug] > │     let v214 : UH3 =                                                         │

00:00:48 #7518 [Debug] > │         match v177 with                                                      │

00:00:48 #7519 [Debug] > │         | UH3_0(v178, v179, v180, v181, v182, v183, v184, v185, v186, v187)  │

00:00:48 #7520 [Debug] > │ -> (* StreamCons *)                                                          │

00:00:48 #7521 [Debug] > │             match v48 with                                                   │

00:00:48 #7522 [Debug] > │             | UH3_0(v188, v189, v190, v191, v192, v193, v194, v195, v196,    │

00:00:48 #7523 [Debug] > │ v197) -> (* StreamCons *)                                                    │

00:00:48 #7524 [Debug] > │                 let v198 : float = v178 + v188                               │

00:00:48 #7525 [Debug] > │                 let v199 : float = v179 + v189                               │

00:00:48 #7526 [Debug] > │                 let v200 : float = v183 + v193                               │

00:00:48 #7527 [Debug] > │                 let v201 : float = v180 + v190                               │

00:00:48 #7528 [Debug] > │                 let v202 : float = v181 + v191                               │

00:00:48 #7529 [Debug] > │                 let v203 : float = v182 + v192                               │

00:00:48 #7530 [Debug] > │                 let v204 : float = v184 + v194                               │

00:00:48 #7531 [Debug] > │                 let v205 : float = v185 + v195                               │

00:00:48 #7532 [Debug] > │                 let v206 : float = v186 + v196                               │

00:00:48 #7533 [Debug] > │                 let v207 : (unit -> UH3) = closure136(v197, v187)            │

00:00:48 #7534 [Debug] > │                 UH3_0(v198, v199, v201, v202, v203, v200, v204, v205, v206,  │

00:00:48 #7535 [Debug] > │ v207)                                                                        │

00:00:48 #7536 [Debug] > │             | UH3_1 -> (* StreamNil *)                                       │

00:00:48 #7537 [Debug] > │                 UH3_1                                                        │

00:00:48 #7538 [Debug] > │         | UH3_1 -> (* StreamNil *)                                           │

00:00:48 #7539 [Debug] > │             UH3_1                                                            │

00:00:48 #7540 [Debug] > │     let v251 : UH3 =                                                         │

00:00:48 #7541 [Debug] > │         match v214 with                                                      │

00:00:48 #7542 [Debug] > │         | UH3_0(v215, v216, v217, v218, v219, v220, v221, v222, v223, v224)  │

00:00:48 #7543 [Debug] > │ -> (* StreamCons *)                                                          │

00:00:48 #7544 [Debug] > │             match v94 with                                                   │

00:00:48 #7545 [Debug] > │             | UH3_0(v225, v226, v227, v228, v229, v230, v231, v232, v233,    │

00:00:48 #7546 [Debug] > │ v234) -> (* StreamCons *)                                                    │

00:00:48 #7547 [Debug] > │                 let v235 : float = v215 + v225                               │

00:00:48 #7548 [Debug] > │                 let v236 : float = v216 + v226                               │

00:00:48 #7549 [Debug] > │                 let v237 : float = v220 + v230                               │

00:00:48 #7550 [Debug] > │                 let v238 : float = v217 + v227                               │

00:00:48 #7551 [Debug] > │                 let v239 : float = v218 + v228                               │

00:00:48 #7552 [Debug] > │                 let v240 : float = v219 + v229                               │

00:00:48 #7553 [Debug] > │                 let v241 : float = v221 + v231                               │

00:00:48 #7554 [Debug] > │                 let v242 : float = v222 + v232                               │

00:00:48 #7555 [Debug] > │                 let v243 : float = v223 + v233                               │

00:00:48 #7556 [Debug] > │                 let v244 : (unit -> UH3) = closure136(v234, v224)            │

00:00:48 #7557 [Debug] > │                 UH3_0(v235, v236, v238, v239, v240, v237, v241, v242, v243,  │

00:00:48 #7558 [Debug] > │ v244)                                                                        │

00:00:48 #7559 [Debug] > │             | UH3_1 -> (* StreamNil *)                                       │

00:00:48 #7560 [Debug] > │                 UH3_1                                                        │

00:00:48 #7561 [Debug] > │         | UH3_1 -> (* StreamNil *)                                           │

00:00:48 #7562 [Debug] > │             UH3_1                                                            │

00:00:48 #7563 [Debug] > │     let v288 : UH3 =                                                         │

00:00:48 #7564 [Debug] > │         match v251 with                                                      │

00:00:48 #7565 [Debug] > │         | UH3_0(v252, v253, v254, v255, v256, v257, v258, v259, v260, v261)  │

00:00:48 #7566 [Debug] > │ -> (* StreamCons *)                                                          │

00:00:48 #7567 [Debug] > │             match v94 with                                                   │

00:00:48 #7568 [Debug] > │             | UH3_0(v262, v263, v264, v265, v266, v267, v268, v269, v270,    │

00:00:48 #7569 [Debug] > │ v271) -> (* StreamCons *)                                                    │

00:00:48 #7570 [Debug] > │                 let v272 : float = v252 + v262                               │

00:00:48 #7571 [Debug] > │                 let v273 : float = v253 + v263                               │

00:00:48 #7572 [Debug] > │                 let v274 : float = v257 + v267                               │

00:00:48 #7573 [Debug] > │                 let v275 : float = v254 + v264                               │

00:00:48 #7574 [Debug] > │                 let v276 : float = v255 + v265                               │

00:00:48 #7575 [Debug] > │                 let v277 : float = v256 + v266                               │

00:00:48 #7576 [Debug] > │                 let v278 : float = v258 + v268                               │

00:00:48 #7577 [Debug] > │                 let v279 : float = v259 + v269                               │

00:00:48 #7578 [Debug] > │                 let v280 : float = v260 + v270                               │

00:00:48 #7579 [Debug] > │                 let v281 : (unit -> UH3) = closure136(v271, v261)            │

00:00:48 #7580 [Debug] > │                 UH3_0(v272, v273, v275, v276, v277, v274, v278, v279, v280,  │

00:00:48 #7581 [Debug] > │ v281)                                                                        │

00:00:48 #7582 [Debug] > │             | UH3_1 -> (* StreamNil *)                                       │

00:00:48 #7583 [Debug] > │                 UH3_1                                                        │

00:00:48 #7584 [Debug] > │         | UH3_1 -> (* StreamNil *)                                           │

00:00:48 #7585 [Debug] > │             UH3_1                                                            │

00:00:48 #7586 [Debug] > │     let v325 : UH3 =                                                         │

00:00:48 #7587 [Debug] > │         match v288 with                                                      │

00:00:48 #7588 [Debug] > │         | UH3_0(v289, v290, v291, v292, v293, v294, v295, v296, v297, v298)  │

00:00:48 #7589 [Debug] > │ -> (* StreamCons *)                                                          │

00:00:48 #7590 [Debug] > │             match v140 with                                                  │

00:00:48 #7591 [Debug] > │             | UH3_0(v299, v300, v301, v302, v303, v304, v305, v306, v307,    │

00:00:48 #7592 [Debug] > │ v308) -> (* StreamCons *)                                                    │

00:00:48 #7593 [Debug] > │                 let v309 : float = v289 + v299                               │

00:00:48 #7594 [Debug] > │                 let v310 : float = v290 + v300                               │

00:00:48 #7595 [Debug] > │                 let v311 : float = v294 + v304                               │

00:00:48 #7596 [Debug] > │                 let v312 : float = v291 + v301                               │

00:00:48 #7597 [Debug] > │                 let v313 : float = v292 + v302                               │

00:00:48 #7598 [Debug] > │                 let v314 : float = v293 + v303                               │

00:00:48 #7599 [Debug] > │                 let v315 : float = v295 + v305                               │

00:00:48 #7600 [Debug] > │                 let v316 : float = v296 + v306                               │

00:00:48 #7601 [Debug] > │                 let v317 : float = v297 + v307                               │

00:00:48 #7602 [Debug] > │                 let v318 : (unit -> UH3) = closure136(v308, v298)            │

00:00:48 #7603 [Debug] > │                 UH3_0(v309, v310, v312, v313, v314, v311, v315, v316, v317,  │

00:00:48 #7604 [Debug] > │ v318)                                                                        │

00:00:48 #7605 [Debug] > │             | UH3_1 -> (* StreamNil *)                                       │

00:00:48 #7606 [Debug] > │                 UH3_1                                                        │

00:00:48 #7607 [Debug] > │         | UH3_1 -> (* StreamNil *)                                           │

00:00:48 #7608 [Debug] > │             UH3_1                                                            │

00:00:48 #7609 [Debug] > │     let v367 : UH1 =                                                         │

00:00:48 #7610 [Debug] > │         match v325 with                                                      │

00:00:48 #7611 [Debug] > │         | UH3_0(v326, v327, v328, v329, v330, v331, v332, v333, v334, v335)  │

00:00:48 #7612 [Debug] > │ -> (* StreamCons *)                                                          │

00:00:48 #7613 [Debug] > │             match v1 with                                                    │

00:00:48 #7614 [Debug] > │             | UH1_0(v336, v337, v338, v339, v340, v341, v342, v343, v344,    │

00:00:48 #7615 [Debug] > │ v345) -> (* StreamCons *)                                                    │

00:00:48 #7616 [Debug] > │                 let v346 : float = v331 * 4.166666666666667E-06              │

00:00:48 #7617 [Debug] > │                 let v347 : float = v341 + v346                               │

00:00:48 #7618 [Debug] > │                 let v348 : float = 4.166666666666667E-06 * v328              │

00:00:48 #7619 [Debug] > │                 let v349 : float = 4.166666666666667E-06 * v329              │

00:00:48 #7620 [Debug] > │                 let v350 : float = 4.166666666666667E-06 * v330              │

00:00:48 #7621 [Debug] > │                 let v351 : float = v338 + v348                               │

00:00:48 #7622 [Debug] > │                 let v352 : float = v339 + v349                               │

00:00:48 #7623 [Debug] > │                 let v353 : float = v340 + v350                               │

00:00:48 #7624 [Debug] > │                 let v354 : float = 4.166666666666667E-06 * v332              │

00:00:48 #7625 [Debug] > │                 let v355 : float = 4.166666666666667E-06 * v333              │

00:00:48 #7626 [Debug] > │                 let v356 : float = 4.166666666666667E-06 * v334              │

00:00:48 #7627 [Debug] > │                 let v357 : float = v342 + v354                               │

00:00:48 #7628 [Debug] > │                 let v358 : float = v343 + v355                               │

00:00:48 #7629 [Debug] > │                 let v359 : float = v344 + v356                               │

00:00:48 #7630 [Debug] > │                 let v360 : (unit -> UH1) = closure137(v345, v335)            │

00:00:48 #7631 [Debug] > │                 UH1_0(v336, v337, v351, v352, v353, v347, v357, v358, v359,  │

00:00:48 #7632 [Debug] > │ v360)                                                                        │

00:00:48 #7633 [Debug] > │             | UH1_1 -> (* StreamNil *)                                       │

00:00:48 #7634 [Debug] > │                 UH1_1                                                        │

00:00:48 #7635 [Debug] > │         | UH3_1 -> (* StreamNil *)                                           │

00:00:48 #7636 [Debug] > │             UH1_1                                                            │

00:00:48 #7637 [Debug] > │     let v368 : (unit -> UH1) = closure133(v367)                              │

00:00:48 #7638 [Debug] > │     let v369 : (unit -> UH1) = method3(v367, v368)                           │

00:00:48 #7639 [Debug] > │     let v370 : UH1 = v369 ()                                                 │

00:00:48 #7640 [Debug] > │     v370                                                                     │

00:00:48 #7641 [Debug] > │ and closure130 () (v0 : (UH1 -> UH3)) : (UH1 -> UH1) =                       │

00:00:48 #7642 [Debug] > │     closure131(v0)                                                           │

00:00:48 #7643 [Debug] > │ and method2 () : ((UH1 -> UH3) -> (UH1 -> UH1)) =                            │

00:00:48 #7644 [Debug] > │     closure130()                                                             │

00:00:48 #7645 [Debug] > │ and closure138 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 │

00:00:48 #7646 [Debug] > │ : float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float *   │

00:00:48 #7647 [Debug] > │ float * float) =                                                             │

00:00:48 #7648 [Debug] > │     let v9 : float = v2 * v2                                                 │

00:00:48 #7649 [Debug] > │     let v10 : float = v3 * v3                                                │

00:00:48 #7650 [Debug] > │     let v11 : float = v9 + v10                                               │

00:00:48 #7651 [Debug] > │     let v12 : float = v4 * v4                                                │

00:00:48 #7652 [Debug] > │     let v13 : float = v11 + v12                                              │

00:00:48 #7653 [Debug] > │     let v14 : float = sqrt v13                                               │

00:00:48 #7654 [Debug] > │     let v15 : float = -5384.0 * v14                                          │

00:00:48 #7655 [Debug] > │     let v16 : float = v15 * v2                                               │

00:00:48 #7656 [Debug] > │     let v17 : float = v15 * v3                                               │

00:00:48 #7657 [Debug] > │     let v18 : float = v15 * v4                                               │

00:00:48 #7658 [Debug] > │     let v19 : float = v16 / v14                                              │

00:00:48 #7659 [Debug] > │     let v20 : float = v17 / v14                                              │

00:00:48 #7660 [Debug] > │     let v21 : float = v18 / v14                                              │

00:00:48 #7661 [Debug] > │     struct (v19, v20, v21)                                                   │

00:00:48 #7662 [Debug] > │ and closure139 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 │

00:00:48 #7663 [Debug] > │ : float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float *   │

00:00:48 #7664 [Debug] > │ float * float) =                                                             │

00:00:48 #7665 [Debug] > │     let v9 : float = v2 + -0.65                                              │

00:00:48 #7666 [Debug] > │     let v10 : float = v9 * v9                                                │

00:00:48 #7667 [Debug] > │     let v11 : float = v3 * v3                                                │

00:00:48 #7668 [Debug] > │     let v12 : float = v10 + v11                                              │

00:00:48 #7669 [Debug] > │     let v13 : float = v4 * v4                                                │

00:00:48 #7670 [Debug] > │     let v14 : float = v12 + v13                                              │

00:00:48 #7671 [Debug] > │     let v15 : float = sqrt v14                                               │

00:00:48 #7672 [Debug] > │     let v16 : float = -5384.0 * v15                                          │

00:00:48 #7673 [Debug] > │     let v17 : float = v16 * v9                                               │

00:00:48 #7674 [Debug] > │     let v18 : float = v16 * v3                                               │

00:00:48 #7675 [Debug] > │     let v19 : float = v16 * v4                                               │

00:00:48 #7676 [Debug] > │     let v20 : float = v17 / v15                                              │

00:00:48 #7677 [Debug] > │     let v21 : float = v18 / v15                                              │

00:00:48 #7678 [Debug] > │     let v22 : float = v19 / v15                                              │

00:00:48 #7679 [Debug] > │     struct (v20, v21, v22)                                                   │

00:00:48 #7680 [Debug] > │ and closure141 (v0 : float, v1 : float, v2 : float, v3 : float, v4 : float,  │

00:00:48 #7681 [Debug] > │ v5 : float, v6 : float, v7 : float, v8 : float) struct (v9 : float, v10 :    │

00:00:48 #7682 [Debug] > │ float, v11 : float, v12 : float, v13 : float, v14 : float, v15 : float, v16  │

00:00:48 #7683 [Debug] > │ : float, v17 : float) : struct (float * float * float) =                     │

00:00:48 #7684 [Debug] > │     let v18 : float = -1.0 * v2                                              │

00:00:48 #7685 [Debug] > │     let v19 : float = -1.0 * v3                                              │

00:00:48 #7686 [Debug] > │     let v20 : float = -1.0 * v4                                              │

00:00:48 #7687 [Debug] > │     let v21 : float = v11 + v18                                              │

00:00:48 #7688 [Debug] > │     let v22 : float = v12 + v19                                              │

00:00:48 #7689 [Debug] > │     let v23 : float = v13 + v20                                              │

00:00:48 #7690 [Debug] > │     let v24 : float = v21 * v21                                              │

00:00:48 #7691 [Debug] > │     let v25 : float = v22 * v22                                              │

00:00:48 #7692 [Debug] > │     let v26 : float = v24 + v25                                              │

00:00:48 #7693 [Debug] > │     let v27 : float = v23 * v23                                              │

00:00:48 #7694 [Debug] > │     let v28 : float = v26 + v27                                              │

00:00:48 #7695 [Debug] > │     let v29 : float = sqrt v28                                               │

00:00:48 #7696 [Debug] > │     let v30 : float = -5384.0 * v29                                          │

00:00:48 #7697 [Debug] > │     let v31 : float = v30 * v21                                              │

00:00:48 #7698 [Debug] > │     let v32 : float = v30 * v22                                              │

00:00:48 #7699 [Debug] > │     let v33 : float = v30 * v23                                              │

00:00:48 #7700 [Debug] > │     let v34 : float = v31 / v29                                              │

00:00:48 #7701 [Debug] > │     let v35 : float = v32 / v29                                              │

00:00:48 #7702 [Debug] > │     let v36 : float = v33 / v29                                              │

00:00:48 #7703 [Debug] > │     struct (v34, v35, v36)                                                   │

00:00:48 #7704 [Debug] > │ and closure140 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 │

00:00:48 #7705 [Debug] > │ : float, v5 : float, v6 : float, v7 : float, v8 : float) : (struct (float *  │

00:00:48 #7706 [Debug] > │ float * float * float * float * float * float * float * float) -> struct     │

00:00:48 #7707 [Debug] > │ (float * float * float)) =                                                   │

00:00:48 #7708 [Debug] > │     closure141(v0, v1, v2, v3, v4, v5, v6, v7, v8)                           │

00:00:48 #7709 [Debug] > │ and method4 () : UH4 =                                                       │

00:00:48 #7710 [Debug] > │     let v0 : (struct (float * float * float * float * float * float * float  │

00:00:48 #7711 [Debug] > │ * float * float) -> struct (float * float * float)) = closure138()           │

00:00:48 #7712 [Debug] > │     let v1 : US1 = US1_0(0, v0)                                              │

00:00:48 #7713 [Debug] > │     let v2 : (struct (float * float * float * float * float * float * float  │

00:00:48 #7714 [Debug] > │ * float * float) -> struct (float * float * float)) = closure139()           │

00:00:48 #7715 [Debug] > │     let v3 : US1 = US1_0(63, v2)                                             │

00:00:48 #7716 [Debug] > │     let v4 : (struct (float * float * float * float * float * float * float  │

00:00:48 #7717 [Debug] > │ * float * float) -> (struct (float * float * float * float * float * float * │

00:00:48 #7718 [Debug] > │ float * float * float) -> struct (float * float * float))) = closure140()    │

00:00:48 #7719 [Debug] > │     let v5 : US1 = US1_1(0, 1, v4)                                           │

00:00:48 #7720 [Debug] > │     let v6 : US1 = US1_1(1, 2, v4)                                           │

00:00:48 #7721 [Debug] > │     let v7 : US1 = US1_1(2, 3, v4)                                           │

00:00:48 #7722 [Debug] > │     let v8 : US1 = US1_1(3, 4, v4)                                           │

00:00:48 #7723 [Debug] > │     let v9 : US1 = US1_1(4, 5, v4)                                           │

00:00:48 #7724 [Debug] > │     let v10 : US1 = US1_1(5, 6, v4)                                          │

00:00:48 #7725 [Debug] > │     let v11 : US1 = US1_1(6, 7, v4)                                          │

00:00:48 #7726 [Debug] > │     let v12 : US1 = US1_1(7, 8, v4)                                          │

00:00:48 #7727 [Debug] > │     let v13 : US1 = US1_1(8, 9, v4)                                          │

00:00:48 #7728 [Debug] > │     let v14 : US1 = US1_1(9, 10, v4)                                         │

00:00:48 #7729 [Debug] > │     let v15 : US1 = US1_1(10, 11, v4)                                        │

00:00:48 #7730 [Debug] > │     let v16 : US1 = US1_1(11, 12, v4)                                        │

00:00:48 #7731 [Debug] > │     let v17 : US1 = US1_1(12, 13, v4)                                        │

00:00:48 #7732 [Debug] > │     let v18 : US1 = US1_1(13, 14, v4)                                        │

00:00:48 #7733 [Debug] > │     let v19 : US1 = US1_1(14, 15, v4)                                        │

00:00:48 #7734 [Debug] > │     let v20 : US1 = US1_1(15, 16, v4)                                        │

00:00:48 #7735 [Debug] > │     let v21 : US1 = US1_1(16, 17, v4)                                        │

00:00:48 #7736 [Debug] > │     let v22 : US1 = US1_1(17, 18, v4)                                        │

00:00:48 #7737 [Debug] > │     let v23 : US1 = US1_1(18, 19, v4)                                        │

00:00:48 #7738 [Debug] > │     let v24 : US1 = US1_1(19, 20, v4)                                        │

00:00:48 #7739 [Debug] > │     let v25 : US1 = US1_1(20, 21, v4)                                        │

00:00:48 #7740 [Debug] > │     let v26 : US1 = US1_1(21, 22, v4)                                        │

00:00:48 #7741 [Debug] > │     let v27 : US1 = US1_1(22, 23, v4)                                        │

00:00:48 #7742 [Debug] > │     let v28 : US1 = US1_1(23, 24, v4)                                        │

00:00:48 #7743 [Debug] > │     let v29 : US1 = US1_1(24, 25, v4)                                        │

00:00:48 #7744 [Debug] > │     let v30 : US1 = US1_1(25, 26, v4)                                        │

00:00:48 #7745 [Debug] > │     let v31 : US1 = US1_1(26, 27, v4)                                        │

00:00:48 #7746 [Debug] > │     let v32 : US1 = US1_1(27, 28, v4)                                        │

00:00:48 #7747 [Debug] > │     let v33 : US1 = US1_1(28, 29, v4)                                        │

00:00:48 #7748 [Debug] > │     let v34 : US1 = US1_1(29, 30, v4)                                        │

00:00:48 #7749 [Debug] > │     let v35 : US1 = US1_1(30, 31, v4)                                        │

00:00:48 #7750 [Debug] > │     let v36 : US1 = US1_1(31, 32, v4)                                        │

00:00:48 #7751 [Debug] > │     let v37 : US1 = US1_1(32, 33, v4)                                        │

00:00:48 #7752 [Debug] > │     let v38 : US1 = US1_1(33, 34, v4)                                        │

00:00:48 #7753 [Debug] > │     let v39 : US1 = US1_1(34, 35, v4)                                        │

00:00:48 #7754 [Debug] > │     let v40 : US1 = US1_1(35, 36, v4)                                        │

00:00:48 #7755 [Debug] > │     let v41 : US1 = US1_1(36, 37, v4)                                        │

00:00:48 #7756 [Debug] > │     let v42 : US1 = US1_1(37, 38, v4)                                        │

00:00:48 #7757 [Debug] > │     let v43 : US1 = US1_1(38, 39, v4)                                        │

00:00:48 #7758 [Debug] > │     let v44 : US1 = US1_1(39, 40, v4)                                        │

00:00:48 #7759 [Debug] > │     let v45 : US1 = US1_1(40, 41, v4)                                        │

00:00:48 #7760 [Debug] > │     let v46 : US1 = US1_1(41, 42, v4)                                        │

00:00:48 #7761 [Debug] > │     let v47 : US1 = US1_1(42, 43, v4)                                        │

00:00:48 #7762 [Debug] > │     let v48 : US1 = US1_1(43, 44, v4)                                        │

00:00:48 #7763 [Debug] > │     let v49 : US1 = US1_1(44, 45, v4)                                        │

00:00:48 #7764 [Debug] > │     let v50 : US1 = US1_1(45, 46, v4)                                        │

00:00:48 #7765 [Debug] > │     let v51 : US1 = US1_1(46, 47, v4)                                        │

00:00:48 #7766 [Debug] > │     let v52 : US1 = US1_1(47, 48, v4)                                        │

00:00:48 #7767 [Debug] > │     let v53 : US1 = US1_1(48, 49, v4)                                        │

00:00:48 #7768 [Debug] > │     let v54 : US1 = US1_1(49, 50, v4)                                        │

00:00:48 #7769 [Debug] > │     let v55 : US1 = US1_1(50, 51, v4)                                        │

00:00:48 #7770 [Debug] > │     let v56 : US1 = US1_1(51, 52, v4)                                        │

00:00:48 #7771 [Debug] > │     let v57 : US1 = US1_1(52, 53, v4)                                        │

00:00:48 #7772 [Debug] > │     let v58 : US1 = US1_1(53, 54, v4)                                        │

00:00:48 #7773 [Debug] > │     let v59 : US1 = US1_1(54, 55, v4)                                        │

00:00:48 #7774 [Debug] > │     let v60 : US1 = US1_1(55, 56, v4)                                        │

00:00:48 #7775 [Debug] > │     let v61 : US1 = US1_1(56, 57, v4)                                        │

00:00:48 #7776 [Debug] > │     let v62 : US1 = US1_1(57, 58, v4)                                        │

00:00:48 #7777 [Debug] > │     let v63 : US1 = US1_1(58, 59, v4)                                        │

00:00:48 #7778 [Debug] > │     let v64 : US1 = US1_1(59, 60, v4)                                        │

00:00:48 #7779 [Debug] > │     let v65 : UH4 = UH4_1                                                    │

00:00:48 #7780 [Debug] > │     let v66 : UH4 = UH4_0(v64, v65)                                          │

00:00:48 #7781 [Debug] > │     let v67 : UH4 = UH4_0(v63, v66)                                          │

00:00:48 #7782 [Debug] > │     let v68 : UH4 = UH4_0(v62, v67)                                          │

00:00:48 #7783 [Debug] > │     let v69 : UH4 = UH4_0(v61, v68)                                          │

00:00:48 #7784 [Debug] > │     let v70 : UH4 = UH4_0(v60, v69)                                          │

00:00:48 #7785 [Debug] > │     let v71 : UH4 = UH4_0(v59, v70)                                          │

00:00:48 #7786 [Debug] > │     let v72 : UH4 = UH4_0(v58, v71)                                          │

00:00:48 #7787 [Debug] > │     let v73 : UH4 = UH4_0(v57, v72)                                          │

00:00:48 #7788 [Debug] > │     let v74 : UH4 = UH4_0(v56, v73)                                          │

00:00:48 #7789 [Debug] > │     let v75 : UH4 = UH4_0(v55, v74)                                          │

00:00:48 #7790 [Debug] > │     let v76 : UH4 = UH4_0(v54, v75)                                          │

00:00:48 #7791 [Debug] > │     let v77 : UH4 = UH4_0(v53, v76)                                          │

00:00:48 #7792 [Debug] > │     let v78 : UH4 = UH4_0(v52, v77)                                          │

00:00:48 #7793 [Debug] > │     let v79 : UH4 = UH4_0(v51, v78)                                          │

00:00:48 #7794 [Debug] > │     let v80 : UH4 = UH4_0(v50, v79)                                          │

00:00:48 #7795 [Debug] > │     let v81 : UH4 = UH4_0(v49, v80)                                          │

00:00:48 #7796 [Debug] > │     let v82 : UH4 = UH4_0(v48, v81)                                          │

00:00:48 #7797 [Debug] > │     let v83 : UH4 = UH4_0(v47, v82)                                          │

00:00:48 #7798 [Debug] > │     let v84 : UH4 = UH4_0(v46, v83)                                          │

00:00:48 #7799 [Debug] > │     let v85 : UH4 = UH4_0(v45, v84)                                          │

00:00:48 #7800 [Debug] > │     let v86 : UH4 = UH4_0(v44, v85)                                          │

00:00:48 #7801 [Debug] > │     let v87 : UH4 = UH4_0(v43, v86)                                          │

00:00:48 #7802 [Debug] > │     let v88 : UH4 = UH4_0(v42, v87)                                          │

00:00:48 #7803 [Debug] > │     let v89 : UH4 = UH4_0(v41, v88)                                          │

00:00:48 #7804 [Debug] > │     let v90 : UH4 = UH4_0(v40, v89)                                          │

00:00:48 #7805 [Debug] > │     let v91 : UH4 = UH4_0(v39, v90)                                          │

00:00:48 #7806 [Debug] > │     let v92 : UH4 = UH4_0(v38, v91)                                          │

00:00:48 #7807 [Debug] > │     let v93 : UH4 = UH4_0(v37, v92)                                          │

00:00:48 #7808 [Debug] > │     let v94 : UH4 = UH4_0(v36, v93)                                          │

00:00:48 #7809 [Debug] > │     let v95 : UH4 = UH4_0(v35, v94)                                          │

00:00:48 #7810 [Debug] > │     let v96 : UH4 = UH4_0(v34, v95)                                          │

00:00:48 #7811 [Debug] > │     let v97 : UH4 = UH4_0(v33, v96)                                          │

00:00:48 #7812 [Debug] > │     let v98 : UH4 = UH4_0(v32, v97)                                          │

00:00:48 #7813 [Debug] > │     let v99 : UH4 = UH4_0(v31, v98)                                          │

00:00:48 #7814 [Debug] > │     let v100 : UH4 = UH4_0(v30, v99)                                         │

00:00:48 #7815 [Debug] > │     let v101 : UH4 = UH4_0(v29, v100)                                        │

00:00:48 #7816 [Debug] > │     let v102 : UH4 = UH4_0(v28, v101)                                        │

00:00:48 #7817 [Debug] > │     let v103 : UH4 = UH4_0(v27, v102)                                        │

00:00:48 #7818 [Debug] > │     let v104 : UH4 = UH4_0(v26, v103)                                        │

00:00:48 #7819 [Debug] > │     let v105 : UH4 = UH4_0(v25, v104)                                        │

00:00:48 #7820 [Debug] > │     let v106 : UH4 = UH4_0(v24, v105)                                        │

00:00:48 #7821 [Debug] > │     let v107 : UH4 = UH4_0(v23, v106)                                        │

00:00:48 #7822 [Debug] > │     let v108 : UH4 = UH4_0(v22, v107)                                        │

00:00:48 #7823 [Debug] > │     let v109 : UH4 = UH4_0(v21, v108)                                        │

00:00:48 #7824 [Debug] > │     let v110 : UH4 = UH4_0(v20, v109)                                        │

00:00:48 #7825 [Debug] > │     let v111 : UH4 = UH4_0(v19, v110)                                        │

00:00:48 #7826 [Debug] > │     let v112 : UH4 = UH4_0(v18, v111)                                        │

00:00:48 #7827 [Debug] > │     let v113 : UH4 = UH4_0(v17, v112)                                        │

00:00:48 #7828 [Debug] > │     let v114 : UH4 = UH4_0(v16, v113)                                        │

00:00:48 #7829 [Debug] > │     let v115 : UH4 = UH4_0(v15, v114)                                        │

00:00:48 #7830 [Debug] > │     let v116 : UH4 = UH4_0(v14, v115)                                        │

00:00:48 #7831 [Debug] > │     let v117 : UH4 = UH4_0(v13, v116)                                        │

00:00:48 #7832 [Debug] > │     let v118 : UH4 = UH4_0(v12, v117)                                        │

00:00:48 #7833 [Debug] > │     let v119 : UH4 = UH4_0(v11, v118)                                        │

00:00:48 #7834 [Debug] > │     let v120 : UH4 = UH4_0(v10, v119)                                        │

00:00:48 #7835 [Debug] > │     let v121 : UH4 = UH4_0(v9, v120)                                         │

00:00:48 #7836 [Debug] > │     let v122 : UH4 = UH4_0(v8, v121)                                         │

00:00:48 #7837 [Debug] > │     let v123 : UH4 = UH4_0(v7, v122)                                         │

00:00:48 #7838 [Debug] > │     let v124 : UH4 = UH4_0(v6, v123)                                         │

00:00:48 #7839 [Debug] > │     let v125 : UH4 = UH4_0(v5, v124)                                         │

00:00:48 #7840 [Debug] > │     let v126 : UH4 = UH4_0(v3, v125)                                         │

00:00:48 #7841 [Debug] > │     UH4_0(v1, v126)                                                          │

00:00:48 #7842 [Debug] > │ and closure143 (v0 : UH5) () : UH5 =                                         │

00:00:48 #7843 [Debug] > │     v0                                                                       │

00:00:48 #7844 [Debug] > │ and method5 (v0 : UH1, v1 : UH5, v2 : int32) : struct (UH5 * int32) =        │

00:00:48 #7845 [Debug] > │     match v0 with                                                            │

00:00:48 #7846 [Debug] > │     | UH1_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* StreamCons *)   │

00:00:48 #7847 [Debug] > │         let v13 : int32 = v2 + 1                                             │

00:00:48 #7848 [Debug] > │         let v14 : UH1 = v12 ()                                               │

00:00:48 #7849 [Debug] > │         let v15 : (unit -> UH5) = closure143(v1)                             │

00:00:48 #7850 [Debug] > │         let v16 : UH5 = UH5_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v15) │

00:00:48 #7851 [Debug] > │         method5(v14, v16, v13)                                               │

00:00:48 #7852 [Debug] > │     | UH1_1 -> (* StreamNil *)                                               │

00:00:48 #7853 [Debug] > │         struct (v1, v2)                                                      │

00:00:48 #7854 [Debug] > │ and closure144 (v0 : UH5) () : UH5 =                                         │

00:00:48 #7855 [Debug] > │     v0                                                                       │

00:00:48 #7856 [Debug] > │ and method6 (v0 : UH5, v1 : UH5) : UH5 =                                     │

00:00:48 #7857 [Debug] > │     match v0 with                                                            │

00:00:48 #7858 [Debug] > │     | UH5_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* StreamCons  │

00:00:48 #7859 [Debug] > │ *)                                                                           │

00:00:48 #7860 [Debug] > │         let v13 : UH5 = v12 ()                                               │

00:00:48 #7861 [Debug] > │         let v14 : (unit -> UH5) = closure144(v1)                             │

00:00:48 #7862 [Debug] > │         let v15 : UH5 = UH5_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v14) │

00:00:48 #7863 [Debug] > │         method6(v13, v15)                                                    │

00:00:48 #7864 [Debug] > │     | UH5_1 -> (* StreamNil *)                                               │

00:00:48 #7865 [Debug] > │         v1                                                                   │

00:00:48 #7866 [Debug] > │ and closure145 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 │

00:00:48 #7867 [Debug] > │ : float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float *   │

00:00:48 #7868 [Debug] > │ float * float) =                                                             │

00:00:48 #7869 [Debug] > │     struct (0.0, 0.0, 0.0)                                                   │

00:00:48 #7870 [Debug] > │ and method9 (v0 : int32, v1 : UH1) : US3 =                                   │

00:00:48 #7871 [Debug] > │     match v1 with                                                            │

00:00:48 #7872 [Debug] > │     | UH1_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* StreamCons *)    │

00:00:48 #7873 [Debug] > │         let v12 : bool = v0 <= 0                                             │

00:00:48 #7874 [Debug] > │         if v12 then                                                          │

00:00:48 #7875 [Debug] > │             US3_1(v2, v3, v4, v5, v6, v7, v8, v9, v10)                       │

00:00:48 #7876 [Debug] > │         else                                                                 │

00:00:48 #7877 [Debug] > │             let v14 : int32 = v0 - 1                                         │

00:00:48 #7878 [Debug] > │             let v15 : UH1 = v11 ()                                           │

00:00:48 #7879 [Debug] > │             method9(v14, v15)                                                │

00:00:48 #7880 [Debug] > │     | UH1_1 -> (* StreamNil *)                                               │

00:00:48 #7881 [Debug] > │         US3_0                                                                │

00:00:48 #7882 [Debug] > │ and closure146 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 │

00:00:48 #7883 [Debug] > │ : float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float *   │

00:00:48 #7884 [Debug] > │ float * float) =                                                             │

00:00:48 #7885 [Debug] > │     struct (0.0, 0.0, 0.0)                                                   │

00:00:48 #7886 [Debug] > │ and method8 (v0 : int32, v1 : UH1, v2 : UH4, v3 : UH6) : UH6 =               │

00:00:48 #7887 [Debug] > │     match v2 with                                                            │

00:00:48 #7888 [Debug] > │     | UH4_0(v4, v5) -> (* Cons *)                                            │

00:00:48 #7889 [Debug] > │         let v6 : UH6 = method8(v0, v1, v5, v3)                               │

00:00:48 #7890 [Debug] > │         let v55 : (struct (float * float * float * float * float * float *   │

00:00:48 #7891 [Debug] > │ float * float * float) -> struct (float * float * float)) =                  │

00:00:48 #7892 [Debug] > │             match v4 with                                                    │

00:00:48 #7893 [Debug] > │             | US1_0(v7, v8) -> (* ExternalForce *)                           │

00:00:48 #7894 [Debug] > │                 let v9 : bool = v0 = v7                                      │

00:00:48 #7895 [Debug] > │                 if v9 then                                                   │

00:00:48 #7896 [Debug] > │                     v8                                                       │

00:00:48 #7897 [Debug] > │                 else                                                         │

00:00:48 #7898 [Debug] > │                     closure145()                                             │

00:00:48 #7899 [Debug] > │             | US1_1(v12, v13, v14) -> (* InternalForce *)                    │

00:00:48 #7900 [Debug] > │                 let v15 : bool = v0 = v12                                    │

00:00:48 #7901 [Debug] > │                 let v49 : US2 =                                              │

00:00:48 #7902 [Debug] > │                     if v15 then                                              │

00:00:48 #7903 [Debug] > │                         let v16 : US3 = method9(v13, v1)                     │

00:00:48 #7904 [Debug] > │                         match v16 with                                       │

00:00:48 #7905 [Debug] > │                         | US3_0 -> (* None *)                                │

00:00:48 #7906 [Debug] > │                             US2_0                                            │

00:00:48 #7907 [Debug] > │                         | US3_1(v17, v18, v19, v20, v21, v22, v23, v24, v25) │

00:00:48 #7908 [Debug] > │ -> (* Some *)                                                                │

00:00:48 #7909 [Debug] > │                             let v26 : (struct (float * float * float * float │

00:00:48 #7910 [Debug] > │ * float * float * float * float * float) -> struct (float * float * float))  │

00:00:48 #7911 [Debug] > │ = v14 struct (v17, v18, v19, v20, v21, v22, v23, v24, v25)                   │

00:00:48 #7912 [Debug] > │                             US2_1(v26)                                       │

00:00:48 #7913 [Debug] > │                     else                                                     │

00:00:48 #7914 [Debug] > │                         let v31 : bool = v0 = v13                            │

00:00:48 #7915 [Debug] > │                         if v31 then                                          │

00:00:48 #7916 [Debug] > │                             let v32 : US3 = method9(v12, v1)                 │

00:00:48 #7917 [Debug] > │                             match v32 with                                   │

00:00:48 #7918 [Debug] > │                             | US3_0 -> (* None *)                            │

00:00:48 #7919 [Debug] > │                                 US2_0                                        │

00:00:48 #7920 [Debug] > │                             | US3_1(v33, v34, v35, v36, v37, v38, v39, v40,  │

00:00:48 #7921 [Debug] > │ v41) -> (* Some *)                                                           │

00:00:48 #7922 [Debug] > │                                 let v42 : (struct (float * float * float *   │

00:00:48 #7923 [Debug] > │ float * float * float * float * float * float) -> struct (float * float *    │

00:00:48 #7924 [Debug] > │ float)) = v14 struct (v33, v34, v35, v36, v37, v38, v39, v40, v41)           │

00:00:48 #7925 [Debug] > │                                 US2_1(v42)                                   │

00:00:48 #7926 [Debug] > │                         else                                                 │

00:00:48 #7927 [Debug] > │                             US2_0                                            │

00:00:48 #7928 [Debug] > │                 match v49 with                                               │

00:00:48 #7929 [Debug] > │                 | US2_0 -> (* None *)                                        │

00:00:48 #7930 [Debug] > │                     closure146()                                             │

00:00:48 #7931 [Debug] > │                 | US2_1(v50) -> (* Some *)                                   │

00:00:48 #7932 [Debug] > │                     v50                                                      │

00:00:48 #7933 [Debug] > │         UH6_0(v55, v6)                                                       │

00:00:48 #7934 [Debug] > │     | UH4_1 -> (* Nil *)                                                     │

00:00:48 #7935 [Debug] > │         v3                                                                   │

00:00:48 #7936 [Debug] > │ and method10 (v0 : float, v1 : float, v2 : float, v3 : float, v4 : float, v5 │

00:00:48 #7937 [Debug] > │ : float, v6 : float, v7 : float, v8 : float, v9 : UH6, v10 : UH7) : UH7 =    │

00:00:48 #7938 [Debug] > │     match v9 with                                                            │

00:00:48 #7939 [Debug] > │     | UH6_0(v11, v12) -> (* Cons *)                                          │

00:00:48 #7940 [Debug] > │         let v13 : UH7 = method10(v0, v1, v2, v3, v4, v5, v6, v7, v8, v12,    │

00:00:48 #7941 [Debug] > │ v10)                                                                         │

00:00:48 #7942 [Debug] > │         let struct (v14 : float, v15 : float, v16 : float) = v11 struct (v0, │

00:00:48 #7943 [Debug] > │ v1, v2, v3, v4, v5, v6, v7, v8)                                              │

00:00:48 #7944 [Debug] > │         UH7_0(v14, v15, v16, v13)                                            │

00:00:48 #7945 [Debug] > │     | UH6_1 -> (* Nil *)                                                     │

00:00:48 #7946 [Debug] > │         v10                                                                  │

00:00:48 #7947 [Debug] > │ and method11 (v0 : UH7, v1 : float, v2 : float, v3 : float) : struct (float  │

00:00:48 #7948 [Debug] > │ * float * float) =                                                           │

00:00:48 #7949 [Debug] > │     match v0 with                                                            │

00:00:48 #7950 [Debug] > │     | UH7_0(v4, v5, v6, v7) -> (* Cons *)                                    │

00:00:48 #7951 [Debug] > │         let v8 : float = v1 + v4                                             │

00:00:48 #7952 [Debug] > │         let v9 : float = v2 + v5                                             │

00:00:48 #7953 [Debug] > │         let v10 : float = v3 + v6                                            │

00:00:48 #7954 [Debug] > │         method11(v7, v8, v9, v10)                                            │

00:00:48 #7955 [Debug] > │     | UH7_1 -> (* Nil *)                                                     │

00:00:48 #7956 [Debug] > │         struct (v1, v2, v3)                                                  │

00:00:48 #7957 [Debug] > │ and closure147 (v0 : UH3) () : UH3 =                                         │

00:00:48 #7958 [Debug] > │     v0                                                                       │

00:00:48 #7959 [Debug] > │ and method7 (v0 : UH4, v1 : UH1, v2 : UH5, v3 : UH3) : UH3 =                 │

00:00:48 #7960 [Debug] > │     match v2 with                                                            │

00:00:48 #7961 [Debug] > │     | UH5_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14) -> (*           │

00:00:48 #7962 [Debug] > │ StreamCons *)                                                                │

00:00:48 #7963 [Debug] > │         let v15 : UH5 = v14 ()                                               │

00:00:48 #7964 [Debug] > │         let v16 : UH3 = method7(v0, v1, v15, v3)                             │

00:00:48 #7965 [Debug] > │         let v17 : UH6 = UH6_1                                                │

00:00:48 #7966 [Debug] > │         let v18 : UH6 = method8(v4, v1, v0, v17)                             │

00:00:48 #7967 [Debug] > │         let v19 : UH7 = UH7_1                                                │

00:00:48 #7968 [Debug] > │         let v20 : UH7 = method10(v5, v6, v7, v8, v9, v10, v11, v12, v13,     │

00:00:48 #7969 [Debug] > │ v18, v19)                                                                    │

00:00:48 #7970 [Debug] > │         let v21 : float = 0.0                                                │

00:00:48 #7971 [Debug] > │         let v22 : float = 0.0                                                │

00:00:48 #7972 [Debug] > │         let v23 : float = 0.0                                                │

00:00:48 #7973 [Debug] > │         let struct (v24 : float, v25 : float, v26 : float) = method11(v20,   │

00:00:48 #7974 [Debug] > │ v21, v22, v23)                                                               │

00:00:48 #7975 [Debug] > │         let v27 : float = v24 / v6                                           │

00:00:48 #7976 [Debug] > │         let v28 : float = v25 / v6                                           │

00:00:48 #7977 [Debug] > │         let v29 : float = v26 / v6                                           │

00:00:48 #7978 [Debug] > │         let v30 : (unit -> UH3) = closure147(v16)                            │

00:00:48 #7979 [Debug] > │         UH3_0(0.0, 0.0, v11, v12, v13, 1.0, v27, v28, v29, v30)              │

00:00:48 #7980 [Debug] > │     | UH5_1 -> (* StreamNil *)                                               │

00:00:48 #7981 [Debug] > │         v3                                                                   │

00:00:48 #7982 [Debug] > │ and closure142 (v0 : UH4) (v1 : UH1) : UH3 =                                 │

00:00:48 #7983 [Debug] > │     let v2 : UH5 = UH5_1                                                     │

00:00:48 #7984 [Debug] > │     let v3 : int32 = 0                                                       │

00:00:48 #7985 [Debug] > │     let struct (v4 : UH5, v5 : int32) = method5(v1, v2, v3)                  │

00:00:48 #7986 [Debug] > │     let v6 : UH5 = UH5_1                                                     │

00:00:48 #7987 [Debug] > │     let v7 : UH5 = method6(v4, v6)                                           │

00:00:48 #7988 [Debug] > │     let v8 : UH3 = UH3_1                                                     │

00:00:48 #7989 [Debug] > │     let v9 : UH3 = method7(v0, v1, v7, v8)                                   │

00:00:48 #7990 [Debug] > │     v9                                                                       │

00:00:48 #7991 [Debug] > │ and closure148 (v0 : (UH1 -> UH1), v1 : UH1, v2 : UH1) () : UH8 =            │

00:00:48 #7992 [Debug] > │     let v3 : UH1 = v0 v2                                                     │

00:00:48 #7993 [Debug] > │     let v4 : (unit -> UH8) = closure148(v0, v1, v3)                          │

00:00:48 #7994 [Debug] > │     UH8_0(v2, v4)                                                            │

00:00:48 #7995 [Debug] > │ and method12 (v0 : float, v1 : UH8) : US4 =                                  │

00:00:48 #7996 [Debug] > │     match v1 with                                                            │

00:00:48 #7997 [Debug] > │     | UH8_0(v2, v3) -> (* StreamCons *)                                      │

00:00:48 #7998 [Debug] > │         let v4 : bool = v0 <= 0.0                                            │

00:00:48 #7999 [Debug] > │         if v4 then                                                           │

00:00:48 #8000 [Debug] > │             US4_1(v2)                                                        │

00:00:48 #8001 [Debug] > │         else                                                                 │

00:00:48 #8002 [Debug] > │             let v6 : float = v0 - 1.0                                        │

00:00:48 #8003 [Debug] > │             let v7 : UH8 = v3 ()                                             │

00:00:48 #8004 [Debug] > │             method12(v6, v7)                                                 │

00:00:48 #8005 [Debug] > │     | UH8_1 -> (* StreamNil *)                                               │

00:00:48 #8006 [Debug] > │         US4_0                                                                │

00:00:48 #8007 [Debug] > │ and closure149 (v0 : UH9) () : UH9 =                                         │

00:00:48 #8008 [Debug] > │     v0                                                                       │

00:00:48 #8009 [Debug] > │ and method13 (v0 : UH1, v1 : UH9) : UH9 =                                    │

00:00:48 #8010 [Debug] > │     match v0 with                                                            │

00:00:48 #8011 [Debug] > │     | UH1_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* StreamCons *)    │

00:00:48 #8012 [Debug] > │         let v12 : UH1 = v11 ()                                               │

00:00:48 #8013 [Debug] > │         let v13 : UH9 = method13(v12, v1)                                    │

00:00:48 #8014 [Debug] > │         let v14 : (unit -> UH9) = closure149(v13)                            │

00:00:48 #8015 [Debug] > │         UH9_0(v4, v5, v6, v14)                                               │

00:00:48 #8016 [Debug] > │     | UH1_1 -> (* StreamNil *)                                               │

00:00:48 #8017 [Debug] > │         v1                                                                   │

00:00:48 #8018 [Debug] > │ and method14 (v0 : UH9, v1 : UH7) : UH7 =                                    │

00:00:48 #8019 [Debug] > │     match v0 with                                                            │

00:00:48 #8020 [Debug] > │     | UH9_0(v2, v3, v4, v5) -> (* StreamCons *)                              │

00:00:48 #8021 [Debug] > │         let v6 : UH9 = v5 ()                                                 │

00:00:48 #8022 [Debug] > │         let v7 : UH7 = method14(v6, v1)                                      │

00:00:48 #8023 [Debug] > │         UH7_0(v2, v3, v4, v7)                                                │

00:00:48 #8024 [Debug] > │     | UH9_1 -> (* StreamNil *)                                               │

00:00:48 #8025 [Debug] > │         v1                                                                   │

00:00:48 #8026 [Debug] > │ and method15 (v0 : UH7, v1 : UH7) : UH7 =                                    │

00:00:48 #8027 [Debug] > │     match v0 with                                                            │

00:00:48 #8028 [Debug] > │     | UH7_0(v2, v3, v4, v5) -> (* Cons *)                                    │

00:00:48 #8029 [Debug] > │         let v6 : UH7 = method15(v5, v1)                                      │

00:00:48 #8030 [Debug] > │         UH7_0(v2, v3, v4, v6)                                                │

00:00:48 #8031 [Debug] > │     | UH7_1 -> (* Nil *)                                                     │

00:00:48 #8032 [Debug] > │         v1                                                                   │

00:00:48 #8033 [Debug] > │ and method16 (v0 : UH7, v1 : UH10) : UH10 =                                  │

00:00:48 #8034 [Debug] > │     match v0 with                                                            │

00:00:48 #8035 [Debug] > │     | UH7_0(v2, v3, v4, v5) -> (* Cons *)                                    │

00:00:48 #8036 [Debug] > │         let v6 : UH10 = method16(v5, v1)                                     │

00:00:48 #8037 [Debug] > │         UH10_0(v2, v3, v6)                                                   │

00:00:48 #8038 [Debug] > │     | UH7_1 -> (* Nil *)                                                     │

00:00:48 #8039 [Debug] > │         v1                                                                   │

00:00:48 #8040 [Debug] > │ and closure150 (v0 : UH11) () : UH11 =                                       │

00:00:48 #8041 [Debug] > │     v0                                                                       │

00:00:48 #8042 [Debug] > │ and method17 (v0 : UH10, v1 : UH11) : UH11 =                                 │

00:00:48 #8043 [Debug] > │     match v0 with                                                            │

00:00:48 #8044 [Debug] > │     | UH10_0(v2, v3, v4) -> (* Cons *)                                       │

00:00:48 #8045 [Debug] > │         let v5 : UH11 = method17(v4, v1)                                     │

00:00:48 #8046 [Debug] > │         let v6 : (unit -> UH11) = closure150(v5)                             │

00:00:48 #8047 [Debug] > │         UH11_0(v2, v3, v6)                                                   │

00:00:48 #8048 [Debug] > │     | UH10_1 -> (* Nil *)                                                    │

00:00:48 #8049 [Debug] > │         v1                                                                   │

00:00:48 #8050 [Debug] > │ and closure151 (v0 : UH0) () : UH0 =                                         │

00:00:48 #8051 [Debug] > │     v0                                                                       │

00:00:48 #8052 [Debug] > │ and closure152 (v0 : UH0) () : UH0 =                                         │

00:00:48 #8053 [Debug] > │     v0                                                                       │

00:00:48 #8054 [Debug] > │ and method18 (v0 : UH11) : struct (UH0 * UH0) =                              │

00:00:48 #8055 [Debug] > │     match v0 with                                                            │

00:00:48 #8056 [Debug] > │     | UH11_0(v1, v2, v3) -> (* StreamCons *)                                 │

00:00:48 #8057 [Debug] > │         let v4 : UH11 = v3 ()                                                │

00:00:48 #8058 [Debug] > │         let struct (v5 : UH0, v6 : UH0) = method18(v4)                       │

00:00:48 #8059 [Debug] > │         let v7 : (unit -> UH0) = closure151(v5)                              │

00:00:48 #8060 [Debug] > │         let v8 : UH0 = UH0_0(v1, v7)                                         │

00:00:48 #8061 [Debug] > │         let v9 : (unit -> UH0) = closure152(v6)                              │

00:00:48 #8062 [Debug] > │         let v10 : UH0 = UH0_0(v2, v9)                                        │

00:00:48 #8063 [Debug] > │         struct (v8, v10)                                                     │

00:00:48 #8064 [Debug] > │     | UH11_1 -> (* StreamNil *)                                              │

00:00:48 #8065 [Debug] > │         let v11 : UH0 = UH0_1                                                │

00:00:48 #8066 [Debug] > │         let v12 : UH0 = UH0_1                                                │

00:00:48 #8067 [Debug] > │         struct (v11, v12)                                                    │

00:00:48 #8068 [Debug] > │ and method19 (v0 : UH0, v1 : UH12) : UH12 =                                  │

00:00:48 #8069 [Debug] > │     match v0 with                                                            │

00:00:48 #8070 [Debug] > │     | UH0_0(v2, v3) -> (* StreamCons *)                                      │

00:00:48 #8071 [Debug] > │         let v4 : UH0 = v3 ()                                                 │

00:00:48 #8072 [Debug] > │         let v5 : UH12 = method19(v4, v1)                                     │

00:00:48 #8073 [Debug] > │         UH12_0(v2, v5)                                                       │

00:00:48 #8074 [Debug] > │     | UH0_1 -> (* StreamNil *)                                               │

00:00:48 #8075 [Debug] > │         v1                                                                   │

00:00:48 #8076 [Debug] > │ and method21 (v0 : UH12, v1 : int32) : int32 =                               │

00:00:48 #8077 [Debug] > │     match v0 with                                                            │

00:00:48 #8078 [Debug] > │     | UH12_0(v2, v3) -> (* Cons *)                                           │

00:00:48 #8079 [Debug] > │         let v4 : int32 = v1 + 1                                              │

00:00:48 #8080 [Debug] > │         method21(v3, v4)                                                     │

00:00:48 #8081 [Debug] > │     | UH12_1 -> (* Nil *)                                                    │

00:00:48 #8082 [Debug] > │         v1                                                                   │

00:00:48 #8083 [Debug] > │ and method22 (v0 : (float []), v1 : UH12, v2 : int32) : int32 =              │

00:00:48 #8084 [Debug] > │     match v1 with                                                            │

00:00:48 #8085 [Debug] > │     | UH12_0(v3, v4) -> (* Cons *)                                           │

00:00:48 #8086 [Debug] > │         v0.[int v2] <- v3                                                    │

00:00:48 #8087 [Debug] > │         let v5 : int32 = v2 + 1                                              │

00:00:48 #8088 [Debug] > │         method22(v0, v4, v5)                                                 │

00:00:48 #8089 [Debug] > │     | UH12_1 -> (* Nil *)                                                    │

00:00:48 #8090 [Debug] > │         v2                                                                   │

00:00:48 #8091 [Debug] > │ and method20 (v0 : UH12) : (float []) =                                      │

00:00:48 #8092 [Debug] > │     let v1 : int32 = 0                                                       │

00:00:48 #8093 [Debug] > │     let v2 : int32 = method21(v0, v1)                                        │

00:00:48 #8094 [Debug] > │     let v3 : (float []) = Array.zeroCreate<float> (v2)                       │

00:00:48 #8095 [Debug] > │     let v4 : int32 = 0                                                       │

00:00:48 #8096 [Debug] > │     let v5 : int32 = method22(v3, v0, v4)                                    │

00:00:48 #8097 [Debug] > │     v3                                                                       │

00:00:48 #8098 [Debug] > │ and closure153 (v0 : UH2) () : UH2 =                                         │

00:00:48 #8099 [Debug] > │     v0                                                                       │

00:00:48 #8100 [Debug] > │ and method1 (v0 : UH1, v1 : UH0, v2 : UH2) : UH2 =                           │

00:00:48 #8101 [Debug] > │     match v1 with                                                            │

00:00:48 #8102 [Debug] > │     | UH0_0(v3, v4) -> (* StreamCons *)                                      │

00:00:48 #8103 [Debug] > │         let v5 : UH0 = v4 ()                                                 │

00:00:48 #8104 [Debug] > │         let v6 : UH2 = method1(v0, v5, v2)                                   │

00:00:48 #8105 [Debug] > │         let v7 : ((UH1 -> UH3) -> (UH1 -> UH1)) = method2()                  │

00:00:48 #8106 [Debug] > │         let v8 : UH4 = method4()                                             │

00:00:48 #8107 [Debug] > │         let v9 : (UH1 -> UH3) = closure142(v8)                               │

00:00:48 #8108 [Debug] > │         let v10 : (UH1 -> UH1) = v7 v9                                       │

00:00:48 #8109 [Debug] > │         let v11 : UH1 = v10 v0                                               │

00:00:48 #8110 [Debug] > │         let v12 : (unit -> UH8) = closure148(v10, v0, v11)                   │

00:00:48 #8111 [Debug] > │         let v13 : UH8 = UH8_0(v0, v12)                                       │

00:00:48 #8112 [Debug] > │         let v14 : US4 = method12(v3, v13)                                    │

00:00:48 #8113 [Debug] > │         let v18 : UH1 =                                                      │

00:00:48 #8114 [Debug] > │             match v14 with                                                   │

00:00:48 #8115 [Debug] > │             | US4_0 -> (* None *)                                            │

00:00:48 #8116 [Debug] > │                 failwith<UH1> "Option does not have a value."                │

00:00:48 #8117 [Debug] > │             | US4_1(v15) -> (* Some *)                                       │

00:00:48 #8118 [Debug] > │                 v15                                                          │

00:00:48 #8119 [Debug] > │         let v19 : UH9 = UH9_1                                                │

00:00:48 #8120 [Debug] > │         let v20 : UH9 = method13(v18, v19)                                   │

00:00:48 #8121 [Debug] > │         let v21 : UH7 = UH7_1                                                │

00:00:48 #8122 [Debug] > │         let v22 : UH7 = method14(v20, v21)                                   │

00:00:48 #8123 [Debug] > │         let v23 : float = 0.65                                               │

00:00:48 #8124 [Debug] > │         let v24 : float = 0.0                                                │

00:00:48 #8125 [Debug] > │         let v25 : float = 0.0                                                │

00:00:48 #8126 [Debug] > │         let v26 : UH7 = UH7_1                                                │

00:00:48 #8127 [Debug] > │         let v27 : UH7 = UH7_0(v23, v24, v25, v26)                            │

00:00:48 #8128 [Debug] > │         let v28 : UH7 = method15(v22, v27)                                   │

00:00:48 #8129 [Debug] > │         let v29 : UH10 = UH10_1                                              │

00:00:48 #8130 [Debug] > │         let v30 : UH10 = method16(v28, v29)                                  │

00:00:48 #8131 [Debug] > │         let v31 : UH11 = UH11_1                                              │

00:00:48 #8132 [Debug] > │         let v32 : UH11 = method17(v30, v31)                                  │

00:00:48 #8133 [Debug] > │         let struct (v33 : UH0, v34 : UH0) = method18(v32)                    │

00:00:48 #8134 [Debug] > │         let v35 : UH12 = UH12_1                                              │

00:00:48 #8135 [Debug] > │         let v36 : UH12 = method19(v33, v35)                                  │

00:00:48 #8136 [Debug] > │         let v37 : float = 0.0                                                │

00:00:48 #8137 [Debug] > │         let v38 : UH12 = UH12_0(v37, v36)                                    │

00:00:48 #8138 [Debug] > │         let v39 : (float []) = method20(v38)                                 │

00:00:48 #8139 [Debug] > │         let v40 : UH12 = UH12_1                                              │

00:00:48 #8140 [Debug] > │         let v41 : UH12 = method19(v34, v40)                                  │

00:00:48 #8141 [Debug] > │         let v42 : float = 0.0                                                │

00:00:48 #8142 [Debug] > │         let v43 : UH12 = UH12_0(v42, v41)                                    │

00:00:48 #8143 [Debug] > │         let v44 : (float []) = method20(v43)                                 │

00:00:48 #8144 [Debug] > │         let v45 : (unit -> UH2) = closure153(v6)                             │

00:00:48 #8145 [Debug] > │         UH2_0(v39, v44, v45)                                                 │

00:00:48 #8146 [Debug] > │     | UH0_1 -> (* StreamNil *)                                               │

00:00:48 #8147 [Debug] > │         v2                                                                   │

00:00:48 #8148 [Debug] > │ and closure154 (v0 : UH13) () : UH13 =                                       │

00:00:48 #8149 [Debug] > │     v0                                                                       │

00:00:48 #8150 [Debug] > │ and method23 (v0 : UH2, v1 : UH13, v2 : int32) : struct (UH13 * int32) =     │

00:00:48 #8151 [Debug] > │     match v0 with                                                            │

00:00:48 #8152 [Debug] > │     | UH2_0(v3, v4, v5) -> (* StreamCons *)                                  │

00:00:48 #8153 [Debug] > │         let v6 : int32 = v2 + 1                                              │

00:00:48 #8154 [Debug] > │         let v7 : UH2 = v5 ()                                                 │

00:00:48 #8155 [Debug] > │         let v8 : (unit -> UH13) = closure154(v1)                             │

00:00:48 #8156 [Debug] > │         let v9 : UH13 = UH13_0(v2, v3, v4, v8)                               │

00:00:48 #8157 [Debug] > │         method23(v7, v9, v6)                                                 │

00:00:48 #8158 [Debug] > │     | UH2_1 -> (* StreamNil *)                                               │

00:00:48 #8159 [Debug] > │         struct (v1, v2)                                                      │

00:00:48 #8160 [Debug] > │ and closure155 (v0 : UH13) () : UH13 =                                       │

00:00:48 #8161 [Debug] > │     v0                                                                       │

00:00:48 #8162 [Debug] > │ and method24 (v0 : UH13, v1 : UH13) : UH13 =                                 │

00:00:48 #8163 [Debug] > │     match v0 with                                                            │

00:00:48 #8164 [Debug] > │     | UH13_0(v2, v3, v4, v5) -> (* StreamCons *)                             │

00:00:48 #8165 [Debug] > │         let v6 : UH13 = v5 ()                                                │

00:00:48 #8166 [Debug] > │         let v7 : (unit -> UH13) = closure155(v1)                             │

00:00:48 #8167 [Debug] > │         let v8 : UH13 = UH13_0(v2, v3, v4, v7)                               │

00:00:48 #8168 [Debug] > │         method24(v6, v8)                                                     │

00:00:48 #8169 [Debug] > │     | UH13_1 -> (* StreamNil *)                                              │

00:00:48 #8170 [Debug] > │         v1                                                                   │

00:00:48 #8171 [Debug] > │ and closure156 (v0 : UH14) () : UH14 =                                       │

00:00:48 #8172 [Debug] > │     v0                                                                       │

00:00:48 #8173 [Debug] > │ and method25 (v0 : UH13, v1 : UH14) : UH14 =                                 │

00:00:48 #8174 [Debug] > │     match v0 with                                                            │

00:00:48 #8175 [Debug] > │     | UH13_0(v2, v3, v4, v5) -> (* StreamCons *)                             │

00:00:48 #8176 [Debug] > │         let v6 : UH13 = v5 ()                                                │

00:00:48 #8177 [Debug] > │         let v7 : UH14 = method25(v6, v1)                                     │

00:00:48 #8178 [Debug] > │         let v8 : string = $"{v2}"                                            │

00:00:48 #8179 [Debug] > │         let v9 : (struct (string * (float []) * (float [])) []) = [|struct   │

00:00:48 #8180 [Debug] > │ (v8, v3, v4)|]                                                               │

00:00:48 #8181 [Debug] > │         let v10 : string = "wave"                                            │

00:00:48 #8182 [Debug] > │         let v11 : string = "position (m)"                                    │

00:00:48 #8183 [Debug] > │         let v12 : string = "displacement (m)"                                │

00:00:48 #8184 [Debug] > │         let v13 : (unit -> UH14) = closure156(v7)                            │

00:00:48 #8185 [Debug] > │         UH14_0(v10, v11, v12, v9, v13)                                       │

00:00:48 #8186 [Debug] > │     | UH13_1 -> (* StreamNil *)                                              │

00:00:48 #8187 [Debug] > │         v1                                                                   │

00:00:48 #8188 [Debug] > │ and method26 (v0 : UH14, v1 : UH15) : UH15 =                                 │

00:00:48 #8189 [Debug] > │     match v0 with                                                            │

00:00:48 #8190 [Debug] > │     | UH14_0(v2, v3, v4, v5, v6) -> (* StreamCons *)                         │

00:00:48 #8191 [Debug] > │         let v7 : UH14 = v6 ()                                                │

00:00:48 #8192 [Debug] > │         let v8 : UH15 = method26(v7, v1)                                     │

00:00:48 #8193 [Debug] > │         UH15_0(v2, v3, v4, v5, v8)                                           │

00:00:48 #8194 [Debug] > │     | UH14_1 -> (* StreamNil *)                                              │

00:00:48 #8195 [Debug] > │         v1                                                                   │

00:00:48 #8196 [Debug] > │ and method28 (v0 : UH15, v1 : int32) : int32 =                               │

00:00:48 #8197 [Debug] > │     match v0 with                                                            │

00:00:48 #8198 [Debug] > │     | UH15_0(v2, v3, v4, v5, v6) -> (* Cons *)                               │

00:00:48 #8199 [Debug] > │         let v7 : int32 = v1 + 1                                              │

00:00:48 #8200 [Debug] > │         method28(v6, v7)                                                     │

00:00:48 #8201 [Debug] > │     | UH15_1 -> (* Nil *)                                                    │

00:00:48 #8202 [Debug] > │         v1                                                                   │

00:00:48 #8203 [Debug] > │ and method29 (v0 : (struct (string * string * string * (struct (string *     │

00:00:48 #8204 [Debug] > │ (float []) * (float [])) [])) []), v1 : UH15, v2 : int32) : int32 =          │

00:00:48 #8205 [Debug] > │     match v1 with                                                            │

00:00:48 #8206 [Debug] > │     | UH15_0(v3, v4, v5, v6, v7) -> (* Cons *)                               │

00:00:48 #8207 [Debug] > │         v0.[int v2] <- struct (v3, v4, v5, v6)                               │

00:00:48 #8208 [Debug] > │         let v8 : int32 = v2 + 1                                              │

00:00:48 #8209 [Debug] > │         method29(v0, v7, v8)                                                 │

00:00:48 #8210 [Debug] > │     | UH15_1 -> (* Nil *)                                                    │

00:00:48 #8211 [Debug] > │         v2                                                                   │

00:00:48 #8212 [Debug] > │ and method27 (v0 : UH15) : (struct (string * string * string * (struct       │

00:00:48 #8213 [Debug] > │ (string * (float []) * (float [])) [])) []) =                                │

00:00:48 #8214 [Debug] > │     let v1 : int32 = 0                                                       │

00:00:48 #8215 [Debug] > │     let v2 : int32 = method28(v0, v1)                                        │

00:00:48 #8216 [Debug] > │     let v3 : (struct (string * string * string * (struct (string * (float [  │

00:00:48 #8217 [Debug] > │ ]) * (float [])) [])) []) = Array.zeroCreate<struct (string * string *       │

00:00:48 #8218 [Debug] > │ string * (struct (string * (float []) * (float [])) []))> (v2)               │

00:00:48 #8219 [Debug] > │     let v4 : int32 = 0                                                       │

00:00:48 #8220 [Debug] > │     let v5 : int32 = method29(v3, v0, v4)                                    │

00:00:48 #8221 [Debug] > │     v3                                                                       │

00:00:48 #8222 [Debug] > │ and method0 () : (struct (string * string * string * (struct (string *       │

00:00:48 #8223 [Debug] > │ (float []) * (float [])) [])) []) =                                          │

00:00:48 #8224 [Debug] > │     let v0 : float = 0.0                                                     │

00:00:48 #8225 [Debug] > │     let v1 : (unit -> UH0) = closure0()                                      │

00:00:48 #8226 [Debug] > │     let v2 : UH0 = UH0_0(v0, v1)                                             │

00:00:48 #8227 [Debug] > │     let v3 : float = 0.0                                                     │

00:00:48 #8228 [Debug] > │     let v4 : float = 8.422578125E-06                                         │

00:00:48 #8229 [Debug] > │     let v5 : float = 0.01                                                    │

00:00:48 #8230 [Debug] > │     let v6 : float = 0.0007224452478461068                                   │

00:00:48 #8231 [Debug] > │     let v7 : float = 0.0                                                     │

00:00:48 #8232 [Debug] > │     let v8 : float = 0.0                                                     │

00:00:48 #8233 [Debug] > │     let v9 : float = 0.0                                                     │

00:00:48 #8234 [Debug] > │     let v10 : float = 0.0                                                    │

00:00:48 #8235 [Debug] > │     let v11 : float = 0.0                                                    │

00:00:48 #8236 [Debug] > │     let v12 : (unit -> UH1) = closure66()                                    │

00:00:48 #8237 [Debug] > │     let v13 : UH1 = UH1_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12)         │

00:00:48 #8238 [Debug] > │     let v14 : UH2 = UH2_1                                                    │

00:00:48 #8239 [Debug] > │     let v15 : UH2 = method1(v13, v2, v14)                                    │

00:00:48 #8240 [Debug] > │     let v16 : UH13 = UH13_1                                                  │

00:00:48 #8241 [Debug] > │     let v17 : int32 = 0                                                      │

00:00:48 #8242 [Debug] > │     let struct (v18 : UH13, v19 : int32) = method23(v15, v16, v17)           │

00:00:48 #8243 [Debug] > │     let v20 : UH13 = UH13_1                                                  │

00:00:48 #8244 [Debug] > │     let v21 : UH13 = method24(v18, v20)                                      │

00:00:48 #8245 [Debug] > │     let v22 : UH14 = UH14_1                                                  │

00:00:48 #8246 [Debug] > │     let v23 : UH14 = method25(v21, v22)                                      │

00:00:48 #8247 [Debug] > │     let v24 : UH15 = UH15_1                                                  │

00:00:48 #8248 [Debug] > │     let v25 : UH15 = method26(v23, v24)                                      │

00:00:48 #8249 [Debug] > │     method27(v25)                                                            │

00:00:48 #8250 [Debug] > │ method0()                                                                    │

00:00:48 #8251 [Debug] > │                                                                              │

00:00:48 #8252 [Debug] > │                                                                              │

00:00:48 #8253 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:48 #8254 [Debug] >

00:00:48 #8255 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:48 #8256 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:48 #8257 [Debug] > │ ## end                                                                       │

00:00:48 #8258 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:50 #8259 [Debug] > [NbConvertApp] Converting notebook physics.dib.ipynb to html

00:00:50 #8260 [Debug] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

00:00:50 #8261 [Debug] >   validate(nb)

00:00:51 #8262 [Debug] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:72: UserWarning: IPython3 lexer unavailable, falling back on Python 3

00:00:51 #8263 [Debug] >   return _pygments_highlight(

00:00:55 #8264 [Debug] > [NbConvertApp] Writing 2727737 bytes to physics.dib.html

00:00:55 #8265 [Debug] executeAsync / exitCode: 0 / output.Length: 563440

00:00:55 #8266 [Debug] main / executeCommand / exitCode: 0

00:00:00 #1 [Debug] writeDibCode / output: Spi / path: benchmark.dib

00:00:00 #1 [Debug] writeDibCode / output: Spi / path: listm'.dib

00:00:00 #1 [Debug] writeDibCode / output: Spi / path: am'.dib

00:00:00 #1 [Debug] writeDibCode / output: Spi / path: optionm'.dib

00:00:00 #1 [Debug] writeDibCode / output: Spi / path: common.dib

00:00:00 #1 [Debug] writeDibCode / output: Spi / path: testing.dib

00:00:00 #1 [Debug] writeDibCode / output: Spi / path: math.dib

00:00:00 #1 [Debug] writeDibCode / output: Spi / path: console.dib

00:00:00 #8 [Debug] parseDibCode / output: Spi / file: optionm'.dib

00:00:00 #4 [Debug] parseDibCode / output: Spi / file: math.dib

00:00:00 #9 [Debug] parseDibCode / output: Spi / file: common.dib

00:00:00 #7 [Debug] parseDibCode / output: Spi / file: am'.dib

00:00:00 #4 [Debug] parseDibCode / output: Spi / file: console.dib

00:00:00 #4 [Debug] parseDibCode / output: Spi / file: testing.dib

00:00:00 #6 [Debug] parseDibCode / output: Spi / file: listm'.dib

00:00:00 #5 [Debug] parseDibCode / output: Spi / file: benchmark.dib

00:00:00 #10 [Debug] writeDibCode / output: Spi / path: util.dib

00:00:00 #10 [Debug] writeDibCode / output: Spi / path: physics.dib

00:00:00 #10 [Debug] writeDibCode / output: Spi / path: seq.dib

00:00:00 #10 [Debug] writeDibCode / output: Spi / path: stream.dib

00:00:00 #11 [Debug] parseDibCode / output: Spi / file: util.dib

00:00:00 #12 [Debug] parseDibCode / output: Spi / file: physics.dib

00:00:00 #14 [Debug] parseDibCode / output: Spi / file: stream.dib

00:00:00 #13 [Debug] parseDibCode / output: Spi / file: seq.dib

In [ ]:
{ . "$ScriptDir/../apps/chat/build.ps1" } | Invoke-Block
    Finished release [optimized] target(s) in 1.14s

## 7

    Finished release [optimized] target(s) in 22.05s

     Running `target/release/chat`





new: ExecutionFinalResult {

    total_gas_burnt: NearGas {

        inner: 5296605557370,

    },

    transaction: ExecutionOutcome {

        transaction_hash: XcvivjavJscLTgkV45MU55vSWUpnHFqvZC11dRuQ8E8,

        block_hash: GU3SKuwxUJscwX5RyBzhnzET2tDna2umL9HzhWzLYR1j,

        logs: [],

        receipt_ids: [

            VDGfEsbFQYTWDD4ryX2gpJ5tHi8urfJjCo6qcCYe1tk,

        ],

        gas_burnt: NearGas {

            inner: 2427927707802,

        },

        tokens_burnt: 242792770780200000000,

        executor_id: AccountId(

            "dev-20231025181300-77216102617382",

        ),

        status: SuccessReceiptId(VDGfEsbFQYTWDD4ryX2gpJ5tHi8urfJjCo6qcCYe1tk),

    },

    receipts: [

        ExecutionOutcome {

            transaction_hash: VDGfEsbFQYTWDD4ryX2gpJ5tHi8urfJjCo6qcCYe1tk,

            block_hash: GU3SKuwxUJscwX5RyBzhnzET2tDna2umL9HzhWzLYR1j,

            logs: [],

            receipt_ids: [

                BRD3jPfM2eXyLpHbDaord7eJbwNEXLR88nFrA24VjGvY,

            ],

            gas_burnt: NearGas {

                inner: 2645495287068,

            },

            tokens_burnt: 264549528706800000000,

            executor_id: AccountId(

                "dev-20231025181300-77216102617382",

            ),

            status: SuccessValue(''),

        },

        ExecutionOutcome {

            transaction_hash: BRD3jPfM2eXyLpHbDaord7eJbwNEXLR88nFrA24VjGvY,

            block_hash: 6jWE3VsqqDw6pJW5kxPuJU8u3ZKQwTTb92aXwrFYKR2s,

            logs: [],

            receipt_ids: [],

            gas_burnt: NearGas {

                inner: 223182562500,

            },

            tokens_burnt: 0,

            executor_id: AccountId(

                "dev-20231025181300-77216102617382",

            ),

            status: SuccessValue(''),

        },

    ],

    status: SuccessValue(''),

}

total_gas_burnt_usd: 0.00353813251232316

outcome (success: true):

  outcome_gas_burnt_usd: 0.001621855708811736

  outcome_tokens_burnt_usd: 0.001621855708811736

outcome (success: true):

  outcome_gas_burnt_usd: 0.001767190851761424

  outcome_tokens_burnt_usd: 0.001767190851761424

outcome (success: true):

  outcome_gas_burnt_usd: 0.00014908595175

  outcome_tokens_burnt_usd: 0.0





claim_alias(contract, ''): ExecutionFinalResult {

    total_gas_burnt: NearGas {

        inner: 5293307489320,

    },

    transaction: ExecutionOutcome {

        transaction_hash: 6GbRpMDkofEHSVQGL9wUnAbEsQMQn79ottoQxLZzCwc2,

        block_hash: BsobhQMQdFhs6DgsZaC68iYQNvxqrtn6YoDg47ms7XNj,

        logs: [],

        receipt_ids: [

            6EBAuPQYvfHjExhaRJudy7ib3Y2V6SMxvbVtsjooGkuK,

        ],

        gas_burnt: NearGas {

            inner: 2427972426482,

        },

        tokens_burnt: 242797242648200000000,

        executor_id: AccountId(

            "dev-20231025181300-77216102617382",

        ),

        status: SuccessReceiptId(6EBAuPQYvfHjExhaRJudy7ib3Y2V6SMxvbVtsjooGkuK),

    },

    receipts: [

        ExecutionOutcome {

            transaction_hash: 6EBAuPQYvfHjExhaRJudy7ib3Y2V6SMxvbVtsjooGkuK,

            block_hash: BsobhQMQdFhs6DgsZaC68iYQNvxqrtn6YoDg47ms7XNj,

            logs: [

                "claim_alias / alias: \"\" / account_id: AccountId(\n    \"dev-20231025181300-77216102617382\",\n) / timestamp: 1698257582661374172",

            ],

            receipt_ids: [

                CQ3CiuRDdHzdaBdyFyKBrm8mAbjg92f5mNwQxF1XvoTZ,

            ],

            gas_burnt: NearGas {

                inner: 2642152500338,

            },

            tokens_burnt: 264215250033800000000,

            executor_id: AccountId(

                "dev-20231025181300-77216102617382",

            ),

            status: Failure(ActionError(ActionError { index: Some(0), kind: FunctionCallError(ExecutionError("Smart contract panicked: Invalid alias")) })),

        },

        ExecutionOutcome {

            transaction_hash: CQ3CiuRDdHzdaBdyFyKBrm8mAbjg92f5mNwQxF1XvoTZ,

            block_hash: FUbvpdLnuRNFnD398fKVXp7dFcTbVDBvAs4aC9R6BdE,

            logs: [],

            receipt_ids: [],

            gas_burnt: NearGas {

                inner: 223182562500,

            },

            tokens_burnt: 0,

            executor_id: AccountId(

                "dev-20231025181300-77216102617382",

            ),

            status: SuccessValue(''),

        },

    ],

    status: Failure(ActionError(ActionError { index: Some(0), kind: FunctionCallError(ExecutionError("Smart contract panicked: Invalid alias")) })),

}

total_gas_burnt_usd: 0.00353592940286576

outcome (success: true):

  outcome_gas_burnt_usd: 0.001621885580889976

  outcome_tokens_burnt_usd: 0.0016218855808899759

outcome (success: false):

  outcome_gas_burnt_usd: 0.0017649578702257842

  outcome_tokens_burnt_usd: 0.0017649578702257837

outcome (success: true):

  outcome_gas_burnt_usd: 0.00014908595175

  outcome_tokens_burnt_usd: 0.0





dev_create_account(account1): Account {

    id: AccountId(

        "dev-20231025181302-77502825178218",

    ),

}





generate_cid_borsh(account1): ViewResultDetails {

    result: [

        59,

        0,

        0,

        0,

        98,

        97,

        102,

        107,

        114,

        101,

        105,

        104,

        100,

        119,

        100,

        99,

        101,

        102,

        103,

        104,

        52,

        100,

        113,

        107,

        106,

        118,

        54,

        55,

        117,

        122,

        99,

        109,

        119,

        55,

        111,

        106,

        101,

        101,

        54,

        120,

        101,

        100,

        122,

        100,

        101,

        116,

        111,

        106,

        117,

        122,

        106,

        101,

        118,

        116,

        101,

        110,

        120,

        113,

        117,

        118,

        121,

        107,

        117,

    ],

    logs: [],

}





claim_alias(account1, alias1): ExecutionFinalResult {

    total_gas_burnt: NearGas {

        inner: 5920999705861,

    },

    transaction: ExecutionOutcome {

        transaction_hash: Ddcomqt7odpqa3SEzrzUvjpVwDuoDznJYm9gCfpeWHwu,

        block_hash: 7X6DCbHbuiK3ATE3rQhN7RrZXXdiBD1bhyVPA7E4aqQm,

        logs: [],

        receipt_ids: [

            54ChRv8SfW1VRBmX7bBnJcpRzwEzgTp5fdcvPKedjHqz,

        ],

        gas_burnt: NearGas {

            inner: 2427985842086,

        },

        tokens_burnt: 242798584208600000000,

        executor_id: AccountId(

            "dev-20231025181302-77502825178218",

        ),

        status: SuccessReceiptId(54ChRv8SfW1VRBmX7bBnJcpRzwEzgTp5fdcvPKedjHqz),

    },

    receipts: [

        ExecutionOutcome {

            transaction_hash: 54ChRv8SfW1VRBmX7bBnJcpRzwEzgTp5fdcvPKedjHqz,

            block_hash: Hxu7nKNY7CVbuhDoRwNy82zVQMRN8mRrTz5VPDwzkTR6,

            logs: [

                "claim_alias / alias: \"alias1\" / account_id: AccountId(\n    \"dev-20231025181302-77502825178218\",\n) / timestamp: 1698257584510613230",

            ],

            receipt_ids: [

                J1gjQ3F56edG1uePmMe9gXT28S3rbS1EJ6NBUpdbs5rG,

            ],

            gas_burnt: NearGas {

                inner: 3269831301275,

            },

            tokens_burnt: 326983130127500000000,

            executor_id: AccountId(

                "dev-20231025181300-77216102617382",

            ),

            status: SuccessValue(''),

        },

        ExecutionOutcome {

            transaction_hash: J1gjQ3F56edG1uePmMe9gXT28S3rbS1EJ6NBUpdbs5rG,

            block_hash: 3EE75ctjwf7daJMe8oMhcWDaBa4kXN3w9Vfb9Twz2BKh,

            logs: [],

            receipt_ids: [],

            gas_burnt: NearGas {

                inner: 223182562500,

            },

            tokens_burnt: 0,

            executor_id: AccountId(

                "dev-20231025181302-77502825178218",

            ),

            status: SuccessValue(''),

        },

    ],

    status: SuccessValue(''),

}

total_gas_burnt_usd: 0.003955227803515148

outcome (success: true):

  outcome_gas_burnt_usd: 0.0016218945425134478

  outcome_tokens_burnt_usd: 0.001621894542513448

outcome (success: true):

  outcome_gas_burnt_usd: 0.0021842473092517

  outcome_tokens_burnt_usd: 0.0021842473092517

outcome (success: true):

  outcome_gas_burnt_usd: 0.00014908595175

  outcome_tokens_burnt_usd: 0.0





claim_alias(account1, alias1): ExecutionFinalResult {

    total_gas_burnt: NearGas {

        inner: 5562755887684,

    },

    transaction: ExecutionOutcome {

        transaction_hash: 97uzXwnuvWXucBrGWytzqcbLw7N68P4u3rAiwbi4K9i7,

        block_hash: 4RLMJZciLmcougaRj5hkci35o9BnSS4cRS38V8Xjn12U,

        logs: [],

        receipt_ids: [

            7Vo8zxNLFqCBWJureThFEMb4f7kAyb1k2D8793kVvfyz,

        ],

        gas_burnt: NearGas {

            inner: 2427985842086,

        },

        tokens_burnt: 242798584208600000000,

        executor_id: AccountId(

            "dev-20231025181302-77502825178218",

        ),

        status: SuccessReceiptId(7Vo8zxNLFqCBWJureThFEMb4f7kAyb1k2D8793kVvfyz),

    },

    receipts: [

        ExecutionOutcome {

            transaction_hash: 7Vo8zxNLFqCBWJureThFEMb4f7kAyb1k2D8793kVvfyz,

            block_hash: FeK23M8bM4nfDBUY5NcDDBygYTwJaFCQC8E6SjFuBPb,

            logs: [

                "claim_alias / alias: \"alias1\" / account_id: AccountId(\n    \"dev-20231025181302-77502825178218\",\n) / timestamp: 1698257585667362710",

                "Alias already claimed",

            ],

            receipt_ids: [

                27NgGvZLo9Uwy9TDUKmVCVc17VPugSDaRxvXLHpz7LKv,

            ],

            gas_burnt: NearGas {

                inner: 2911587483098,

            },

            tokens_burnt: 291158748309800000000,

            executor_id: AccountId(

                "dev-20231025181300-77216102617382",

            ),

            status: SuccessValue(''),

        },

        ExecutionOutcome {

            transaction_hash: 27NgGvZLo9Uwy9TDUKmVCVc17VPugSDaRxvXLHpz7LKv,

            block_hash: 62teAuvzH9kUw9r1shrdf4zbgJx3L9Zj4aZi4EncTzrU,

            logs: [],

            receipt_ids: [],

            gas_burnt: NearGas {

                inner: 223182562500,

            },

            tokens_burnt: 0,

            executor_id: AccountId(

                "dev-20231025181302-77502825178218",

            ),

            status: SuccessValue(''),

        },

    ],

    status: SuccessValue(''),

}

total_gas_burnt_usd: 0.0037159209329729118

outcome (success: true):

  outcome_gas_burnt_usd: 0.0016218945425134478

  outcome_tokens_burnt_usd: 0.001621894542513448

outcome (success: true):

  outcome_gas_burnt_usd: 0.001944940438709464

  outcome_tokens_burnt_usd: 0.001944940438709464

outcome (success: true):

  outcome_gas_burnt_usd: 0.00014908595175

  outcome_tokens_burnt_usd: 0.0





get_account_info(account1): Some(

    (

        "alias1",

        (

            1698257584510613230,

            0,

        ),

    ),

)





get_alias_map(account1, alias1): Some(

    {

        AccountId(

            "dev-20231025181302-77502825178218",

        ): (

            1698257584510613230,

            0,

        ),

    },

)





dev_create_account(account2): Account {

    id: AccountId(

        "dev-20231025181306-49674812318388",

    ),

}





claim_alias(alias2): ExecutionFinalResult {

    total_gas_burnt: NearGas {

        inner: 6029011441417,

    },

    transaction: ExecutionOutcome {

        transaction_hash: E5w4f9WVvFBJRYTWShsrVFtp6KPRqxaEXvjdFVDYm3mL,

        block_hash: 8n1LyTVz1UF4tJ3VwTi4SgYRQ25ASnocWbpVWMi9VNrW,

        logs: [],

        receipt_ids: [

            AZYzkr7o2ibpMRTJkiaJa1poVumJ3MZiTim7VkMGvqHk,

        ],

        gas_burnt: NearGas {

            inner: 2427985842086,

        },

        tokens_burnt: 242798584208600000000,

        executor_id: AccountId(

            "dev-20231025181306-49674812318388",

        ),

        status: SuccessReceiptId(AZYzkr7o2ibpMRTJkiaJa1poVumJ3MZiTim7VkMGvqHk),

    },

    receipts: [

        ExecutionOutcome {

            transaction_hash: AZYzkr7o2ibpMRTJkiaJa1poVumJ3MZiTim7VkMGvqHk,

            block_hash: 7ZTTf8bypb4JVyM4Mj1ktr7XaEp4HQuboZCg3egpr5nf,

            logs: [

                "claim_alias / alias: \"alias2\" / account_id: AccountId(\n    \"dev-20231025181306-49674812318388\",\n) / timestamp: 1698257587541264886",

            ],

            receipt_ids: [

                3yPPQ9TaYS1eb1rM7y6SF1NkUpFq5AB7Znyo5RGJtYRR,

            ],

            gas_burnt: NearGas {

                inner: 3377843036831,

            },

            tokens_burnt: 337784303683100000000,

            executor_id: AccountId(

                "dev-20231025181300-77216102617382",

            ),

            status: SuccessValue(''),

        },

        ExecutionOutcome {

            transaction_hash: 3yPPQ9TaYS1eb1rM7y6SF1NkUpFq5AB7Znyo5RGJtYRR,

            block_hash: 8rGXZeJc6zCXKRfWNFm4L9gfyUQpchmZXFYvLQkU9Qqn,

            logs: [],

            receipt_ids: [],

            gas_burnt: NearGas {

                inner: 223182562500,

            },

            tokens_burnt: 0,

            executor_id: AccountId(

                "dev-20231025181306-49674812318388",

            ),

            status: SuccessValue(''),

        },

    ],

    status: SuccessValue(''),

}

total_gas_burnt_usd: 0.004027379642866555

outcome (success: true):

  outcome_gas_burnt_usd: 0.0016218945425134478

  outcome_tokens_burnt_usd: 0.001621894542513448

outcome (success: true):

  outcome_gas_burnt_usd: 0.0022563991486031078

  outcome_tokens_burnt_usd: 0.002256399148603108

outcome (success: true):

  outcome_gas_burnt_usd: 0.00014908595175

  outcome_tokens_burnt_usd: 0.0





get_account_info(account2): Some(

    (

        "alias2",

        (

            1698257587541264886,

            0,

        ),

    ),

)





get_alias_map_borsh(alias2): Some(

    {

        AccountId(

            "dev-20231025181306-49674812318388",

        ): (

            1698257587541264886,

            0,

        ),

    },

)





claim_alias(account2, alias1): ExecutionFinalResult {

    total_gas_burnt: NearGas {

        inner: 6092566064476,

    },

    transaction: ExecutionOutcome {

        transaction_hash: 7ufMYsEhWQ234x6eDmS46nU8sAthkNnHJswEcETqZLwm,

        block_hash: 8yW75w3isxNbH9HY2LZ45mVGaXFpQtx9cpSr4jDudE39,

        logs: [],

        receipt_ids: [

            GFgSV4FWQ1wLvButPhXTDDmmUMySk5JVZE7atPWLZCvr,

        ],

        gas_burnt: NearGas {

            inner: 2427985842086,

        },

        tokens_burnt: 242798584208600000000,

        executor_id: AccountId(

            "dev-20231025181306-49674812318388",

        ),

        status: SuccessReceiptId(GFgSV4FWQ1wLvButPhXTDDmmUMySk5JVZE7atPWLZCvr),

    },

    receipts: [

        ExecutionOutcome {

            transaction_hash: GFgSV4FWQ1wLvButPhXTDDmmUMySk5JVZE7atPWLZCvr,

            block_hash: EGeYozLseFhopyay4YYsteMzJoG6fwyssYobAbMq9gVq,

            logs: [

                "claim_alias / alias: \"alias1\" / account_id: AccountId(\n    \"dev-20231025181306-49674812318388\",\n) / timestamp: 1698257588576457141",

            ],

            receipt_ids: [

                9Rua2WfqevuXGeM7PQyMo3g9eYWWhmUK1VgsLrRyxBTW,

            ],

            gas_burnt: NearGas {

                inner: 3441397659890,

            },

            tokens_burnt: 344139765989000000000,

            executor_id: AccountId(

                "dev-20231025181300-77216102617382",

            ),

            status: SuccessValue(''),

        },

        ExecutionOutcome {

            transaction_hash: 9Rua2WfqevuXGeM7PQyMo3g9eYWWhmUK1VgsLrRyxBTW,

            block_hash: 8BXZVgEfx4c7eoatVMavCCbn4wGBEsvrPmWKWEoR9mJC,

            logs: [],

            receipt_ids: [],

            gas_burnt: NearGas {

                inner: 223182562500,

            },

            tokens_burnt: 0,

            executor_id: AccountId(

                "dev-20231025181306-49674812318388",

            ),

            status: SuccessValue(''),

        },

    ],

    status: SuccessValue(''),

}

total_gas_burnt_usd: 0.004069834131069968

outcome (success: true):

  outcome_gas_burnt_usd: 0.0016218945425134478

  outcome_tokens_burnt_usd: 0.001621894542513448

outcome (success: true):

  outcome_gas_burnt_usd: 0.00229885363680652

  outcome_tokens_burnt_usd: 0.00229885363680652

outcome (success: true):

  outcome_gas_burnt_usd: 0.00014908595175

  outcome_tokens_burnt_usd: 0.0





get_account_info(account2): Some(

    (

        "alias1",

        (

            1698257588576457141,

            1,

        ),

    ),

)





get_alias_map(account2, alias1): Some(

    {

        AccountId(

            "dev-20231025181302-77502825178218",

        ): (

            1698257584510613230,

            0,

        ),

        AccountId(

            "dev-20231025181306-49674812318388",

        ): (

            1698257588576457141,

            1,

        ),

    },

)





get_alias_map(account2, alias2): Some(

    {},

)





claim_alias(account1, alias2): ExecutionFinalResult {

    total_gas_burnt: NearGas {

        inner: 6088337098636,

    },

    transaction: ExecutionOutcome {

        transaction_hash: XAE2N1phYT5UtwGum8tiLRycRhfq57DD776iiXnMR1e,

        block_hash: EKJr7WNZjpFXehUmxgBbSCV14b3EopN2eNEDmZg5tmj3,

        logs: [],

        receipt_ids: [

            CpoUrgFQ59ERJ5ooW5Fgw4taFmbC67HViUcZkLKzG8Jj,

        ],

        gas_burnt: NearGas {

            inner: 2427985842086,

        },

        tokens_burnt: 242798584208600000000,

        executor_id: AccountId(

            "dev-20231025181302-77502825178218",

        ),

        status: SuccessReceiptId(CpoUrgFQ59ERJ5ooW5Fgw4taFmbC67HViUcZkLKzG8Jj),

    },

    receipts: [

        ExecutionOutcome {

            transaction_hash: CpoUrgFQ59ERJ5ooW5Fgw4taFmbC67HViUcZkLKzG8Jj,

            block_hash: Gbw7gYUnWQCYgvjcYdrX7xiwiqNwxAtHN5yzPj8jhLnB,

            logs: [

                "claim_alias / alias: \"alias2\" / account_id: AccountId(\n    \"dev-20231025181302-77502825178218\",\n) / timestamp: 1698257589591992858",

            ],

            receipt_ids: [

                C2mfcfR7SxFwRNroDKvTAa1VL2UWgceKxSifNQMezJ2o,

            ],

            gas_burnt: NearGas {

                inner: 3437168694050,

            },

            tokens_burnt: 343716869405000000000,

            executor_id: AccountId(

                "dev-20231025181300-77216102617382",

            ),

            status: SuccessValue(''),

        },

        ExecutionOutcome {

            transaction_hash: C2mfcfR7SxFwRNroDKvTAa1VL2UWgceKxSifNQMezJ2o,

            block_hash: 2e8iXHt161wQ5EjfxwZBN57d1NGZgVQSx6WxjTEwNpAr,

            logs: [],

            receipt_ids: [],

            gas_burnt: NearGas {

                inner: 223182562500,

            },

            tokens_burnt: 0,

            executor_id: AccountId(

                "dev-20231025181302-77502825178218",

            ),

            status: SuccessValue(''),

        },

    ],

    status: SuccessValue(''),

}

total_gas_burnt_usd: 0.004067009181888848

outcome (success: true):

  outcome_gas_burnt_usd: 0.0016218945425134478

  outcome_tokens_burnt_usd: 0.001621894542513448

outcome (success: true):

  outcome_gas_burnt_usd: 0.0022960286876254

  outcome_tokens_burnt_usd: 0.0022960286876254

outcome (success: true):

  outcome_gas_burnt_usd: 0.00014908595175

  outcome_tokens_burnt_usd: 0.0





get_account_info(account1): Some(

    (

        "alias2",

        (

            1698257589591992858,

            0,

        ),

    ),

)





get_alias_map(account1, alias2): Some(

    {

        AccountId(

            "dev-20231025181302-77502825178218",

        ): (

            1698257589591992858,

            0,

        ),

    },

)





get_alias_map(account1, alias1): Some(

    {

        AccountId(

            "dev-20231025181306-49674812318388",

        ): (

            1698257588576457141,

            1,

        ),

    },

)





claim_alias(account1, alias1): ExecutionFinalResult {

    total_gas_burnt: NearGas {

        inner: 6092566064476,

    },

    transaction: ExecutionOutcome {

        transaction_hash: JAFMNi2hb4rzrc3q82CzbReCdqgBd8CUqUncqHBxCZLd,

        block_hash: 25tsVvnSp23o22n77c1sfXwfiCaSjh15RiQsX4oGbK9H,

        logs: [],

        receipt_ids: [

            4cNDBcAetGv7PsKmdLDLLSu2QMvxpqBZHKUt5iuVL2yB,

        ],

        gas_burnt: NearGas {

            inner: 2427985842086,

        },

        tokens_burnt: 242798584208600000000,

        executor_id: AccountId(

            "dev-20231025181302-77502825178218",

        ),

        status: SuccessReceiptId(4cNDBcAetGv7PsKmdLDLLSu2QMvxpqBZHKUt5iuVL2yB),

    },

    receipts: [

        ExecutionOutcome {

            transaction_hash: 4cNDBcAetGv7PsKmdLDLLSu2QMvxpqBZHKUt5iuVL2yB,

            block_hash: 2gahSfszKHzdhDQ7zUs1T5qGYjV71xGHpP4EAjnVxTwv,

            logs: [

                "claim_alias / alias: \"alias1\" / account_id: AccountId(\n    \"dev-20231025181302-77502825178218\",\n) / timestamp: 1698257590811907661",

            ],

            receipt_ids: [

                327ZEFmdLpNVNUJfcbRGoFB656ByjcQgaTJc2CcaPg6f,

            ],

            gas_burnt: NearGas {

                inner: 3441397659890,

            },

            tokens_burnt: 344139765989000000000,

            executor_id: AccountId(

                "dev-20231025181300-77216102617382",

            ),

            status: SuccessValue(''),

        },

        ExecutionOutcome {

            transaction_hash: 327ZEFmdLpNVNUJfcbRGoFB656ByjcQgaTJc2CcaPg6f,

            block_hash: 3iuZ57Y9JRSqMUVkKJ9nCPbByA3g6RxnGX9XhDV2boLE,

            logs: [],

            receipt_ids: [],

            gas_burnt: NearGas {

                inner: 223182562500,

            },

            tokens_burnt: 0,

            executor_id: AccountId(

                "dev-20231025181302-77502825178218",

            ),

            status: SuccessValue(''),

        },

    ],

    status: SuccessValue(''),

}

total_gas_burnt_usd: 0.004069834131069968

outcome (success: true):

  outcome_gas_burnt_usd: 0.0016218945425134478

  outcome_tokens_burnt_usd: 0.001621894542513448

outcome (success: true):

  outcome_gas_burnt_usd: 0.00229885363680652

  outcome_tokens_burnt_usd: 0.00229885363680652

outcome (success: true):

  outcome_gas_burnt_usd: 0.00014908595175

  outcome_tokens_burnt_usd: 0.0





get_account_info(account1): Some(

    (

        "alias1",

        (

            1698257590811907661,

            1,

        ),

    ),

)





get_alias_map(account1, alias1): Some(

    {

        AccountId(

            "dev-20231025181306-49674812318388",

        ): (

            1698257588576457141,

            0,

        ),

        AccountId(

            "dev-20231025181302-77502825178218",

        ): (

            1698257590811907661,

            1,

        ),

    },

)





get_alias_map(account1, alias2): Some(

    {},

)



Rebuilding...



Done in 309ms.

2023-10-25T18:13:21.559044Z  INFO 📦 starting build

2023-10-25T18:13:21.559940Z  INFO spawning asset pipelines

2023-10-25T18:13:22.335805Z  INFO building chat

2023-10-25T18:13:22.335807Z  INFO copying & hashing icon path="\\\\?\\C:\\home\\git\\polyglot\\apps\\chat\\ui\\public\\favicon.ico"

2023-10-25T18:13:22.335874Z  INFO copying & hashing css path="\\\\?\\C:\\home\\git\\polyglot\\apps\\chat\\ui\\target\\tailwind.css"

2023-10-25T18:13:22.335877Z  INFO copying & hashing css path="\\\\?\\C:\\home\\git\\polyglot\\deps\\hyperui\\public\\components.css"

2023-10-25T18:13:22.337788Z  INFO finished copying & hashing icon path="\\\\?\\C:\\home\\git\\polyglot\\apps\\chat\\ui\\public\\favicon.ico"

2023-10-25T18:13:22.338010Z  INFO finished copying & hashing css path="\\\\?\\C:\\home\\git\\polyglot\\apps\\chat\\ui\\target\\tailwind.css"

2023-10-25T18:13:22.339313Z  INFO finished copying & hashing css path="\\\\?\\C:\\home\\git\\polyglot\\deps\\hyperui\\public\\components.css"

    Finished release [optimized] target(s) in 2.49s

2023-10-25T18:13:25.004748Z  INFO fetching cargo artifacts

2023-10-25T18:13:25.560728Z  INFO processing WASM for chat

2023-10-25T18:13:25.604938Z  INFO calling wasm-bindgen for chat

2023-10-25T18:13:25.879152Z  INFO copying generated wasm-bindgen artifacts

2023-10-25T18:13:26.206426Z  INFO using system installed binary app=wasm-opt version=version_113

2023-10-25T18:13:26.207896Z  INFO calling wasm-opt

2023-10-25T18:13:43.843781Z  INFO copying generated wasm-opt artifacts

2023-10-25T18:13:43.854304Z  INFO applying new distribution

2023-10-25T18:13:43.860056Z  INFO ✅ success



Build completed!



Filename                                     	Size      

dist\favicon-f1d578da7a480441.ico            	16.28 KiB 

dist\chat-256b136659b2015d_bg.wasm           	908.58 KiB

dist\chat-256b136659b2015d.js                	48.95 KiB 

dist/components-61317960c9987b2e-YWB32TZ5.css	78.01 KiB 

dist/tailwind-25555618daee4860-QTLKFJWP.css  	6.93 KiB  

dist/1-22H55Z4H.js                           	23.51 KiB 

dist\index.html                              	1.18 KiB  

                                             	——————————

                                             	1.06 MiB  



Lockfile is up to date, resolution step is skipped

Already up to date



Done in 2.4s



> polyglot@ test:e2e C:\home\git\polyglot\apps\chat\ui\e2e

> playwright test



 INFO  Accepting connections at http://localhost:3000

 HTTP  10/25/2023 2:13:59 PM ::1 GET /

 HTTP  10/25/2023 2:13:59 PM ::1 Returned 200 in 118 ms



Running 1 test using 1 worker



[1/1] [Desktop Chrome] › test.spec.ts:3:5 › test

 HTTP  10/25/2023 2:14:03 PM ::1 GET /

 HTTP  10/25/2023 2:14:03 PM ::1 Returned 200 in 5 ms

 HTTP  10/25/2023 2:14:03 PM ::1 GET /tailwind-25555618daee4860-QTLKFJWP.css

 HTTP  10/25/2023 2:14:03 PM ::1 GET /components-61317960c9987b2e-YWB32TZ5.css

 HTTP  10/25/2023 2:14:03 PM ::1 GET /chat-256b136659b2015d_bg.wasm

 HTTP  10/25/2023 2:14:03 PM ::1 GET /1-22H55Z4H.js

 HTTP  10/25/2023 2:14:03 PM ::1 Returned 200 in 8 ms

 HTTP  10/25/2023 2:14:03 PM ::1 Returned 200 in 7 ms

 HTTP  10/25/2023 2:14:03 PM ::1 Returned 200 in 10 ms

 HTTP  10/25/2023 2:14:03 PM ::1 Returned 200 in 18 ms

  1 passed (11.8s)



To open last HTML report run:



  npx playwright show-report



In [ ]:
{ . "$ScriptDir/../spiral/test/build.ps1" } | Invoke-Block

── pwsh ────────────────────────────────────────────────────────────────────────

. ../../scripts/nbs_header.ps1

. ../../scripts/core.ps1



── pwsh ────────────────────────────────────────────────────────────────────────

{ . ../../apps/spiral/dist/Supervisor$(GetExecutableSuffix) --buildfile test.spi

test.fsx --timeout 10000 } | Invoke-Block



╭─[ 4.53s - stdout ]───────────────────────────────────────────────────────────╮

│ 00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60                        │

│ 00:00:00 #2 [Debug] executeAsync / options: { Command =                      │

│    "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral         │

│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll"           │

│ port=13805"                                                                  │

│   WorkingDirectory = None                                                    │

│   CancellationToken = Some System.Threading.CancellationToken                │

│   OnLine = Some <fun:main@411-297> }                                         │

│ 00:00:00 #3 [Debug] > pwd: C:\home\git\polyglot\spiral\test                  │

│ 00:00:00 #4 [Debug] > dll_path:                                              │

│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │

│ 2\artifacts\bin\The Spiral Language 2\release                                │

│ 00:00:00 #5 [Debug] runWithTimeoutAsync / timeout: 500                       │

│ 00:00:00 #6 [Verbose] waitForPortAccess / port: 13805 / retry: 0             │

│ 00:00:01 #7 [Debug] sendJson / port: 13805 / json: {"Ping":true} /           │

│ result.Length:                                                               │

│ 00:00:01 #8 [Verbose] awaitCompiler / Ping / result: Some(null) / port:      │

│ 13805 / retry: 0                                                             │

│ 00:00:01 #9 [Debug] > Server bound to: http://localhost:13805                │

│ 00:00:01 #10 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:01 #11 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:01 #12 [Debug] sendJson / port: 13805 / json:                          │

│ {"FileOpen":{"spiText":"inl app () =\n    \u0022test\u0022 |\u003E           │

│ console.write_line\n    0i32\n\ninl main () =\n    print_static              │

│ \u0022\u003Ctest\u003E\u0022\n\n    app\n    |\u003E dyn\n    |\u003E        │

│ ignore\n\n    print_static                                                   │

│ \u0022\u003C/test\u003E\u0022\n","uri":"file:///C:\\home\\git\\polyglot\\spi │

│ ral\\test\\test.spi"}} / result.Length:                                      │

│ 00:00:01 #13 [Debug] sendJson / port: 13805 / json:                          │

│ {"BuildFile":{"backend":"Fsharp","uri":"file:///C:\\home\\git\\polyglot\\spi │

│ ral\\test\\test.spi"}} / result.Length:                                      │

│ 00:00:02 #14 [Debug] > Building C:\home\git\polyglot\spiral\test\test.spi    │

│ 00:00:02 #15 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:03 #16 [Debug] buildFile / takeWhileInclusive / fsxContent:  / errors: │

│ [] / typeErrorCount: 0                                                       │

│ 00:00:03 #17 [Debug] > <test>                                                │

│ 00:00:03 #18 [Debug] > </test>                                               │

│ 00:00:03 #19 [Debug] buildFile / takeWhileInclusive / fsxContent: Some(let   │

│ rec closure0 () () : int32 =                                                 │

│     let v0 : string = "test"                                                 │

│     System.Console.WriteLine v0                                              │

│     0                                                                        │

│ let v0 : (unit -> int32) = closure0()                                        │

│ ()                                                                           │

│ ) / errors: [] / typeErrorCount: 0                                           │

│ 00:00:03 #20 [Debug] watchWithFilter / Disposing watch stream / filter:      │

│ FileName, LastWrite                                                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── pwsh ────────────────────────────────────────────────────────────────────────

dotnet fable --optimize --lang rs --extension .rs



╭─[ 4.68s - stdout ]───────────────────────────────────────────────────────────╮

│ Fable 4.2.2: F# to Rust compiler (status: alpha)                             │

│                                                                              │

│ Thanks to the contributor! @drk-mtr                                          │

│ Stand with Ukraine! https://standwithukraine.com.ua/                         │

│                                                                              │

│ Parsing test.fsproj...                                                       │

│ Retrieving project options from cache, in case of issues run `dotnet fable   │

│ clean` or try `--noCache` option.                                            │

│ Project and references (1 source files) parsed in 256ms                      │

│                                                                              │

│ Started Fable compilation...                                                 │

│ Fable compilation finished in 2429ms                                         │

│                                                                              │

│ .\test.fsx(6,0): (6,2) warning FABLE: For Rust, support for F# static and    │

│ module do bindings is disabled by default. It can be enabled with the        │

│ 'static_do_bindings' feature. Use at your own risk!                          │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── pwsh ────────────────────────────────────────────────────────────────────────

cargo fmt --



── pwsh ────────────────────────────────────────────────────────────────────────

cargo build --release



╭─[ 3.96s - stdout ]───────────────────────────────────────────────────────────╮

│ warning: C:\home\git\polyglot\Cargo.toml: unused manifest key:          │

│ lib.members                                                                │

│    Compiling test v0.0.1 (C:\home\git\polyglot\spiral\test)           │

│ warning: unused import: `info`                                        │

│    --> spiral\test\./main.rs:190:15                                   │

│     |                                                                 │

│ 190 | use tracing::{info, Level};                                     │

│     |               ^^^^                                              │

│     |                                                                 │

│     = note: `#[warn(unused_imports)]` on by default                   │

│                                                                       │

│ warning: associated items `new`, `add_item`, and `remove_item` are      │

│ never used                                                                 │

│   --> spiral\test\./main.rs:46:8                                      │

│    |                                                                  │

│ 45 | impl Cart {                                                      │

│    | --------- associated items in this implementation                │

│ 46 |     fn new() -> Cart {                                           │

│    |        ^^^                                                       │

│ ...                                                                   │

│ 50 |     fn add_item(&mut self, item: Item) {                         │

│    |        ^^^^^^^^                                                  │

│ ...                                                                   │

│ 56 |     fn remove_item(&mut self, item: &Item) {                     │

│    |        ^^^^^^^^^^^                                               │

│    |                                                                  │

│    = note: `#[warn(dead_code)]` on by default                         │

│                                                                       │

│ warning: function `parse_comment` is never used                       │

│    --> spiral\test\./main.rs:124:4                                    │

│     |                                                                 │

│ 124 | fn parse_comment(input: &str) -> IResult<&str, SpiralToken> {   │

│     |    ^^^^^^^^^^^^^                                                │

│                                                                       │

│ warning: function `parse_string` is never used                        │

│    --> spiral\test\./main.rs:130:4                                    │

│     |                                                                 │

│ 130 | fn parse_string(input: &str) -> IResult<&str, SpiralToken> {    │

│     |    ^^^^^^^^^^^^                                                 │

│                                                                       │

│ warning: function `parse_identifier` is never used                    │

│    --> spiral\test\./main.rs:145:4                                    │

│     |                                                                 │

│ 145 | fn parse_identifier(input: &str) -> IResult<&str, SpiralToken> {[  │

│ 0m                                                                           │

│     |    ^^^^^^^^^^^^^^^^                                             │

│                                                                       │

│ warning: function `parse_integer` is never used                       │

│    --> spiral\test\./main.rs:157:4                                    │

│     |                                                                 │

│ 157 | fn parse_integer(input: &str) -> IResult<&str, SpiralToken> {   │

│     |    ^^^^^^^^^^^^^                                                │

│                                                                       │

│ warning: function `parse_operator` is never used                      │

│    --> spiral\test\./main.rs:165:4                                    │

│     |                                                                 │

│ 165 | fn parse_operator(input: &str) -> IResult<&str, SpiralToken> {  │

│     |    ^^^^^^^^^^^^^^                                               │

│                                                                       │

│ warning: function `parse_token` is never used                         │

│    --> spiral\test\./main.rs:170:4                                    │

│     |                                                                 │

│ 170 | fn parse_token(input: &str) -> IResult<&str, SpiralToken> {     │

│     |    ^^^^^^^^^^^                                                  │

│                                                                       │

│ warning: function `format_token` is never used                        │

│    --> spiral\test\./main.rs:180:4                                    │

│     |                                                                 │

│ 180 | fn format_token(token: &SpiralToken) -> String {                │

│     |    ^^^^^^^^^^^^                                                 │

│                                                                       │

│ warning: function `parse_expression` is never used                    │

│    --> spiral\test\./main.rs:213:4                                    │

│     |                                                                 │

│ 213 | fn parse_expression(input: &str) -> IResult<&str, SpiralToken> {[  │

│ 0m                                                                           │

│     |    ^^^^^^^^^^^^^^^^                                             │

│                                                                       │

│ warning: `test` (bin "test") generated 10 warnings (run `cargo fix      │

│ --bin "test"` to apply 1 suggestion)                                       │

│     Finished release [optimized] target(s) in 3.79s                   │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── pwsh ────────────────────────────────────────────────────────────────────────

$env:RUST_LOG="info"

{ cargo test --release } | Invoke-Block



╭─[ 6.16s - stdout ]───────────────────────────────────────────────────────────╮

│ warning: C:\home\git\polyglot\Cargo.toml: unused manifest key:          │

│ lib.members                                                                │

│    Compiling test v0.0.1 (C:\home\git\polyglot\spiral\test)           │

│     Finished release [optimized] target(s) in 5.61s                   │

│      Running unittests main.rs                                          │

│ (C:\home\git\polyglot\target\release\deps\test-77978ca43562efd9.exe)       │

│                                                                              │

│ running 3 tests                                                              │

│ test test_parse_number ... ok                                                │

│ 2023-10-25T18:14:34.071266Z  INFO test: input=Operator("(") │

│ 2023-10-25T18:14:34.071382Z  INFO test:                     │

│ input=Integer(-6349143009259986327)                                          │

│ 2023-10-25T18:14:34.071507Z  INFO test:                     │

│ input=Identifier("aRN0JAtxqWMGrbiA5De3vgfCj7lAmc2")                          │

│ 2023-10-25T18:14:34.071693Z  INFO test:                     │

│ input=Identifier("Nt2MTm")                                                   │

│ 2023-10-25T18:14:34.071783Z  INFO test: input=Operator("=") │

│ 2023-10-25T18:14:34.071852Z  INFO test:                     │

│ input=StringLiteral("P(W_A*NQ")                                              │

│ 2023-10-25T18:14:34.071901Z  INFO test:                     │

│ input=Integer(1821828548235297506)                                           │

│ 2023-10-25T18:14:34.071955Z  INFO test:                     │

│ input=Identifier("YueI2uVnleoP")                                             │

│ 2023-10-25T18:14:34.072032Z  INFO test:                     │

│ input=Identifier("m2s5Rw2i07UOs4J3IiRce6F7T")                                │

│ 2023-10-25T18:14:34.072084Z  INFO test: input=Operator("*") │

│ 2023-10-25T18:14:34.072136Z  INFO test:                     │

│ input=Identifier("Tl7YimES0zirR")                                            │

│ 2023-10-25T18:14:34.072194Z  INFO test: input=Comment("9")  │

│ 2023-10-25T18:14:34.072239Z  INFO test:                     │

│ input=StringLiteral("}X q")                                                  │

│ 2023-10-25T18:14:34.072310Z  INFO test:                     │

│ input=Comment("]6gkoD%D?`W%Ddy5<ux^/U 9';")                                  │

│ 2023-10-25T18:14:34.072364Z  INFO test:                     │

│ input=Identifier("W1gDIkiCT2")                                               │

│ 2023-10-25T18:14:34.072417Z  INFO test:                     │

│ input=Identifier("uyNVl8eS1pDJV28ahM")                                       │

│ 2023-10-25T18:14:34.072463Z  INFO test: input=Operator("-") │

│ 2023-10-25T18:14:34.072501Z  INFO test:                     │

│ input=Integer(-6419904714186107547)                                          │

│ 2023-10-25T18:14:34.072559Z  INFO test:                     │

│ input=StringLiteral(".U=t3C~/i>?mw'WG'$v#DfZnqp")                            │

│ 2023-10-25T18:14:34.072608Z  INFO test:                     │

│ input=Identifier("qczn4")                                                    │

│ 2023-10-25T18:14:34.072646Z  INFO test: input=Operator("*") │

│ 2023-10-25T18:14:34.072775Z  INFO test:                     │

│ input=Comment("o/5%_R@}\"\\.%#ZPT$%`%/E&,")                                  │

│ 2023-10-25T18:14:34.072858Z  INFO test: input=Operator("=") │

│ 2023-10-25T18:14:34.072908Z  INFO test:                     │

│ input=Integer(5637742992489564332)                                           │

│ 2023-10-25T18:14:34.072952Z  INFO test:                     │

│ input=Integer(-1621012481018004178)                                          │

│ 2023-10-25T18:14:34.072999Z  INFO test:                     │

│ input=Integer(8650826561352882427)                                           │

│ 2023-10-25T18:14:34.073049Z  INFO test: input=Comment("'")  │

│ 2023-10-25T18:14:34.073098Z  INFO test: input=Operator("-") │

│ 2023-10-25T18:14:34.073170Z  INFO test:                     │

│ input=Comment("$?]+'{%XRz\"")                                                │

│ 2023-10-25T18:14:34.073250Z  INFO test:                     │

│ input=Identifier("cJ16PpLs4bUP9PTLm2UV7")                                    │

│ 2023-10-25T18:14:34.073314Z  INFO test:                     │

│ input=Comment("yLB${E9/a^'3<Y??")                                            │

│ 2023-10-25T18:14:34.073375Z  INFO test: input=Comment("")   │

│ 2023-10-25T18:14:34.073428Z  INFO test:                     │

│ input=Integer(-7784206716088882934)                                          │

│ 2023-10-25T18:14:34.073514Z  INFO test:                     │

│ input=Comment("jw~`.FMN5(MF/zn':,NXXF7!")                                    │

│ 2023-10-25T18:14:34.073595Z  INFO test:                     │

│ input=Comment(";%Y|GH'ej5GVF?8<N*\\Igc1a^")                                  │

│ 2023-10-25T18:14:34.073654Z  INFO test:                     │

│ input=StringLiteral("")                                                      │

│ 2023-10-25T18:14:34.073719Z  INFO test:                     │

│ input=Identifier("L6IQSIU3f7")                                               │

│ 2023-10-25T18:14:34.073802Z  INFO test:                     │

│ input=StringLiteral("v!1W&I ~K^RIQ=")                                        │

│ 2023-10-25T18:14:34.073862Z  INFO test:                     │

│ input=StringLiteral("")                                                      │

│ 2023-10-25T18:14:34.073937Z  INFO test:                     │

│ input=Comment("h%\"-rBxf{Ho'")                                               │

│ 2023-10-25T18:14:34.073999Z  INFO test: input=Comment("Rx") │

│ 2023-10-25T18:14:34.074052Z  INFO test:                     │

│ input=Integer(2408360071578598285)                                           │

│ 2023-10-25T18:14:34.074101Z  INFO test:                     │

│ input=Integer(-4505388106162426773)                                          │

│ 2023-10-25T18:14:34.074148Z  INFO test:                     │

│ input=Integer(2688243002543883301)                                           │

│ 2023-10-25T18:14:34.074202Z  INFO test:                     │

│ input=Integer(1241355096042491734)                                           │

│ 2023-10-25T18:14:34.074281Z  INFO test:                     │

│ input=Identifier("Cl7ra4MBHbf7yD2iPOCN")                                     │

│ 2023-10-25T18:14:34.074345Z  INFO test: input=Operator("*") │

│ 2023-10-25T18:14:34.074466Z  INFO test:                     │

│ input=StringLiteral(":ku:nw[I?g_/;")                                         │

│ 2023-10-25T18:14:34.074598Z  INFO test: input=Operator(")") │

│ 2023-10-25T18:14:34.074686Z  INFO test:                     │

│ input=Identifier("Kt")                                                       │

│ 2023-10-25T18:14:34.074739Z  INFO test:                     │

│ input=StringLiteral("0B*Fg")                                                 │

│ 2023-10-25T18:14:34.074781Z  INFO test:                     │

│ input=Integer(-8675329131458767358)                                          │

│ 2023-10-25T18:14:34.074825Z  INFO test: input=Operator(")") │

│ 2023-10-25T18:14:34.074862Z  INFO test:                     │

│ input=Integer(-3031723631521493482)                                          │

│ 2023-10-25T18:14:34.074900Z  INFO test:                     │

│ input=StringLiteral("N")                                                     │

│ 2023-10-25T18:14:34.074942Z  INFO test: input=Operator("(") │

│ 2023-10-25T18:14:34.075000Z  INFO test:                     │

│ input=StringLiteral("#/g?C*'aV5W(.x@Jx2'")                                   │

│ 2023-10-25T18:14:34.075069Z  INFO test:                     │

│ input=StringLiteral("HO0I=.>ETW%4>?Q*Uh*G")                                  │

│ 2023-10-25T18:14:34.075128Z  INFO test:                     │

│ input=Comment("/SyL:\"\"9&_y|AX})$C")                                        │

│ 2023-10-25T18:14:34.075185Z  INFO test:                     │

│ input=Comment("``&@xOfrg|=/G^\"/<}")                                         │

│ 2023-10-25T18:14:34.075232Z  INFO test: input=Comment("?`)[ │

│ aU1<\\")                                                                     │

│ 2023-10-25T18:14:34.075283Z  INFO test: input=Comment("Lf'[ │

│ +u57")                                                                       │

│ 2023-10-25T18:14:34.075321Z  INFO test: input=Operator("=") │

│ 2023-10-25T18:14:34.075351Z  INFO test:                     │

│ input=Integer(1200826272562251824)                                           │

│ 2023-10-25T18:14:34.075414Z  INFO test:                     │

│ input=Identifier("xkFJSTQk2E25oX575MXIim")                                   │

│ 2023-10-25T18:14:34.075447Z  INFO test:                     │

│ input=Integer(-8738157252275491410)                                          │

│ 2023-10-25T18:14:34.075482Z  INFO test: input=Comment("")   │

│ 2023-10-25T18:14:34.075537Z  INFO test:                     │

│ input=Comment("up(:B(Q6.w,cy=Y=<2*W^.bf\\\"")                                │

│ 2023-10-25T18:14:34.075632Z  INFO test:                     │

│ input=StringLiteral("O7!$a+'$=/dWE`")                                        │

│ 2023-10-25T18:14:34.075731Z  INFO test:                     │

│ input=StringLiteral("*uQG`.&<.HWv'8JD}Q2R%.[:#6p'")                          │

│ 2023-10-25T18:14:34.075808Z  INFO test:                     │

│ input=Comment("`S7/|$0?*s[9q='B3mcmB]rKYI9}7")                               │

│ 2023-10-25T18:14:34.075855Z  INFO test:                     │

│ input=Identifier("I7grn6N")                                                  │

│ 2023-10-25T18:14:34.075919Z  INFO test:                     │

│ input=Comment("u\\{NhJN,N+i%]&R?2Z{AM.O,{m")                                 │

│ 2023-10-25T18:14:34.075979Z  INFO test:                     │

│ input=StringLiteral("?'=`.~|P$'2m:")                                         │

│ 2023-10-25T18:14:34.076037Z  INFO test:                     │

│ input=StringLiteral("s<#`6*x_f8/s&`3l`Nj*Q=X:??")                            │

│ 2023-10-25T18:14:34.076071Z  INFO test:                     │

│ input=Integer(3767488652762050748)                                           │

│ 2023-10-25T18:14:34.076138Z  INFO test:                     │

│ input=Integer(-7027048739768310071)                                          │

│ 2023-10-25T18:14:34.076199Z  INFO test:                     │

│ input=Identifier("h5L9J61ACdoCjpy08KL")                                      │

│ 2023-10-25T18:14:34.076251Z  INFO test:                     │

│ input=Identifier("Gps74hvCnPbMAX")                                           │

│ 2023-10-25T18:14:34.076289Z  INFO test: input=Operator("+") │

│ 2023-10-25T18:14:34.076337Z  INFO test:                     │

│ input=Identifier("Y5x6xVVD3xh8wuqhME59")                                     │

│ 2023-10-25T18:14:34.076377Z  INFO test:                     │

│ input=Integer(-7594646605980210657)                                          │

│ 2023-10-25T18:14:34.076430Z  INFO test:                     │

│ input=StringLiteral("V:~#rl9u%l?3+//*n``v")                                  │

│ 2023-10-25T18:14:34.076478Z  INFO test:                     │

│ input=Identifier("FlRPq59n")                                                 │

│ 2023-10-25T18:14:34.076516Z  INFO test: input=Operator("-") │

│ 2023-10-25T18:14:34.076555Z  INFO test:                     │

│ input=Comment("-$;h<|X=")                                                    │

│ 2023-10-25T18:14:34.076589Z  INFO test:                     │

│ input=Integer(4677277158713637958)                                           │

│ 2023-10-25T18:14:34.076625Z  INFO test: input=Operator(")") │

│ 2023-10-25T18:14:34.076673Z  INFO test:                     │

│ input=StringLiteral("*xCsW%?FeFsP8|bB+")                                     │

│ 2023-10-25T18:14:34.076708Z  INFO test:                     │

│ input=Integer(-2844476234557746329)                                          │

│ 2023-10-25T18:14:34.076755Z  INFO test:                     │

│ input=Identifier("oK6cLlCoKWpB4TUY")                                         │

│ 2023-10-25T18:14:34.076794Z  INFO test: input=Operator("*") │

│ 2023-10-25T18:14:34.076832Z  INFO test:                     │

│ input=Integer(2732339069482825008)                                           │

│ 2023-10-25T18:14:34.076892Z  INFO test:                     │

│ input=Integer(5867179359280277548)                                           │

│ 2023-10-25T18:14:34.076924Z  INFO test:                     │

│ input=Integer(8865967843725422807)                                           │

│ 2023-10-25T18:14:34.081882Z  INFO test:                     │

│ input=Identifier("ZX3N78k9j6rU17xRJ0nDh3ar3Ubd")                             │

│ 2023-10-25T18:14:34.081986Z  INFO test:                     │

│ input=Identifier("f46DuQe59F4wjfZsZjGWuG3x")                                 │

│ 2023-10-25T18:14:34.082043Z  INFO test:                     │

│ input=Comment("`2)")                                                         │

│ 2023-10-25T18:14:34.082130Z  INFO test:                     │

│ input=Integer(-7786034577875234913)                                          │

│ 2023-10-25T18:14:34.082198Z  INFO test:                     │

│ input=Identifier("yQV7m8kiey11ifz2Wif7mlLF64BpM7H")                          │

│ 2023-10-25T18:14:34.082255Z  INFO test:                     │

│ input=Identifier("htAzQ0qxcF")                                               │

│ 2023-10-25T18:14:34.082302Z  INFO test:                     │

│ input=Identifier("wOJLx5")                                                   │

│ 2023-10-25T18:14:34.082381Z  INFO test:                     │

│ input=Comment("}{&_7=%'$`A=%&Z=N>|b?^?{*\"D")                                │

│ 2023-10-25T18:14:34.082485Z  INFO test:                     │

│ input=Comment("=?9?58^A%`")                                                  │

│ 2023-10-25T18:14:34.082570Z  INFO test:                     │

│ input=Comment("=V<MsS")                                                      │

│ 2023-10-25T18:14:34.082612Z  INFO test:                     │

│ input=Integer(-2531081465077423295)                                          │

│ 2023-10-25T18:14:34.082663Z  INFO test:                     │

│ input=Comment("Z]a9Jp{@y%?")                                                 │

│ 2023-10-25T18:14:34.082719Z  INFO test:                     │

│ input=Identifier("fCx1FXioOCuc5vP")                                          │

│ 2023-10-25T18:14:34.082764Z  INFO test:                     │

│ input=Identifier("L8Hw12I")                                                  │

│ 2023-10-25T18:14:34.082867Z  INFO test: input=Comment("\\C  │

│ **8'G%D)u.q<&}#-!p")                                                         │

│ 2023-10-25T18:14:34.082919Z  INFO test:                     │

│ input=Comment("Yx`B*d]L&[")                                                  │

│ 2023-10-25T18:14:34.082956Z  INFO test:                     │

│ input=Integer(6453595949277241505)                                           │

│ 2023-10-25T18:14:34.082999Z  INFO test: input=Operator(")") │

│ 2023-10-25T18:14:34.083039Z  INFO test:                     │

│ input=Integer(8807371791413744366)                                           │

│ 2023-10-25T18:14:34.083076Z  INFO test:                     │

│ input=Integer(-3059579000668340432)                                          │

│ 2023-10-25T18:14:34.083123Z  INFO test:                     │

│ input=Identifier("Z99it4uE")                                                 │

│ 2023-10-25T18:14:34.083166Z  INFO test: input=Operator("+") │

│ 2023-10-25T18:14:34.083221Z  INFO test: input=Operator("-") │

│ 2023-10-25T18:14:34.083278Z  INFO test:                     │

│ input=Integer(-1199775347334283020)                                          │

│ 2023-10-25T18:14:34.083375Z  INFO test: input=Comment("     │

│ 3f=8^<")                                                                     │

│ 2023-10-25T18:14:34.083431Z  INFO test:                     │

│ input=StringLiteral("")                                                      │

│ 2023-10-25T18:14:34.083574Z  INFO test:                     │

│ input=StringLiteral("q$yc5:&//i$5B|HkY-%$`")                                 │

│ 2023-10-25T18:14:34.083637Z  INFO test:                     │

│ input=StringLiteral("")                                                      │

│ 2023-10-25T18:14:34.083702Z  INFO test:                     │

│ input=Comment("i\\*U\"g<\"{mH:G")                                            │

│ 2023-10-25T18:14:34.083769Z  INFO test:                     │

│ input=StringLiteral("%`FsC)6|ye*")                                           │

│ 2023-10-25T18:14:34.083821Z  INFO test: input=Operator("(") │

│ 2023-10-25T18:14:34.083862Z  INFO test:                     │

│ input=Integer(6021453125687344892)                                           │

│ 2023-10-25T18:14:34.083909Z  INFO test:                     │

│ input=Identifier("bS4K26")                                                   │

│ 2023-10-25T18:14:34.083956Z  INFO test: input=Operator("+") │

│ 2023-10-25T18:14:34.083998Z  INFO test:                     │

│ input=StringLiteral("`")                                                     │

│ 2023-10-25T18:14:34.084039Z  INFO test:                     │

│ input=Integer(-7024999620542178172)                                          │

│ 2023-10-25T18:14:34.084082Z  INFO test:                     │

│ input=Identifier("w")                                                        │

│ 2023-10-25T18:14:34.084157Z  INFO test:                     │

│ input=Comment(".{&Mmb\\\"%ek%WJ:&(%")                                        │

│ 2023-10-25T18:14:34.084225Z  INFO test:                     │

│ input=Identifier("kyH9t1PAw0wRIUdRmo")                                       │

│ 2023-10-25T18:14:34.084280Z  INFO test: input=Operator("/") │

│ 2023-10-25T18:14:34.084339Z  INFO test:                     │

│ input=Identifier("Z67D1A9pZkxYt1OjUtP")                                      │

│ 2023-10-25T18:14:34.084381Z  INFO test:                     │

│ input=Integer(1727009684896894018)                                           │

│ 2023-10-25T18:14:34.084442Z  INFO test:                     │

│ input=Comment("hcxE~`'{$U<")                                                 │

│ 2023-10-25T18:14:34.084505Z  INFO test:                     │

│ input=Comment("F0n~h^Llu0D?")                                                │

│ 2023-10-25T18:14:34.084556Z  INFO test: input=Operator("-") │

│ 2023-10-25T18:14:34.084612Z  INFO test:                     │

│ input=StringLiteral("}&f?NAO:2s")                                            │

│ 2023-10-25T18:14:34.084688Z  INFO test:                     │

│ input=Comment(".{F7w$?<=>g,A.i\\!To<j>")                                     │

│ 2023-10-25T18:14:34.084751Z  INFO test: input=Operator("*") │

│ 2023-10-25T18:14:34.084834Z  INFO test:                     │

│ input=StringLiteral("plDsM:J={D$F,w&?4$(")                                   │

│ 2023-10-25T18:14:34.084906Z  INFO test:                     │

│ input=Comment("`S&\\/%:\\%=7L=XfA*vnNp")                                     │

│ 2023-10-25T18:14:34.084963Z  INFO test: input=Operator("/") │

│ 2023-10-25T18:14:34.085001Z  INFO test:                     │

│ input=Integer(-6378133390433914213)                                          │

│ 2023-10-25T18:14:34.085040Z  INFO test:                     │

│ input=Integer(443689456112999491)                                            │

│ 2023-10-25T18:14:34.085151Z  INFO test:                     │

│ input=StringLiteral("41&*~%=:Arh`%:&/8m*@|?O{C_")                            │

│ 2023-10-25T18:14:34.085209Z  INFO test:                     │

│ input=Identifier("J4EjYKAnQ")                                                │

│ 2023-10-25T18:14:34.085282Z  INFO test:                     │

│ input=Identifier("MxXbBct9j8f0Z9sU3ypk")                                     │

│ 2023-10-25T18:14:34.085333Z  INFO test: input=Operator(")") │

│ 2023-10-25T18:14:34.085373Z  INFO test:                     │

│ input=Integer(7128599797198516859)                                           │

│ 2023-10-25T18:14:34.085447Z  INFO test:                     │

│ input=StringLiteral("i+EhxfU.!)3im}?Xv:p}=/`W72k;RG.")                       │

│ 2023-10-25T18:14:34.085526Z  INFO test:                     │

│ input=Comment("<$&&Nq3[&=<'=ii?{/Y")                                         │

│ 2023-10-25T18:14:34.085581Z  INFO test: input=Operator("*") │

│ 2023-10-25T18:14:34.085621Z  INFO test:                     │

│ input=Integer(491792228567660414)                                            │

│ 2023-10-25T18:14:34.085663Z  INFO test: input=Operator("-") │

│ 2023-10-25T18:14:34.085731Z  INFO test:                     │

│ input=Comment("QS.]+MPl\\%=')kbGK%\"O&otsc\"%*")                             │

│ 2023-10-25T18:14:34.085803Z  INFO test:                     │

│ input=StringLiteral("?(3RMJ'm![vp|[")                                        │

│ 2023-10-25T18:14:34.085860Z  INFO test:                     │

│ input=Integer(4120903838285996695)                                           │

│ 2023-10-25T18:14:34.085922Z  INFO test:                     │

│ input=StringLiteral("Euh ixxz~`'{N{I0A&")                                    │

│ 2023-10-25T18:14:34.086030Z  INFO test:                     │

│ input=Integer(-974276476141288313)                                           │

│ 2023-10-25T18:14:34.086112Z  INFO test:                     │

│ input=StringLiteral("<{+n'?")                                                │

│ 2023-10-25T18:14:34.086172Z  INFO test:                     │

│ input=Identifier("Af57nt2i8pc2aZY73sj4")                                     │

│ 2023-10-25T18:14:34.086250Z  INFO test:                     │

│ input=StringLiteral("J0e|5]{vnP?iw<z[$;`V`%%p#=")                            │

│ 2023-10-25T18:14:34.086311Z  INFO test:                     │

│ input=StringLiteral(":Z. *2=Wr")                                             │

│ 2023-10-25T18:14:34.086380Z  INFO test:                     │

│ input=Identifier("rw6CfznFLARaJuLkv")                                        │

│ 2023-10-25T18:14:34.086428Z  INFO test:                     │

│ input=Identifier("WgqceH")                                                   │

│ 2023-10-25T18:14:34.086494Z  INFO test:                     │

│ input=Identifier("omHB9B0TL1Ym063OMvwe76k2hw1")                              │

│ 2023-10-25T18:14:34.086545Z  INFO test:                     │

│ input=Integer(3740020553748664058)                                           │

│ 2023-10-25T18:14:34.086589Z  INFO test:                     │

│ input=Integer(4889713495433163033)                                           │

│ 2023-10-25T18:14:34.086639Z  INFO test:                     │

│ input=Identifier("r9kS3jxAi")                                                │

│ 2023-10-25T18:14:34.086700Z  INFO test:                     │

│ input=Comment("M*&?Xgs|/{wbxz$'{dy")                                         │

│ 2023-10-25T18:14:34.086764Z  INFO test: input=Comment("7[   │

│ w")                                                                          │

│ 2023-10-25T18:14:34.086831Z  INFO test:                     │

│ input=Identifier("cu8Q0gLFz4ao7xgE1RU")                                      │

│ 2023-10-25T18:14:34.086920Z  INFO test:                     │

│ input=StringLiteral("?Lj`2Wq;bJo<2`{R}&`?>vz:/**ZL")                         │

│ 2023-10-25T18:14:34.086986Z  INFO test: input=Operator(")") │

│ 2023-10-25T18:14:34.087041Z  INFO test:                     │

│ input=StringLiteral("`%Di'")                                                 │

│ 2023-10-25T18:14:34.087083Z  INFO test:                     │

│ input=Integer(4747934109556629322)                                           │

│ 2023-10-25T18:14:34.087127Z  INFO test: input=Operator(")") │

│ 2023-10-25T18:14:34.087182Z  INFO test:                     │

│ input=StringLiteral("pPa)-.215<==")                                          │

│ 2023-10-25T18:14:34.087232Z  INFO test: input=Operator("(") │

│ 2023-10-25T18:14:34.087275Z  INFO test: input=Operator("=") │

│ 2023-10-25T18:14:34.087335Z  INFO test:                     │

│ input=Comment("=<z`_\\U7")                                                   │

│ 2023-10-25T18:14:34.087383Z  INFO test: input=Operator("-") │

│ 2023-10-25T18:14:34.087431Z  INFO test:                     │

│ input=Integer(-5589170791147360497)                                          │

│ 2023-10-25T18:14:34.087475Z  INFO test:                     │

│ input=Integer(4499793432170733519)                                           │

│ 2023-10-25T18:14:34.087514Z  INFO test:                     │

│ input=Integer(-466964661308611842)                                           │

│ 2023-10-25T18:14:34.087594Z  INFO test:                     │

│ input=Identifier("gitij9C7xFO27OG82V1QnLVjcTYI0")                            │

│ 2023-10-25T18:14:34.087656Z  INFO test: input=Operator("/") │

│ 2023-10-25T18:14:34.087744Z  INFO test:                     │

│ input=Comment("^Gm<?J8H&kSN\"\\`")                                           │

│ 2023-10-25T18:14:34.087821Z  INFO test:                     │

│ input=StringLiteral("{&.<%?2`Vt`'36P$:/!P77f")                               │

│ 2023-10-25T18:14:34.087915Z  INFO test:                     │

│ input=Integer(5561362587682975655)                                           │

│ 2023-10-25T18:14:34.088046Z  INFO test:                     │

│ input=Comment(")\\,S*D*BA|*%5<7<{h/s")                                       │

│ 2023-10-25T18:14:34.088119Z  INFO test:                     │

│ input=StringLiteral("*>A7/&?.%xuT")                                          │

│ 2023-10-25T18:14:34.088171Z  INFO test:                     │

│ input=Integer(725501008286657616)                                            │

│ 2023-10-25T18:14:34.088232Z  INFO test:                     │

│ input=Integer(843851718032960405)                                            │

│ 2023-10-25T18:14:34.088279Z  INFO test:                     │

│ input=Integer(4402977941820474874)                                           │

│ 2023-10-25T18:14:34.088352Z  INFO test:                     │

│ input=StringLiteral("^`HK[vzZEL=.kB{D")                                      │

│ 2023-10-25T18:14:34.088433Z  INFO test:                     │

│ input=Identifier("GFLHbq90Lkf1v5mEBR1lQ318g1apfc")                           │

│ 2023-10-25T18:14:34.088485Z  INFO test: input=Comment("")   │

│ 2023-10-25T18:14:34.088528Z  INFO test:                     │

│ input=Integer(4831860906577104639)                                           │

│ 2023-10-25T18:14:34.088580Z  INFO test:                     │

│ input=Identifier("R9vMb7B0U12Q133o5Kcr")                                     │

│ 2023-10-25T18:14:34.088631Z  INFO test:                     │

│ input=Integer(-1121640433936155322)                                          │

│ 2023-10-25T18:14:34.088675Z  INFO test: input=Operator(")") │

│ 2023-10-25T18:14:34.088706Z  INFO test:                     │

│ input=Integer(2620943013562237569)                                           │

│ 2023-10-25T18:14:34.088746Z  INFO test:                     │

│ input=Comment("@|Y{&wOJ\\l\\\"")                                             │

│ 2023-10-25T18:14:34.088806Z  INFO test:                     │

│ input=StringLiteral("0{2Pmb(-qDu!c?:yF:8$jN?Buh#U:Y{")                       │

│ 2023-10-25T18:14:34.088852Z  INFO test:                     │

│ input=StringLiteral("")                                                      │

│ 2023-10-25T18:14:34.088905Z  INFO test:                     │

│ input=StringLiteral("`$F!qF(:%w$# '<ENX aRds")                               │

│ 2023-10-25T18:14:34.088964Z  INFO test:                     │

│ input=Comment("O&/'`,:")                                                     │

│ 2023-10-25T18:14:34.089033Z  INFO test:                     │

│ input=Comment("$$?~*Z+%t{*KrUK\\-=ii\"\\d")                                  │

│ 2023-10-25T18:14:34.089104Z  INFO test:                     │

│ input=Identifier("kZ3II037")                                                 │

│ 2023-10-25T18:14:34.089187Z  INFO test:                     │

│ input=Comment("m`]*:(&']SV*Hx*>v?S*'t5M)U!?wVyN")                            │

│ 2023-10-25T18:14:34.089254Z  INFO test:                     │

│ input=Integer(-4465211170324626235)                                          │

│ 2023-10-25T18:14:34.089329Z  INFO test:                     │

│ input=Identifier("V714jXwLiE3ng6yC66ew7jv5ITxq")                             │

│ 2023-10-25T18:14:34.089394Z  INFO test:                     │

│ input=Comment(".V~YlMtP:@'gWYi)")                                            │

│ 2023-10-25T18:14:34.089489Z  INFO test: input=Operator("+") │

│ 2023-10-25T18:14:34.089592Z  INFO test:                     │

│ input=Identifier("P5FdAeMoQbEmuNvkyYJOGha")                                  │

│ 2023-10-25T18:14:34.089639Z  INFO test:                     │

│ input=Integer(51097594534217430)                                             │

│ 2023-10-25T18:14:34.089697Z  INFO test:                     │

│ input=Comment("Kje|<AM")                                                     │

│ 2023-10-25T18:14:34.089798Z  INFO test:                     │

│ input=Comment(",}^i?n]K0")                                                   │

│ 2023-10-25T18:14:34.089847Z  INFO test: input=Operator("*") │

│ 2023-10-25T18:14:34.089901Z  INFO test: input=Operator(")") │

│ 2023-10-25T18:14:34.089976Z  INFO test:                     │

│ input=Comment("/%D8*.Xyyn?='{@?N<^e*#/")                                     │

│ 2023-10-25T18:14:34.090065Z  INFO test:                     │

│ input=StringLiteral("??[<s6?*;:9xNfu)<=l+8g'1:.=")                           │

│ 2023-10-25T18:14:34.090144Z  INFO test:                     │

│ input=Identifier("NzScd2P0su8cH11jsnfCGm9Ux539")                             │

│ 2023-10-25T18:14:34.090217Z  INFO test:                     │

│ input=StringLiteral("$")                                                     │

│ 2023-10-25T18:14:34.090271Z  INFO test:                     │

│ input=Integer(-102442479676712324)                                           │

│ 2023-10-25T18:14:34.090326Z  INFO test: input=Operator("=") │

│ 2023-10-25T18:14:34.090396Z  INFO test:                     │

│ input=Comment("tZro?.9#~:]")                                                 │

│ 2023-10-25T18:14:34.090457Z  INFO test:                     │

│ input=Identifier("OEqc2s2a2")                                                │

│ 2023-10-25T18:14:34.090512Z  INFO test: input=Operator("=") │

│ 2023-10-25T18:14:34.090563Z  INFO test:                     │

│ input=Integer(3159860458033751379)                                           │

│ 2023-10-25T18:14:34.090620Z  INFO test:                     │

│ input=StringLiteral("0 ")                                                    │

│ 2023-10-25T18:14:34.090686Z  INFO test:                     │

│ input=Identifier("pXwPNof710PX7")                                            │

│ 2023-10-25T18:14:34.090809Z  INFO test:                     │

│ input=Comment("xe=.n&WlH$+`")                                                │

│ 2023-10-25T18:14:34.090896Z  INFO test:                     │

│ input=StringLiteral("'K~9{E")                                                │

│ 2023-10-25T18:14:34.090943Z  INFO test:                     │

│ input=StringLiteral("V")                                                     │

│ 2023-10-25T18:14:34.090992Z  INFO test:                     │

│ input=Integer(4930800512781269626)                                           │

│ 2023-10-25T18:14:34.091067Z  INFO test:                     │

│ input=Comment("{@QmG`<{'\\_v&oeYs|gfR^Uc`\\")                                │

│ 2023-10-25T18:14:34.091150Z  INFO test: input=Operator("-") │

│ 2023-10-25T18:14:34.091203Z  INFO test:                     │

│ input=Integer(-4342906509435396221)                                          │

│ 2023-10-25T18:14:34.091280Z  INFO test:                     │

│ input=Identifier("F5mrw1xN39IHGy")                                           │

│ 2023-10-25T18:14:34.091376Z  INFO test:                     │

│ input=StringLiteral("kdO1:(o,Vn(1zVZ1&{W>.@VTr*/1{&")                        │

│ 2023-10-25T18:14:34.091440Z  INFO test:                     │

│ input=StringLiteral("^d@$/$<@2G&KD ")                                        │

│ 2023-10-25T18:14:34.091518Z  INFO test:                     │

│ input=Identifier("h0fXbxY93yfsLu05WbJ9l1c0w1Qjm5bh6")                        │

│ 2023-10-25T18:14:34.091563Z  INFO test:                     │

│ input=Integer(8509436952288458800)                                           │

│ 2023-10-25T18:14:34.091635Z  INFO test:                     │

│ input=StringLiteral("{y@m=c'EaXmT5EJeJ*L<2'*")                               │

│ 2023-10-25T18:14:34.091707Z  INFO test:                     │

│ input=Comment("pMBC5nf]?/?&dk/C<<Xqv")                                       │

│ 2023-10-25T18:14:34.091768Z  INFO test:                     │

│ input=Integer(7982410414428850667)                                           │

│ 2023-10-25T18:14:34.091834Z  INFO test:                     │

│ input=Identifier("s6UsU33m9f0HSNH8")                                         │

│ 2023-10-25T18:14:34.091904Z  INFO test:                     │

│ input=StringLiteral("<T/5=QD0@'$3e_`Wg=,&")                                  │

│ 2023-10-25T18:14:34.091957Z  INFO test:                     │

│ input=Identifier("yW")                                                       │

│ 2023-10-25T18:14:34.092009Z  INFO test:                     │

│ input=StringLiteral("=")                                                     │

│ test prop_parse_format_idempotent ... ok                                     │

│ test                                                                         │

│ adding_and_then_removing_an_item_from_the_cart_leaves_the_cart_unchanged ... │

│ ok                                                                           │

│                                                                              │

│ test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out;  │

│ finished in 0.15s                                                            │

│                                                                              │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯



── pwsh ────────────────────────────────────────────────────────────────────────

{ . $ScriptDir/../../target/release/test$(GetExecutableSuffix) } | Invoke-Block



╭─[ 87.34ms - stdout ]─────────────────────────────────────────────────────────╮

│ app=test                                                                     │

│                                                                              │

╰──────────────────────────────────────────────────────────────────────────────╯

[NbConvertApp] Converting notebook build.dib.ipynb to html

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

  validate(nb)

C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:72: UserWarning: IPython3 lexer unavailable, falling back on Python 3

  return _pygments_highlight(

[NbConvertApp] Writing 315239 bytes to build.dib.html

In [ ]:
{ . "$ScriptDir/../spiral/extension/build.ps1" } | Invoke-Block
Lockfile is up to date, resolution step is skipped

Already up to date



Done in 1.7s

[INFO]: 🎯  Checking for the Wasm target...

[INFO]: 🌀  Compiling to Wasm...

warning: C:\home\git\polyglot\Cargo.toml: unused manifest key: lib.members

    Finished dev [unoptimized + debuginfo] target(s) in 0.70s

[INFO]: ⬇️  Installing wasm-bindgen...

[INFO]: Optional fields missing from Cargo.toml: 'description', 'repository', and 'license'. These are not necessary, but recommended

[INFO]: ✨   Done in 1.50s

[INFO]: 📦   Your wasm pkg is ready to publish at C:\home\git\polyglot\spiral\extension\pkg.

▲ [WARNING] "import.meta" is not available with the "iife" output format and will be empty [empty-import-meta]



    pkg/extension.js:451:45:

      451 │         input = new URL('extension_bg.wasm', import.meta.url);

          ╵                                              ~~~~~~~~~~~



  You need to set the output format to "esm" for "import.meta" to work correctly.



1 warning



  dist\extension_bg-7GXD3MC5.wasm  146.4kb

  dist\content_script.js             7.4kb

  dist\service_worker.js             1.6kb



⚡ Done in 15ms



> polyglot@ test:e2e C:\home\git\polyglot\spiral\extension

> playwright test



 INFO  Accepting connections at http://localhost:3000

 HTTP  10/25/2023 2:14:52 PM ::1 GET /

 HTTP  10/25/2023 2:14:52 PM ::1 Returned 200 in 19 ms



Running 3 tests using 3 workers



[1/3] [Desktop Chrome] › extension.spec.ts:3:5 › popup localhost

[2/3] [Desktop Chrome] › extension.spec.ts:8:5 › popup extension

[3/3] [Desktop Chrome] › extension.spec.ts:13:5 › libgen

 HTTP  10/25/2023 2:14:58 PM ::1 GET /popup

 HTTP  10/25/2023 2:14:58 PM ::1 Returned 200 in 15 ms

 HTTP  10/25/2023 2:14:58 PM ::1 GET /popup.js

 HTTP  10/25/2023 2:14:58 PM ::1 Returned 200 in 6 ms

 HTTP  10/25/2023 2:14:58 PM ::1 GET /content_script.js

 HTTP  10/25/2023 2:14:58 PM ::1 Returned 200 in 10 ms

 HTTP  10/25/2023 2:14:58 PM ::1 GET /extension_bg-7GXD3MC5.wasm

 HTTP  10/25/2023 2:14:58 PM ::1 Returned 200 in 5 ms

 HTTP  10/25/2023 2:14:58 PM ::1 GET /favicon.ico

 HTTP  10/25/2023 2:14:58 PM ::1 Returned 404 in 6 ms

  3 passed (11.6s)



To open last HTML report run:



  npx playwright show-report



In [ ]:
# { . "$ScriptDir/../spiral/cli/build.ps1" } | Invoke-Block
In [ ]:
{ . "$ScriptDir/../apps/dice/build.ps1" } | Invoke-Block
Complexidade: Simple, Duração: Short    

Complexidade: Simple, Duração: Short    

Complexidade: Simple, Duração: Medium   

Complexidade: Moderate, Duração: Medium 

Complexidade: Complex, Duração: Long    

Complexidade: Complex, Duração: Long    

[14:15:08 INF] EXPECTO? Running tests... <Expecto>

[14:15:14 INF] EXPECTO! 7 tests run in 00:00:05.6154723 for FsCheck samples – 7 passed, 0 ignored, 0 failed, 0 errored. Success! <Expecto>



00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60

00:00:00 #2 [Debug] executeAsync / options: { Command =

   "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" port=13805"

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = Some <fun:main@450-1020> }

00:00:00 #3 [Debug] > pwd: C:\home\git\polyglot\apps\dice

00:00:00 #4 [Debug] > dll_path: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release

00:00:00 #5 [Debug] runWithTimeoutAsync / timeout: 500

00:00:00 #6 [Verbose] waitForPortAccess / port: 13805 / retry: 0

00:00:01 #7 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:

00:00:01 #8 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0

00:00:01 #9 [Debug] > Server bound to: http://localhost:13805

00:00:01 #10 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 Dice.dib""

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = None }

00:00:03 #11 [Debug] >

00:00:03 #12 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:04 #13 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:04 #14 [Debug] > │ # Dice (Polyglot)                                                            │

00:00:04 #15 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:04 #16 [Debug] >

00:00:04 #17 [Debug] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:04 #18 [Debug] > #!import ../nbs/Testing.dib

00:00:04 #19 [Debug] >

00:00:04 #20 [Debug] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:00:04 #21 [Debug] > #r

00:00:04 #22 [Debug] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A

00:00:04 #23 [Debug] > spNetCore.Html.Abstractions.dll"

00:00:04 #24 [Debug] > #r

00:00:04 #25 [Debug] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

00:00:04 #26 [Debug] > otNet.Interactive.dll"

00:00:04 #27 [Debug] > #r

00:00:04 #28 [Debug] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

00:00:04 #29 [Debug] > otNet.Interactive.FSharp.dll"

00:00:04 #30 [Debug] > #r

00:00:04 #31 [Debug] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

00:00:04 #32 [Debug] > otNet.Interactive.Formatting.dll"

00:00:04 #33 [Debug] > open System

00:00:04 #34 [Debug] > open System.IO

00:00:04 #35 [Debug] > open System.Text

00:00:04 #36 [Debug] > open Microsoft.DotNet.Interactive.Formatting

00:00:07 #37 [Debug] >

00:00:07 #38 [Debug] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:00:07 #39 [Debug] > #r

00:00:07 #40 [Debug] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

00:00:07 #41 [Debug] > otNet.Interactive.FSharp.dll"

00:00:07 #42 [Debug] > open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers

00:00:07 #43 [Debug] > #r

00:00:07 #44 [Debug] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

00:00:07 #45 [Debug] > otNet.Interactive.dll"

00:00:07 #46 [Debug] > open type Microsoft.DotNet.Interactive.Kernel

00:00:07 #47 [Debug] >

00:00:07 #48 [Debug] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:00:07 #49 [Debug] > #r @"../../../../../../../.nuget/packages/expecto/10.1.0/lib/net6.0/Expecto.dll"

00:00:07 #50 [Debug] >

00:00:07 #51 [Debug] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:00:07 #52 [Debug] > //// test

00:00:07 #53 [Debug] >

00:00:07 #54 [Debug] > Formatter.ListExpansionLimit <- 100

00:00:08 #55 [Debug] >

00:00:08 #56 [Debug] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:00:08 #57 [Debug] > //// test

00:00:08 #58 [Debug] >

00:00:08 #59 [Debug] > type AssertExceptionFormatter (ex) =

00:00:08 #60 [Debug] >     member _.Text =

00:00:08 #61 [Debug] >         ex.ToString()

00:00:08 #62 [Debug] >             .Replace("32m", "<span style=\"color: green;\">")

00:00:08 #63 [Debug] >             .Replace("36m", "</span>")

00:00:08 #64 [Debug] >             .Replace("31m", "<span style=\"color: red;\">")

00:00:08 #65 [Debug] >             .Replace("\n", "<br/>\n")

00:00:08 #66 [Debug] >

00:00:08 #67 [Debug] >

00:00:08 #68 [Debug] > Formatter.Register<AssertExceptionFormatter> ((fun (x :

00:00:08 #69 [Debug] > AssertExceptionFormatter) -> x.Text), "text/html")

00:00:08 #70 [Debug] >

00:00:08 #71 [Debug] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:00:08 #72 [Debug] > //// test

00:00:08 #73 [Debug] >

00:00:08 #74 [Debug] > let inline __expect fn log expected actual =

00:00:08 #75 [Debug] >     if log then printfn $"{actual.ToDisplayString ()}"

00:00:08 #76 [Debug] >     try

00:00:08 #77 [Debug] >         "Testing.__expect" |> fn actual expected

00:00:08 #78 [Debug] >     with :? Expecto.AssertException as ex ->

00:00:08 #79 [Debug] >         AssertExceptionFormatter(ex).Display () |> ignore

00:00:08 #80 [Debug] >         failwith (ex.GetType().FullName)

00:00:08 #81 [Debug] >

00:00:08 #82 [Debug] > let inline __contains log expected actual = __expect Expecto.Expect.contains log

00:00:08 #83 [Debug] > expected actual

00:00:08 #84 [Debug] > let inline _contains expected actual = __contains true expected actual

00:00:08 #85 [Debug] >

00:00:08 #86 [Debug] > let inline __equal log expected actual = __expect Expecto.Expect.equal log

00:00:08 #87 [Debug] > expected actual

00:00:08 #88 [Debug] > let inline _equal expected actual = __equal true expected actual

00:00:08 #89 [Debug] >

00:00:08 #90 [Debug] > let inline __isGreaterThan log expected actual = __expect

00:00:08 #91 [Debug] > Expecto.Expect.isGreaterThan log expected actual

00:00:08 #92 [Debug] > let ...

00:00:09 #93 [Debug] >

00:00:09 #94 [Debug] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:00:09 #95 [Debug] > //// test

00:00:09 #96 [Debug] >

00:00:09 #97 [Debug] > let inline __isBetween log a b actual =

00:00:09 #98 [Debug] >     let inline isBetween actual (a, b) _ =

00:00:09 #99 [Debug] >         __isGreaterThanOrEqual log a actual

00:00:09 #100 [Debug] >         __isLessThanOrEqual log b actual

00:00:09 #101 [Debug] >     __expect isBetween log (a, b) actual

00:00:09 #102 [Debug] > let inline _isBetween a b actual = __isBetween true a b actual

00:00:09 #103 [Debug] >

00:00:09 #104 [Debug] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:09 #105 [Debug] > #!import ../nbs/Common.fs

00:00:09 #106 [Debug] >

00:00:09 #107 [Debug] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:00:09 #108 [Debug] > #if !INTERACTIVE

00:00:09 #109 [Debug] > namespace Polyglot

00:00:09 #110 [Debug] > #endif

00:00:09 #111 [Debug] >

00:00:09 #112 [Debug] > module Common =

00:00:09 #113 [Debug] >

00:00:09 #114 [Debug] >     let nl = System.Environment.NewLine

00:00:09 #115 [Debug] >     let q = @""""

00:00:09 #116 [Debug] >

00:00:09 #117 [Debug] >     let inline cons head tail = head :: tail

00:00:09 #118 [Debug] >

00:00:09 #119 [Debug] >     module String =

00:00:09 #120 [Debug] >         let inline contains (value : string) (input : string) =

00:00:09 #121 [Debug] >             input.Contains value

00:00:09 #122 [Debug] >

00:00:09 #123 [Debug] >         let inline endsWith (value : string) (input : string) =

00:00:09 #124 [Debug] >             input.EndsWith value

00:00:09 #125 [Debug] >

00:00:09 #126 [Debug] >         let inline padLeft totalWidth paddingChar (input : string) =

00:00:09 #127 [Debug] >             input.PadLeft (totalWidth, paddingChar)

00:00:09 #128 [Debug] >

00:00:09 #129 [Debug] >         let inline replace (oldValue : string) (newValue : string) (input :

00:00:09 #130 [Debug] > string) =

00:00:09 #131 [Debug] >             input.Replace (oldValue, newValue)

00:00:09 #132 [Debug] >

00:00:09 #133 [Debug] >         let inline split separator (input : string) =

00:00:09 #134 [Debug] >             input.Split separator

00:00:09 #135 [Debug] >

00:00:09 #136 [Debug] >         let inline spli...

00:00:10 #137 [Debug] >

00:00:10 #138 [Debug] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:10 #139 [Debug] > open Common

00:00:10 #140 [Debug] >

00:00:10 #141 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:10 #142 [Debug] > // // test

00:00:10 #143 [Debug] >

00:00:10 #144 [Debug] > open testing

00:00:11 #145 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1415-2581-8151-87a9da59d2e6\main.spi

00:00:13 #146 [Debug] >

00:00:13 #147 [Debug] > ╭─[ 2.68s - stdout ]───────────────────────────────────────────────────────────╮

00:00:13 #148 [Debug] > │ ()                                                                           │

00:00:13 #149 [Debug] > │                                                                              │

00:00:13 #150 [Debug] > │                                                                              │

00:00:13 #151 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #152 [Debug] >

00:00:13 #153 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:13 #154 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:13 #155 [Debug] > │ ## sixthPowerSequence                                                        │

00:00:13 #156 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #157 [Debug] >

00:00:13 #158 [Debug] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:13 #159 [Debug] > let sixthPowerSequence = 1 |> Seq.unfold (fun state -> Some (state, state * 6))

00:00:13 #160 [Debug] > |> Seq.cache

00:00:13 #161 [Debug] >

00:00:13 #162 [Debug] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:13 #163 [Debug] > //// test

00:00:13 #164 [Debug] >

00:00:13 #165 [Debug] > sixthPowerSequence

00:00:13 #166 [Debug] > |> Seq.take 8

00:00:13 #167 [Debug] > |> Seq.toList

00:00:13 #168 [Debug] > |> _equal [[ 1; 6; 36; 216; 1296; 7776; 46656; 279936 ]]

00:00:13 #169 [Debug] >

00:00:13 #170 [Debug] > ╭─[ 77.81ms - stdout ]─────────────────────────────────────────────────────────╮

00:00:13 #171 [Debug] > │ [ 1, 6, 36, 216, 1296, 7776, 46656, 279936 ]                                 │

00:00:13 #172 [Debug] > │                                                                              │

00:00:13 #173 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #174 [Debug] >

00:00:13 #175 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:13 #176 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:13 #177 [Debug] > │ ## sixth_power_sequence                                                      │

00:00:13 #178 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #179 [Debug] >

00:00:13 #180 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:13 #181 [Debug] > inl sixth_power_sequence () =

00:00:13 #182 [Debug] >     stream.iterate ((*) 6) 1i32

00:00:13 #183 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1415-2797-9742-95985ce8c5fe\main.spi

00:00:13 #184 [Debug] >

00:00:13 #185 [Debug] > ╭─[ 155.17ms - stdout ]────────────────────────────────────────────────────────╮

00:00:13 #186 [Debug] > │ ()                                                                           │

00:00:13 #187 [Debug] > │                                                                              │

00:00:13 #188 [Debug] > │                                                                              │

00:00:13 #189 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #190 [Debug] >

00:00:13 #191 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:13 #192 [Debug] > // // test

00:00:13 #193 [Debug] >

00:00:13 #194 [Debug] > sixth_power_sequence ()

00:00:13 #195 [Debug] > |> stream.take_while (fun _ i => i <= 7i32)

00:00:13 #196 [Debug] > |> stream.to_list

00:00:13 #197 [Debug] > |> _equal [[ 1i32; 6; 36; 216; 1296; 7776; 46656; 279936 ]]

00:00:13 #198 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1415-2813-1317-132f040ec608\main.spi

00:00:13 #199 [Debug] >

00:00:13 #200 [Debug] > ╭─[ 336.40ms - stdout ]────────────────────────────────────────────────────────╮

00:00:13 #201 [Debug] > │ type UH0 =                                                                   │

00:00:13 #202 [Debug] > │     | UH0_0 of int32 * UH0                                                   │

00:00:13 #203 [Debug] > │     | UH0_1                                                                  │

00:00:13 #204 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:13 #205 [Debug] > │     let v63 : UH0 = UH0_1                                                    │

00:00:13 #206 [Debug] > │     let v64 : UH0 = UH0_0(279936, v63)                                       │

00:00:13 #207 [Debug] > │     let v65 : UH0 = UH0_0(46656, v64)                                        │

00:00:13 #208 [Debug] > │     let v66 : UH0 = UH0_0(7776, v65)                                         │

00:00:13 #209 [Debug] > │     let v67 : UH0 = UH0_0(1296, v66)                                         │

00:00:13 #210 [Debug] > │     let v68 : UH0 = UH0_0(216, v67)                                          │

00:00:13 #211 [Debug] > │     let v69 : UH0 = UH0_0(36, v68)                                           │

00:00:13 #212 [Debug] > │     let v70 : UH0 = UH0_0(6, v69)                                            │

00:00:13 #213 [Debug] > │     let v71 : UH0 = UH0_0(1, v70)                                            │

00:00:13 #214 [Debug] > │     let v72 : UH0 = UH0_1                                                    │

00:00:13 #215 [Debug] > │     let v73 : UH0 = UH0_0(279936, v72)                                       │

00:00:13 #216 [Debug] > │     let v74 : UH0 = UH0_0(46656, v73)                                        │

00:00:13 #217 [Debug] > │     let v75 : UH0 = UH0_0(7776, v74)                                         │

00:00:13 #218 [Debug] > │     let v76 : UH0 = UH0_0(1296, v75)                                         │

00:00:13 #219 [Debug] > │     let v77 : UH0 = UH0_0(216, v76)                                          │

00:00:13 #220 [Debug] > │     let v78 : UH0 = UH0_0(36, v77)                                           │

00:00:13 #221 [Debug] > │     let v79 : UH0 = UH0_0(6, v78)                                            │

00:00:13 #222 [Debug] > │     let v80 : UH0 = UH0_0(1, v79)                                            │

00:00:13 #223 [Debug] > │     let v81 : string = $"_equal / actual: %A{v71} / expected: %A{v80}"       │

00:00:13 #224 [Debug] > │     ()                                                                       │

00:00:13 #225 [Debug] > │ method0()                                                                    │

00:00:13 #226 [Debug] > │                                                                              │

00:00:13 #227 [Debug] > │                                                                              │

00:00:13 #228 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #229 [Debug] >

00:00:13 #230 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:13 #231 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:13 #232 [Debug] > │ ## accumulateDiceRolls                                                       │

00:00:13 #233 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #234 [Debug] >

00:00:13 #235 [Debug] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:13 #236 [Debug] > let rec accumulateDiceRolls log rolls power acc =

00:00:13 #237 [Debug] >     match rolls with

00:00:13 #238 [Debug] >     | _ when power < 0 ->

00:00:13 #239 [Debug] >         log |> Option.iter ((|>) $"accumulateDiceRolls / power: {power} / acc:

00:00:13 #240 [Debug] > {acc}")

00:00:13 #241 [Debug] >         Some (acc + 1, rolls)

00:00:13 #242 [Debug] >     | [[]] -> None

00:00:13 #243 [Debug] >     | roll :: rest when roll > 1 ->

00:00:13 #244 [Debug] >         let coeff = sixthPowerSequence |> Seq.item power

00:00:13 #245 [Debug] >         let value = (roll - 1) * coeff

00:00:13 #246 [Debug] >         log |> Option.iter ((|>) $"accumulateDiceRolls / \

00:00:13 #247 [Debug] >             power: {power} / acc: {acc} / roll: {roll} / value: {value}"

00:00:13 #248 [Debug] >         )

00:00:13 #249 [Debug] >         accumulateDiceRolls log rest (power - 1) (acc + value)

00:00:13 #250 [Debug] >     | roll :: rest ->

00:00:13 #251 [Debug] >         log |> Option.iter ((|>) $"accumulateDiceRolls / power: {power} / acc:

00:00:13 #252 [Debug] > {acc} / roll: {roll}")

00:00:13 #253 [Debug] >         accumulateDiceRolls log rest (power - 1) acc

00:00:13 #254 [Debug] >

00:00:13 #255 [Debug] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:13 #256 [Debug] > //// test

00:00:13 #257 [Debug] >

00:00:13 #258 [Debug] > accumulateDiceRolls (Some (printfn "%s")) [[ 6; 5; 4; 3; 2 ]] 0 1000

00:00:13 #259 [Debug] > |> _equal (Some (1006, [[ 5; 4; 3; 2 ]]))

00:00:13 #260 [Debug] >

00:00:13 #261 [Debug] > ╭─[ 42.43ms - stdout ]─────────────────────────────────────────────────────────╮

00:00:13 #262 [Debug] > │ accumulateDiceRolls / power: 0 / acc: 1000 / roll: 6 / value: 5              │

00:00:13 #263 [Debug] > │ accumulateDiceRolls / power: -1 / acc: 1005                                  │

00:00:13 #264 [Debug] > │ FSharpOption<Tuple<Int32,FSharpList<Int32>>>                                 │

00:00:13 #265 [Debug] > │       Value:       - 1006                                                    │

00:00:13 #266 [Debug] > │       - [ 5, 4, 3, 2 ]                                                       │

00:00:13 #267 [Debug] > │                                                                              │

00:00:13 #268 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #269 [Debug] >

00:00:13 #270 [Debug] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:13 #271 [Debug] > //// test

00:00:13 #272 [Debug] >

00:00:13 #273 [Debug] > accumulateDiceRolls (Some (printfn "%s")) [[ 6; 5; 4; 3; 2 ]] 1 1000

00:00:13 #274 [Debug] > |> _equal (Some (1035, [[ 4; 3; 2 ]]))

00:00:13 #275 [Debug] >

00:00:13 #276 [Debug] > ╭─[ 54.30ms - stdout ]─────────────────────────────────────────────────────────╮

00:00:13 #277 [Debug] > │ accumulateDiceRolls / power: 1 / acc: 1000 / roll: 6 / value: 30             │

00:00:13 #278 [Debug] > │ accumulateDiceRolls / power: 0 / acc: 1030 / roll: 5 / value: 4              │

00:00:13 #279 [Debug] > │ accumulateDiceRolls / power: -1 / acc: 1034                                  │

00:00:13 #280 [Debug] > │ FSharpOption<Tuple<Int32,FSharpList<Int32>>>                                 │

00:00:13 #281 [Debug] > │       Value:       - 1035                                                    │

00:00:13 #282 [Debug] > │       - [ 4, 3, 2 ]                                                          │

00:00:13 #283 [Debug] > │                                                                              │

00:00:13 #284 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #285 [Debug] >

00:00:13 #286 [Debug] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:13 #287 [Debug] > //// test

00:00:13 #288 [Debug] >

00:00:13 #289 [Debug] > accumulateDiceRolls (Some (printfn "%s")) [[ 6; 5; 4; 3; 2 ]] 2 1000

00:00:13 #290 [Debug] > |> _equal (Some (1208, [[ 3; 2 ]]))

00:00:13 #291 [Debug] >

00:00:13 #292 [Debug] > ╭─[ 32.06ms - stdout ]─────────────────────────────────────────────────────────╮

00:00:13 #293 [Debug] > │ accumulateDiceRolls / power: 2 / acc: 1000 / roll: 6 / value: 180            │

00:00:13 #294 [Debug] > │ accumulateDiceRolls / power: 1 / acc: 1180 / roll: 5 / value: 24             │

00:00:13 #295 [Debug] > │ accumulateDiceRolls / power: 0 / acc: 1204 / roll: 4 / value: 3              │

00:00:13 #296 [Debug] > │ accumulateDiceRolls / power: -1 / acc: 1207                                  │

00:00:13 #297 [Debug] > │ FSharpOption<Tuple<Int32,FSharpList<Int32>>>                                 │

00:00:13 #298 [Debug] > │       Value:       - 1208                                                    │

00:00:13 #299 [Debug] > │       - [ 3, 2 ]                                                             │

00:00:13 #300 [Debug] > │                                                                              │

00:00:13 #301 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #302 [Debug] >

00:00:13 #303 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:13 #304 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:13 #305 [Debug] > │ ## accumulate_dice_rolls                                                     │

00:00:13 #306 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #307 [Debug] >

00:00:13 #308 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:13 #309 [Debug] > inl accumulate_dice_rolls (log : option (string -> ())) rolls power acc =

00:00:13 #310 [Debug] >     inl rec body acc power rolls =

00:00:13 #311 [Debug] >         match rolls with

00:00:13 #312 [Debug] >         | _ when power < 0 =>

00:00:13 #313 [Debug] >             log |> optionm'.iter ((|>) $"$\"accumulate_dice_rolls / power:

00:00:13 #314 [Debug] > {!power} / acc: {!acc}\"")

00:00:13 #315 [Debug] >             Some (acc + 1, rolls)

00:00:13 #316 [Debug] >         | [[]] => None

00:00:13 #317 [Debug] >         | roll :: rest when roll > 1 =>

00:00:13 #318 [Debug] >             inl coeff = sixth_power_sequence () |> stream.item power

00:00:13 #319 [Debug] >             inl value = (roll - 1) * coeff

00:00:13 #320 [Debug] >             log |> optionm'.iter ((|>) $"$\"accumulate_dice_rolls / power:

00:00:13 #321 [Debug] > {!power} / acc: {!acc} / roll: {!roll} / value: {!value}\""

00:00:13 #322 [Debug] >             )

00:00:13 #323 [Debug] >             loop (acc + value) (power - 1) rest

00:00:13 #324 [Debug] >         | roll :: rest =>

00:00:13 #325 [Debug] >             log |> optionm'.iter ((|>) $"$\"accumulate_dice_rolls / power:

00:00:13 #326 [Debug] > {!power} / acc: {!acc} / roll: {!roll}\"")

00:00:13 #327 [Debug] >             loop acc (power - 1) rest

00:00:13 #328 [Debug] >     and inl loop acc power rolls =

00:00:13 #329 [Debug] >         if var_is rolls |> not

00:00:13 #330 [Debug] >         then body acc power rolls

00:00:13 #331 [Debug] >         else

00:00:13 #332 [Debug] >             inl acc = dyn acc

00:00:13 #333 [Debug] >             join body acc power rolls

00:00:13 #334 [Debug] >     loop acc power rolls

00:00:14 #335 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1415-2877-7738-7c533f0d570e\main.spi

00:00:14 #336 [Debug] >

00:00:14 #337 [Debug] > ╭─[ 139.76ms - stdout ]────────────────────────────────────────────────────────╮

00:00:14 #338 [Debug] > │ ()                                                                           │

00:00:14 #339 [Debug] > │                                                                              │

00:00:14 #340 [Debug] > │                                                                              │

00:00:14 #341 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:14 #342 [Debug] >

00:00:14 #343 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:14 #344 [Debug] > // // test

00:00:14 #345 [Debug] >

00:00:14 #346 [Debug] > accumulate_dice_rolls (Some console.write_line) [[ 6; 5; 4; 3; 2 ]] 0i32 1000

00:00:14 #347 [Debug] > |> _equal (Some (1006, [[ 5; 4; 3; 2 ]]))

00:00:14 #348 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1415-2891-9138-96680387ed59\main.spi

00:00:14 #349 [Debug] >

00:00:14 #350 [Debug] > ╭─[ 252.11ms - stdout ]────────────────────────────────────────────────────────╮

00:00:14 #351 [Debug] > │ type UH0 =                                                                   │

00:00:14 #352 [Debug] > │     | UH0_0 of int32 * UH0                                                   │

00:00:14 #353 [Debug] > │     | UH0_1                                                                  │

00:00:14 #354 [Debug] > │ and [<Struct>] US0 =                                                         │

00:00:14 #355 [Debug] > │     | US0_0                                                                  │

00:00:14 #356 [Debug] > │     | US0_1 of f1_0 : int32 * f1_1 : UH0                                     │

00:00:14 #357 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:14 #358 [Debug] > │     let v0 : string = $"accumulate_dice_rolls / power: {0} / acc: {1000} /   │

00:00:14 #359 [Debug] > │ roll: {6} / value: {5}"                                                      │

00:00:14 #360 [Debug] > │     System.Console.WriteLine v0                                              │

00:00:14 #361 [Debug] > │     let v1 : string = $"accumulate_dice_rolls / power: {-1} / acc: {1005}"   │

00:00:14 #362 [Debug] > │     System.Console.WriteLine v1                                              │

00:00:14 #363 [Debug] > │     let v35 : UH0 = UH0_1                                                    │

00:00:14 #364 [Debug] > │     let v36 : UH0 = UH0_0(2, v35)                                            │

00:00:14 #365 [Debug] > │     let v37 : UH0 = UH0_0(3, v36)                                            │

00:00:14 #366 [Debug] > │     let v38 : UH0 = UH0_0(4, v37)                                            │

00:00:14 #367 [Debug] > │     let v39 : UH0 = UH0_0(5, v38)                                            │

00:00:14 #368 [Debug] > │     let v40 : US0 = US0_1(1006, v39)                                         │

00:00:14 #369 [Debug] > │     let v41 : UH0 = UH0_1                                                    │

00:00:14 #370 [Debug] > │     let v42 : UH0 = UH0_0(2, v41)                                            │

00:00:14 #371 [Debug] > │     let v43 : UH0 = UH0_0(3, v42)                                            │

00:00:14 #372 [Debug] > │     let v44 : UH0 = UH0_0(4, v43)                                            │

00:00:14 #373 [Debug] > │     let v45 : UH0 = UH0_0(5, v44)                                            │

00:00:14 #374 [Debug] > │     let v46 : US0 = US0_1(1006, v45)                                         │

00:00:14 #375 [Debug] > │     let v47 : string = $"_equal / actual: %A{v40} / expected: %A{v46}"       │

00:00:14 #376 [Debug] > │     ()                                                                       │

00:00:14 #377 [Debug] > │ method0()                                                                    │

00:00:14 #378 [Debug] > │                                                                              │

00:00:14 #379 [Debug] > │ accumulate_dice_rolls / power: 0 / acc: 1000 / roll: 6 / value: 5            │

00:00:14 #380 [Debug] > │ accumulate_dice_rolls / power: -1 / acc: 1005                                │

00:00:14 #381 [Debug] > │                                                                              │

00:00:14 #382 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:14 #383 [Debug] >

00:00:14 #384 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:14 #385 [Debug] > // // test

00:00:14 #386 [Debug] >

00:00:14 #387 [Debug] > accumulate_dice_rolls (Some console.write_line) [[ 6; 5; 4; 3; 2 ]] 1i32 1000

00:00:14 #388 [Debug] > |> _equal (Some (1035, [[ 4; 3; 2 ]]))

00:00:14 #389 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1415-2918-1846-180f2e690cd2\main.spi

00:00:14 #390 [Debug] >

00:00:14 #391 [Debug] > ╭─[ 275.00ms - stdout ]────────────────────────────────────────────────────────╮

00:00:14 #392 [Debug] > │ type UH0 =                                                                   │

00:00:14 #393 [Debug] > │     | UH0_0 of int32 * UH0                                                   │

00:00:14 #394 [Debug] > │     | UH0_1                                                                  │

00:00:14 #395 [Debug] > │ and [<Struct>] US0 =                                                         │

00:00:14 #396 [Debug] > │     | US0_0                                                                  │

00:00:14 #397 [Debug] > │     | US0_1 of f1_0 : int32 * f1_1 : UH0                                     │

00:00:14 #398 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:14 #399 [Debug] > │     let v0 : string = $"accumulate_dice_rolls / power: {1} / acc: {1000} /   │

00:00:14 #400 [Debug] > │ roll: {6} / value: {30}"                                                     │

00:00:14 #401 [Debug] > │     System.Console.WriteLine v0                                              │

00:00:14 #402 [Debug] > │     let v1 : string = $"accumulate_dice_rolls / power: {0} / acc: {1030} /   │

00:00:14 #403 [Debug] > │ roll: {5} / value: {4}"                                                      │

00:00:14 #404 [Debug] > │     System.Console.WriteLine v1                                              │

00:00:14 #405 [Debug] > │     let v2 : string = $"accumulate_dice_rolls / power: {-1} / acc: {1034}"   │

00:00:14 #406 [Debug] > │     System.Console.WriteLine v2                                              │

00:00:14 #407 [Debug] > │     let v28 : UH0 = UH0_1                                                    │

00:00:14 #408 [Debug] > │     let v29 : UH0 = UH0_0(2, v28)                                            │

00:00:14 #409 [Debug] > │     let v30 : UH0 = UH0_0(3, v29)                                            │

00:00:14 #410 [Debug] > │     let v31 : UH0 = UH0_0(4, v30)                                            │

00:00:14 #411 [Debug] > │     let v32 : US0 = US0_1(1035, v31)                                         │

00:00:14 #412 [Debug] > │     let v33 : UH0 = UH0_1                                                    │

00:00:14 #413 [Debug] > │     let v34 : UH0 = UH0_0(2, v33)                                            │

00:00:14 #414 [Debug] > │     let v35 : UH0 = UH0_0(3, v34)                                            │

00:00:14 #415 [Debug] > │     let v36 : UH0 = UH0_0(4, v35)                                            │

00:00:14 #416 [Debug] > │     let v37 : US0 = US0_1(1035, v36)                                         │

00:00:14 #417 [Debug] > │     let v38 : string = $"_equal / actual: %A{v32} / expected: %A{v37}"       │

00:00:14 #418 [Debug] > │     ()                                                                       │

00:00:14 #419 [Debug] > │ method0()                                                                    │

00:00:14 #420 [Debug] > │                                                                              │

00:00:14 #421 [Debug] > │ accumulate_dice_rolls / power: 1 / acc: 1000 / roll: 6 / value: 30           │

00:00:14 #422 [Debug] > │ accumulate_dice_rolls / power: 0 / acc: 1030 / roll: 5 / value: 4            │

00:00:14 #423 [Debug] > │ accumulate_dice_rolls / power: -1 / acc: 1034                                │

00:00:14 #424 [Debug] > │                                                                              │

00:00:14 #425 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:14 #426 [Debug] >

00:00:14 #427 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:14 #428 [Debug] > // // test

00:00:14 #429 [Debug] >

00:00:14 #430 [Debug] > accumulate_dice_rolls (Some console.write_line) [[ 6; 5; 4; 3; 2 ]] 2i32 1000

00:00:14 #431 [Debug] > |> _equal (Some (1208, [[ 3; 2 ]]))

00:00:14 #432 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1415-2947-4774-427390e6d523\main.spi

00:00:14 #433 [Debug] >

00:00:14 #434 [Debug] > ╭─[ 223.06ms - stdout ]────────────────────────────────────────────────────────╮

00:00:14 #435 [Debug] > │ type UH0 =                                                                   │

00:00:14 #436 [Debug] > │     | UH0_0 of int32 * UH0                                                   │

00:00:14 #437 [Debug] > │     | UH0_1                                                                  │

00:00:14 #438 [Debug] > │ and [<Struct>] US0 =                                                         │

00:00:14 #439 [Debug] > │     | US0_0                                                                  │

00:00:14 #440 [Debug] > │     | US0_1 of f1_0 : int32 * f1_1 : UH0                                     │

00:00:14 #441 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:14 #442 [Debug] > │     let v0 : string = $"accumulate_dice_rolls / power: {2} / acc: {1000} /   │

00:00:14 #443 [Debug] > │ roll: {6} / value: {180}"                                                    │

00:00:14 #444 [Debug] > │     System.Console.WriteLine v0                                              │

00:00:14 #445 [Debug] > │     let v1 : string = $"accumulate_dice_rolls / power: {1} / acc: {1180} /   │

00:00:14 #446 [Debug] > │ roll: {5} / value: {24}"                                                     │

00:00:14 #447 [Debug] > │     System.Console.WriteLine v1                                              │

00:00:14 #448 [Debug] > │     let v2 : string = $"accumulate_dice_rolls / power: {0} / acc: {1204} /   │

00:00:14 #449 [Debug] > │ roll: {4} / value: {3}"                                                      │

00:00:14 #450 [Debug] > │     System.Console.WriteLine v2                                              │

00:00:14 #451 [Debug] > │     let v3 : string = $"accumulate_dice_rolls / power: {-1} / acc: {1207}"   │

00:00:14 #452 [Debug] > │     System.Console.WriteLine v3                                              │

00:00:14 #453 [Debug] > │     let v22 : UH0 = UH0_1                                                    │

00:00:14 #454 [Debug] > │     let v23 : UH0 = UH0_0(2, v22)                                            │

00:00:14 #455 [Debug] > │     let v24 : UH0 = UH0_0(3, v23)                                            │

00:00:14 #456 [Debug] > │     let v25 : US0 = US0_1(1208, v24)                                         │

00:00:14 #457 [Debug] > │     let v26 : UH0 = UH0_1                                                    │

00:00:14 #458 [Debug] > │     let v27 : UH0 = UH0_0(2, v26)                                            │

00:00:14 #459 [Debug] > │     let v28 : UH0 = UH0_0(3, v27)                                            │

00:00:14 #460 [Debug] > │     let v29 : US0 = US0_1(1208, v28)                                         │

00:00:14 #461 [Debug] > │     let v30 : string = $"_equal / actual: %A{v25} / expected: %A{v29}"       │

00:00:14 #462 [Debug] > │     ()                                                                       │

00:00:14 #463 [Debug] > │ method0()                                                                    │

00:00:14 #464 [Debug] > │                                                                              │

00:00:14 #465 [Debug] > │ accumulate_dice_rolls / power: 2 / acc: 1000 / roll: 6 / value: 180          │

00:00:14 #466 [Debug] > │ accumulate_dice_rolls / power: 1 / acc: 1180 / roll: 5 / value: 24           │

00:00:14 #467 [Debug] > │ accumulate_dice_rolls / power: 0 / acc: 1204 / roll: 4 / value: 3            │

00:00:14 #468 [Debug] > │ accumulate_dice_rolls / power: -1 / acc: 1207                                │

00:00:14 #469 [Debug] > │                                                                              │

00:00:14 #470 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:14 #471 [Debug] >

00:00:14 #472 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:14 #473 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:14 #474 [Debug] > │ ## rollWithinBounds                                                          │

00:00:14 #475 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:14 #476 [Debug] >

00:00:14 #477 [Debug] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:14 #478 [Debug] > let rollWithinBounds log max rolls =

00:00:14 #479 [Debug] >     let power = List.length rolls - 1

00:00:14 #480 [Debug] >     match accumulateDiceRolls log rolls power 0 with

00:00:14 #481 [Debug] >     | Some (result, _) when result >= 1 && result <= max -> Some result

00:00:14 #482 [Debug] >     | _ -> None

00:00:14 #483 [Debug] >

00:00:14 #484 [Debug] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:14 #485 [Debug] > //// test

00:00:14 #486 [Debug] >

00:00:14 #487 [Debug] > rollWithinBounds (Some (printfn "%s")) 2000 [[ 1; 5; 4; 4; 5 ]]

00:00:14 #488 [Debug] > |> _equal (Some 995)

00:00:14 #489 [Debug] >

00:00:14 #490 [Debug] > ╭─[ 25.46ms - stdout ]─────────────────────────────────────────────────────────╮

00:00:14 #491 [Debug] > │ accumulateDiceRolls / power: 4 / acc: 0 / roll: 1                            │

00:00:14 #492 [Debug] > │ accumulateDiceRolls / power: 3 / acc: 0 / roll: 5 / value: 864               │

00:00:14 #493 [Debug] > │ accumulateDiceRolls / power: 2 / acc: 864 / roll: 4 / value: 108             │

00:00:14 #494 [Debug] > │ accumulateDiceRolls / power: 1 / acc: 972 / roll: 4 / value: 18              │

00:00:14 #495 [Debug] > │ accumulateDiceRolls / power: 0 / acc: 990 / roll: 5 / value: 4               │

00:00:14 #496 [Debug] > │ accumulateDiceRolls / power: -1 / acc: 994                                   │

00:00:14 #497 [Debug] > │ FSharpOption<Int32>                                                          │

00:00:14 #498 [Debug] > │       Value: 995                                                             │

00:00:14 #499 [Debug] > │                                                                              │

00:00:14 #500 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:14 #501 [Debug] >

00:00:14 #502 [Debug] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:14 #503 [Debug] > //// test

00:00:14 #504 [Debug] >

00:00:14 #505 [Debug] > rollWithinBounds (Some (printfn "%s")) 2000 [[ 2; 2; 6; 4; 5 ]]

00:00:14 #506 [Debug] > |> _equal (Some 1715)

00:00:14 #507 [Debug] >

00:00:15 #508 [Debug] > ╭─[ 32.55ms - stdout ]─────────────────────────────────────────────────────────╮

00:00:15 #509 [Debug] > │ accumulateDiceRolls / power: 4 / acc: 0 / roll: 2 / value: 1296              │

00:00:15 #510 [Debug] > │ accumulateDiceRolls / power: 3 / acc: 1296 / roll: 2 / value: 216            │

00:00:15 #511 [Debug] > │ accumulateDiceRolls / power: 2 / acc: 1512 / roll: 6 / value: 180            │

00:00:15 #512 [Debug] > │ accumulateDiceRolls / power: 1 / acc: 1692 / roll: 4 / value: 18             │

00:00:15 #513 [Debug] > │ accumulateDiceRolls / power: 0 / acc: 1710 / roll: 5 / value: 4              │

00:00:15 #514 [Debug] > │ accumulateDiceRolls / power: -1 / acc: 1714                                  │

00:00:15 #515 [Debug] > │ FSharpOption<Int32>                                                          │

00:00:15 #516 [Debug] > │       Value: 1715                                                            │

00:00:15 #517 [Debug] > │                                                                              │

00:00:15 #518 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #519 [Debug] >

00:00:15 #520 [Debug] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:15 #521 [Debug] > //// test

00:00:15 #522 [Debug] >

00:00:15 #523 [Debug] > rollWithinBounds (Some (printfn "%s")) 2000 [[ 4; 1; 1; 2; 3 ]]

00:00:15 #524 [Debug] > |> _equal None

00:00:15 #525 [Debug] >

00:00:15 #526 [Debug] > ╭─[ 46.11ms - stdout ]─────────────────────────────────────────────────────────╮

00:00:15 #527 [Debug] > │ accumulateDiceRolls / power: 4 / acc: 0 / roll: 4 / value: 3888              │

00:00:15 #528 [Debug] > │ accumulateDiceRolls / power: 3 / acc: 3888 / roll: 1                         │

00:00:15 #529 [Debug] > │ accumulateDiceRolls / power: 2 / acc: 3888 / roll: 1                         │

00:00:15 #530 [Debug] > │ accumulateDiceRolls / power: 1 / acc: 3888 / roll: 2 / value: 6              │

00:00:15 #531 [Debug] > │ accumulateDiceRolls / power: 0 / acc: 3894 / roll: 3 / value: 2              │

00:00:15 #532 [Debug] > │ accumulateDiceRolls / power: -1 / acc: 3896                                  │

00:00:15 #533 [Debug] > │ <null>                                                                       │

00:00:15 #534 [Debug] > │                                                                              │

00:00:15 #535 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #536 [Debug] >

00:00:15 #537 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:15 #538 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:15 #539 [Debug] > │ ## roll_within_bounds                                                        │

00:00:15 #540 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #541 [Debug] >

00:00:15 #542 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:15 #543 [Debug] > inl roll_within_bounds (log : option (string -> ())) max rolls =

00:00:15 #544 [Debug] >     inl power = listm.length rolls - 1i32

00:00:15 #545 [Debug] >     match accumulate_dice_rolls log rolls power 0 with

00:00:15 #546 [Debug] >     | Some (result, _) when result >= 1 && result <= max => Some result

00:00:15 #547 [Debug] >     | _ => None

00:00:15 #548 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1415-2986-8686-85a85e120ff6\main.spi

00:00:15 #549 [Debug] >

00:00:15 #550 [Debug] > ╭─[ 248.78ms - stdout ]────────────────────────────────────────────────────────╮

00:00:15 #551 [Debug] > │ ()                                                                           │

00:00:15 #552 [Debug] > │                                                                              │

00:00:15 #553 [Debug] > │                                                                              │

00:00:15 #554 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #555 [Debug] >

00:00:15 #556 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:15 #557 [Debug] > // // test

00:00:15 #558 [Debug] >

00:00:15 #559 [Debug] > roll_within_bounds (Some console.write_line) 2000 [[ 1; 5; 4; 4; 5 ]]

00:00:15 #560 [Debug] > |> _equal (Some 995)

00:00:15 #561 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1415-3011-1187-19e6a8322309\main.spi

00:00:15 #562 [Debug] >

00:00:15 #563 [Debug] > ╭─[ 224.37ms - stdout ]────────────────────────────────────────────────────────╮

00:00:15 #564 [Debug] > │ type [<Struct>] US0 =                                                        │

00:00:15 #565 [Debug] > │     | US0_0                                                                  │

00:00:15 #566 [Debug] > │     | US0_1 of f1_0 : int32                                                  │

00:00:15 #567 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:15 #568 [Debug] > │     let v0 : string = $"accumulate_dice_rolls / power: {4} / acc: {0} /      │

00:00:15 #569 [Debug] > │ roll: {1}"                                                                   │

00:00:15 #570 [Debug] > │     System.Console.WriteLine v0                                              │

00:00:15 #571 [Debug] > │     let v1 : string = $"accumulate_dice_rolls / power: {3} / acc: {0} /      │

00:00:15 #572 [Debug] > │ roll: {5} / value: {864}"                                                    │

00:00:15 #573 [Debug] > │     System.Console.WriteLine v1                                              │

00:00:15 #574 [Debug] > │     let v2 : string = $"accumulate_dice_rolls / power: {2} / acc: {864} /    │

00:00:15 #575 [Debug] > │ roll: {4} / value: {108}"                                                    │

00:00:15 #576 [Debug] > │     System.Console.WriteLine v2                                              │

00:00:15 #577 [Debug] > │     let v3 : string = $"accumulate_dice_rolls / power: {1} / acc: {972} /    │

00:00:15 #578 [Debug] > │ roll: {4} / value: {18}"                                                     │

00:00:15 #579 [Debug] > │     System.Console.WriteLine v3                                              │

00:00:15 #580 [Debug] > │     let v4 : string = $"accumulate_dice_rolls / power: {0} / acc: {990} /    │

00:00:15 #581 [Debug] > │ roll: {5} / value: {4}"                                                      │

00:00:15 #582 [Debug] > │     System.Console.WriteLine v4                                              │

00:00:15 #583 [Debug] > │     let v5 : string = $"accumulate_dice_rolls / power: {-1} / acc: {994}"    │

00:00:15 #584 [Debug] > │     System.Console.WriteLine v5                                              │

00:00:15 #585 [Debug] > │     let v9 : US0 = US0_1(995)                                                │

00:00:15 #586 [Debug] > │     let v10 : US0 = US0_1(995)                                               │

00:00:15 #587 [Debug] > │     let v11 : string = $"_equal / actual: %A{v9} / expected: %A{v10}"        │

00:00:15 #588 [Debug] > │     ()                                                                       │

00:00:15 #589 [Debug] > │ method0()                                                                    │

00:00:15 #590 [Debug] > │                                                                              │

00:00:15 #591 [Debug] > │ accumulate_dice_rolls / power: 4 / acc: 0 / roll: 1                          │

00:00:15 #592 [Debug] > │ accumulate_dice_rolls / power: 3 / acc: 0 / roll: 5 / value: 864             │

00:00:15 #593 [Debug] > │ accumulate_dice_rolls / power: 2 / acc: 864 / roll: 4 / value: 108           │

00:00:15 #594 [Debug] > │ accumulate_dice_rolls / power: 1 / acc: 972 / roll: 4 / value: 18            │

00:00:15 #595 [Debug] > │ accumulate_dice_rolls / power: 0 / acc: 990 / roll: 5 / value: 4             │

00:00:15 #596 [Debug] > │ accumulate_dice_rolls / power: -1 / acc: 994                                 │

00:00:15 #597 [Debug] > │                                                                              │

00:00:15 #598 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #599 [Debug] >

00:00:15 #600 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:15 #601 [Debug] > // // test

00:00:15 #602 [Debug] >

00:00:15 #603 [Debug] > roll_within_bounds (Some console.write_line) 2000 [[ 2; 2; 6; 4; 5 ]]

00:00:15 #604 [Debug] > |> _equal (Some 1715)

00:00:15 #605 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1415-3035-3576-3f9da253d818\main.spi

00:00:15 #606 [Debug] >

00:00:15 #607 [Debug] > ╭─[ 250.73ms - stdout ]────────────────────────────────────────────────────────╮

00:00:15 #608 [Debug] > │ type [<Struct>] US0 =                                                        │

00:00:15 #609 [Debug] > │     | US0_0                                                                  │

00:00:15 #610 [Debug] > │     | US0_1 of f1_0 : int32                                                  │

00:00:15 #611 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:15 #612 [Debug] > │     let v0 : string = $"accumulate_dice_rolls / power: {4} / acc: {0} /      │

00:00:15 #613 [Debug] > │ roll: {2} / value: {1296}"                                                   │

00:00:15 #614 [Debug] > │     System.Console.WriteLine v0                                              │

00:00:15 #615 [Debug] > │     let v1 : string = $"accumulate_dice_rolls / power: {3} / acc: {1296} /   │

00:00:15 #616 [Debug] > │ roll: {2} / value: {216}"                                                    │

00:00:15 #617 [Debug] > │     System.Console.WriteLine v1                                              │

00:00:15 #618 [Debug] > │     let v2 : string = $"accumulate_dice_rolls / power: {2} / acc: {1512} /   │

00:00:15 #619 [Debug] > │ roll: {6} / value: {180}"                                                    │

00:00:15 #620 [Debug] > │     System.Console.WriteLine v2                                              │

00:00:15 #621 [Debug] > │     let v3 : string = $"accumulate_dice_rolls / power: {1} / acc: {1692} /   │

00:00:15 #622 [Debug] > │ roll: {4} / value: {18}"                                                     │

00:00:15 #623 [Debug] > │     System.Console.WriteLine v3                                              │

00:00:15 #624 [Debug] > │     let v4 : string = $"accumulate_dice_rolls / power: {0} / acc: {1710} /   │

00:00:15 #625 [Debug] > │ roll: {5} / value: {4}"                                                      │

00:00:15 #626 [Debug] > │     System.Console.WriteLine v4                                              │

00:00:15 #627 [Debug] > │     let v5 : string = $"accumulate_dice_rolls / power: {-1} / acc: {1714}"   │

00:00:15 #628 [Debug] > │     System.Console.WriteLine v5                                              │

00:00:15 #629 [Debug] > │     let v9 : US0 = US0_1(1715)                                               │

00:00:15 #630 [Debug] > │     let v10 : US0 = US0_1(1715)                                              │

00:00:15 #631 [Debug] > │     let v11 : string = $"_equal / actual: %A{v9} / expected: %A{v10}"        │

00:00:15 #632 [Debug] > │     ()                                                                       │

00:00:15 #633 [Debug] > │ method0()                                                                    │

00:00:15 #634 [Debug] > │                                                                              │

00:00:15 #635 [Debug] > │ accumulate_dice_rolls / power: 4 / acc: 0 / roll: 2 / value: 1296            │

00:00:15 #636 [Debug] > │ accumulate_dice_rolls / power: 3 / acc: 1296 / roll: 2 / value: 216          │

00:00:15 #637 [Debug] > │ accumulate_dice_rolls / power: 2 / acc: 1512 / roll: 6 / value: 180          │

00:00:15 #638 [Debug] > │ accumulate_dice_rolls / power: 1 / acc: 1692 / roll: 4 / value: 18           │

00:00:15 #639 [Debug] > │ accumulate_dice_rolls / power: 0 / acc: 1710 / roll: 5 / value: 4            │

00:00:15 #640 [Debug] > │ accumulate_dice_rolls / power: -1 / acc: 1714                                │

00:00:15 #641 [Debug] > │                                                                              │

00:00:15 #642 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #643 [Debug] >

00:00:15 #644 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:15 #645 [Debug] > // // test

00:00:15 #646 [Debug] >

00:00:15 #647 [Debug] > roll_within_bounds (Some console.write_line) 2000 [[ 4; 1; 1; 2; 3 ]]

00:00:15 #648 [Debug] > |> _equal None

00:00:15 #649 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1415-3062-6251-6805e98348cc\main.spi

00:00:16 #650 [Debug] >

00:00:16 #651 [Debug] > ╭─[ 259.70ms - stdout ]────────────────────────────────────────────────────────╮

00:00:16 #652 [Debug] > │ type [<Struct>] US0 =                                                        │

00:00:16 #653 [Debug] > │     | US0_0                                                                  │

00:00:16 #654 [Debug] > │     | US0_1 of f1_0 : int32                                                  │

00:00:16 #655 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:16 #656 [Debug] > │     let v0 : string = $"accumulate_dice_rolls / power: {4} / acc: {0} /      │

00:00:16 #657 [Debug] > │ roll: {4} / value: {3888}"                                                   │

00:00:16 #658 [Debug] > │     System.Console.WriteLine v0                                              │

00:00:16 #659 [Debug] > │     let v1 : string = $"accumulate_dice_rolls / power: {3} / acc: {3888} /   │

00:00:16 #660 [Debug] > │ roll: {1}"                                                                   │

00:00:16 #661 [Debug] > │     System.Console.WriteLine v1                                              │

00:00:16 #662 [Debug] > │     let v2 : string = $"accumulate_dice_rolls / power: {2} / acc: {3888} /   │

00:00:16 #663 [Debug] > │ roll: {1}"                                                                   │

00:00:16 #664 [Debug] > │     System.Console.WriteLine v2                                              │

00:00:16 #665 [Debug] > │     let v3 : string = $"accumulate_dice_rolls / power: {1} / acc: {3888} /   │

00:00:16 #666 [Debug] > │ roll: {2} / value: {6}"                                                      │

00:00:16 #667 [Debug] > │     System.Console.WriteLine v3                                              │

00:00:16 #668 [Debug] > │     let v4 : string = $"accumulate_dice_rolls / power: {0} / acc: {3894} /   │

00:00:16 #669 [Debug] > │ roll: {3} / value: {2}"                                                      │

00:00:16 #670 [Debug] > │     System.Console.WriteLine v4                                              │

00:00:16 #671 [Debug] > │     let v5 : string = $"accumulate_dice_rolls / power: {-1} / acc: {3896}"   │

00:00:16 #672 [Debug] > │     System.Console.WriteLine v5                                              │

00:00:16 #673 [Debug] > │     let v9 : US0 = US0_0                                                     │

00:00:16 #674 [Debug] > │     let v10 : US0 = US0_0                                                    │

00:00:16 #675 [Debug] > │     let v11 : string = $"_equal / actual: %A{v9} / expected: %A{v10}"        │

00:00:16 #676 [Debug] > │     ()                                                                       │

00:00:16 #677 [Debug] > │ method0()                                                                    │

00:00:16 #678 [Debug] > │                                                                              │

00:00:16 #679 [Debug] > │ accumulate_dice_rolls / power: 4 / acc: 0 / roll: 4 / value: 3888            │

00:00:16 #680 [Debug] > │ accumulate_dice_rolls / power: 3 / acc: 3888 / roll: 1                       │

00:00:16 #681 [Debug] > │ accumulate_dice_rolls / power: 2 / acc: 3888 / roll: 1                       │

00:00:16 #682 [Debug] > │ accumulate_dice_rolls / power: 1 / acc: 3888 / roll: 2 / value: 6            │

00:00:16 #683 [Debug] > │ accumulate_dice_rolls / power: 0 / acc: 3894 / roll: 3 / value: 2            │

00:00:16 #684 [Debug] > │ accumulate_dice_rolls / power: -1 / acc: 3896                                │

00:00:16 #685 [Debug] > │                                                                              │

00:00:16 #686 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:16 #687 [Debug] >

00:00:16 #688 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:16 #689 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:16 #690 [Debug] > │ ## calculateDiceCount                                                        │

00:00:16 #691 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:16 #692 [Debug] >

00:00:16 #693 [Debug] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:16 #694 [Debug] > let inline calculateDiceCount log max =

00:00:16 #695 [Debug] >     let rec loop n p =

00:00:16 #696 [Debug] >         if p < max

00:00:16 #697 [Debug] >         then loop (n + 1) (p * 6)

00:00:16 #698 [Debug] >         else

00:00:16 #699 [Debug] >             log |> Option.iter ((|>) $"calculateDiceCount / max: {max} / n: {n}

00:00:16 #700 [Debug] > / p: {p}")

00:00:16 #701 [Debug] >             n

00:00:16 #702 [Debug] >     if max = 1

00:00:16 #703 [Debug] >     then 1

00:00:16 #704 [Debug] >     else loop 0 1

00:00:16 #705 [Debug] >

00:00:16 #706 [Debug] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:16 #707 [Debug] > //// test

00:00:16 #708 [Debug] >

00:00:16 #709 [Debug] > calculateDiceCount (Some (printfn "%s")) 36

00:00:16 #710 [Debug] > |> _equal 2

00:00:16 #711 [Debug] >

00:00:16 #712 [Debug] > ╭─[ 27.74ms - stdout ]─────────────────────────────────────────────────────────╮

00:00:16 #713 [Debug] > │ calculateDiceCount / max: 36 / n: 2 / p: 36                                  │

00:00:16 #714 [Debug] > │ 2                                                                            │

00:00:16 #715 [Debug] > │                                                                              │

00:00:16 #716 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:16 #717 [Debug] >

00:00:16 #718 [Debug] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:16 #719 [Debug] > //// test

00:00:16 #720 [Debug] >

00:00:16 #721 [Debug] > calculateDiceCount (Some (printfn "%s")) 7777

00:00:16 #722 [Debug] > |> _equal 6

00:00:16 #723 [Debug] >

00:00:16 #724 [Debug] > ╭─[ 25.69ms - stdout ]─────────────────────────────────────────────────────────╮

00:00:16 #725 [Debug] > │ calculateDiceCount / max: 7777 / n: 6 / p: 46656                             │

00:00:16 #726 [Debug] > │ 6                                                                            │

00:00:16 #727 [Debug] > │                                                                              │

00:00:16 #728 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:16 #729 [Debug] >

00:00:16 #730 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:16 #731 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:16 #732 [Debug] > │ ## calculate_dice_count                                                      │

00:00:16 #733 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:16 #734 [Debug] >

00:00:16 #735 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:16 #736 [Debug] > inl calculate_dice_count (log : option (string -> ())) max =

00:00:16 #737 [Debug] >     inl rec loop n p =

00:00:16 #738 [Debug] >         if p < max

00:00:16 #739 [Debug] >         then loop (n + 1) (p * 6)

00:00:16 #740 [Debug] >         else

00:00:16 #741 [Debug] >             log |> optionm'.iter ((|>) $"$\"calculate_dice_count / max: {!max}

00:00:16 #742 [Debug] > n: {!n} / p: {!p}\"")

00:00:16 #743 [Debug] >             n

00:00:16 #744 [Debug] >     if max = 1

00:00:16 #745 [Debug] >     then 1

00:00:16 #746 [Debug] >     else loop 0 1

00:00:16 #747 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1415-3098-9890-9a4dfdcd79c7\main.spi

00:00:16 #748 [Debug] >

00:00:16 #749 [Debug] > ╭─[ 159.86ms - stdout ]────────────────────────────────────────────────────────╮

00:00:16 #750 [Debug] > │ ()                                                                           │

00:00:16 #751 [Debug] > │                                                                              │

00:00:16 #752 [Debug] > │                                                                              │

00:00:16 #753 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:16 #754 [Debug] >

00:00:16 #755 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:16 #756 [Debug] > // // test

00:00:16 #757 [Debug] >

00:00:16 #758 [Debug] > calculate_dice_count (Some console.write_line) 36i32

00:00:16 #759 [Debug] > |> _equal 2i32

00:00:16 #760 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1415-3114-1499-114b8fbe7c77\main.spi

00:00:16 #761 [Debug] >

00:00:16 #762 [Debug] > ╭─[ 166.98ms - stdout ]────────────────────────────────────────────────────────╮

00:00:16 #763 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:16 #764 [Debug] > │     let v0 : string = $"calculate_dice_count / max: {36} / n: {2} / p: {36}" │

00:00:16 #765 [Debug] > │     System.Console.WriteLine v0                                              │

00:00:16 #766 [Debug] > │     let v1 : string = $"_equal / actual: %A{2} / expected: %A{2}"            │

00:00:16 #767 [Debug] > │     ()                                                                       │

00:00:16 #768 [Debug] > │ method0()                                                                    │

00:00:16 #769 [Debug] > │                                                                              │

00:00:16 #770 [Debug] > │ calculate_dice_count / max: 36 / n: 2 / p: 36                                │

00:00:16 #771 [Debug] > │                                                                              │

00:00:16 #772 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:16 #773 [Debug] >

00:00:16 #774 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:16 #775 [Debug] > // // test

00:00:16 #776 [Debug] >

00:00:16 #777 [Debug] > calculate_dice_count (Some console.write_line) 7777i32

00:00:16 #778 [Debug] > |> _equal 6i32

00:00:16 #779 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1415-3132-3219-3f1e7a21f116\main.spi

00:00:16 #780 [Debug] >

00:00:16 #781 [Debug] > ╭─[ 208.92ms - stdout ]────────────────────────────────────────────────────────╮

00:00:16 #782 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:16 #783 [Debug] > │     let v0 : string = $"calculate_dice_count / max: {7777} / n: {6} / p:     │

00:00:16 #784 [Debug] > │ {46656}"                                                                     │

00:00:16 #785 [Debug] > │     System.Console.WriteLine v0                                              │

00:00:16 #786 [Debug] > │     let v1 : string = $"_equal / actual: %A{6} / expected: %A{6}"            │

00:00:16 #787 [Debug] > │     ()                                                                       │

00:00:16 #788 [Debug] > │ method0()                                                                    │

00:00:16 #789 [Debug] > │                                                                              │

00:00:16 #790 [Debug] > │ calculate_dice_count / max: 7777 / n: 6 / p: 46656                           │

00:00:16 #791 [Debug] > │                                                                              │

00:00:16 #792 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:16 #793 [Debug] >

00:00:16 #794 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:16 #795 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:16 #796 [Debug] > │ ## rollDice                                                                  │

00:00:16 #797 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:16 #798 [Debug] >

00:00:16 #799 [Debug] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:16 #800 [Debug] > #if FABLE_COMPILER_RUST

00:00:16 #801 [Debug] > #if !CHAIN

00:00:16 #802 [Debug] > let rollDice () : int =

00:00:16 #803 [Debug] >     Fable.Core.RustInterop.emitRustExpr () "rand::Rng::gen_range(&mut

00:00:16 #804 [Debug] > rand::thread_rng(), 1..7)"

00:00:16 #805 [Debug] > #endif

00:00:16 #806 [Debug] > #else

00:00:16 #807 [Debug] > let private random = System.Random ()

00:00:16 #808 [Debug] > let rollDice () =

00:00:16 #809 [Debug] >     random.Next (1, 7)

00:00:16 #810 [Debug] > #endif

00:00:16 #811 [Debug] >

00:00:16 #812 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:16 #813 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:16 #814 [Debug] > │ ## roll_dice                                                                 │

00:00:16 #815 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:16 #816 [Debug] >

00:00:16 #817 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:16 #818 [Debug] > inl roll_dice () : i32 =

00:00:16 #819 [Debug] >     $"System.Random().Next (1, 7)"

00:00:16 #820 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1415-3155-5531-5f0c55ae3a0c\main.spi

00:00:16 #821 [Debug] >

00:00:16 #822 [Debug] > ╭─[ 191.26ms - stdout ]────────────────────────────────────────────────────────╮

00:00:16 #823 [Debug] > │ ()                                                                           │

00:00:16 #824 [Debug] > │                                                                              │

00:00:16 #825 [Debug] > │                                                                              │

00:00:16 #826 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:16 #827 [Debug] >

00:00:16 #828 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:16 #829 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:16 #830 [Debug] > │ ## rotateNumber                                                              │

00:00:16 #831 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:16 #832 [Debug] >

00:00:16 #833 [Debug] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:16 #834 [Debug] > let rotateNumber max n =

00:00:16 #835 [Debug] >     (n - 1 + max) % max + 1

00:00:16 #836 [Debug] >

00:00:16 #837 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:16 #838 [Debug] > inl rotate_number max n =

00:00:16 #839 [Debug] >     (n - 1 + max) % max + 1

00:00:17 #840 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1415-3175-7580-7a54131caf0b\main.spi

00:00:17 #841 [Debug] >

00:00:17 #842 [Debug] > ╭─[ 223.16ms - stdout ]────────────────────────────────────────────────────────╮

00:00:17 #843 [Debug] > │ ()                                                                           │

00:00:17 #844 [Debug] > │                                                                              │

00:00:17 #845 [Debug] > │                                                                              │

00:00:17 #846 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:17 #847 [Debug] >

00:00:17 #848 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:17 #849 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:17 #850 [Debug] > │ ## rotateNumbers                                                             │

00:00:17 #851 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:17 #852 [Debug] >

00:00:17 #853 [Debug] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:17 #854 [Debug] > let rotateNumbers max items =

00:00:17 #855 [Debug] >     items |> Seq.map (rotateNumber max)

00:00:17 #856 [Debug] >

00:00:17 #857 [Debug] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:17 #858 [Debug] > //// test

00:00:17 #859 [Debug] >

00:00:17 #860 [Debug] > [[ -1 .. 14 ]]

00:00:17 #861 [Debug] > |> rotateNumbers 6

00:00:17 #862 [Debug] > |> Seq.toList

00:00:17 #863 [Debug] > |> _equal [[ 5; 6; 1; 2; 3; 4; 5; 6; 1; 2; 3; 4; 5; 6; 1; 2 ]]

00:00:17 #864 [Debug] >

00:00:17 #865 [Debug] > ╭─[ 40.59ms - stdout ]─────────────────────────────────────────────────────────╮

00:00:17 #866 [Debug] > │ [ 5, 6, 1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6, 1, 2 ]                           │

00:00:17 #867 [Debug] > │                                                                              │

00:00:17 #868 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:17 #869 [Debug] >

00:00:17 #870 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:17 #871 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:17 #872 [Debug] > │ ## rotate_numbers                                                            │

00:00:17 #873 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:17 #874 [Debug] >

00:00:17 #875 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:17 #876 [Debug] > inl rotate_numbers max items =

00:00:17 #877 [Debug] >     items |> stream.map (rotate_number max)

00:00:17 #878 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1415-3204-0402-05ecfc69d696\main.spi

00:00:17 #879 [Debug] >

00:00:17 #880 [Debug] > ╭─[ 187.21ms - stdout ]────────────────────────────────────────────────────────╮

00:00:17 #881 [Debug] > │ ()                                                                           │

00:00:17 #882 [Debug] > │                                                                              │

00:00:17 #883 [Debug] > │                                                                              │

00:00:17 #884 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:17 #885 [Debug] >

00:00:17 #886 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:17 #887 [Debug] > // // test

00:00:17 #888 [Debug] >

00:00:17 #889 [Debug] > listm'.init_series -1i32 14 1

00:00:17 #890 [Debug] > |> stream.from_list

00:00:17 #891 [Debug] > |> rotate_numbers 6

00:00:17 #892 [Debug] > |> stream.to_list

00:00:17 #893 [Debug] > |> _equal [[ 5; 6; 1; 2; 3; 4; 5; 6; 1; 2; 3; 4; 5; 6; 1; 2 ]]

00:00:17 #894 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1415-3222-2296-29b1e0f0469a\main.spi

00:00:17 #895 [Debug] >

00:00:17 #896 [Debug] > ╭─[ 189.01ms - stdout ]────────────────────────────────────────────────────────╮

00:00:17 #897 [Debug] > │ type UH0 =                                                                   │

00:00:17 #898 [Debug] > │     | UH0_0 of int32 * UH0                                                   │

00:00:17 #899 [Debug] > │     | UH0_1                                                                  │

00:00:17 #900 [Debug] > │ let rec method0 () : unit =                                                  │

00:00:17 #901 [Debug] > │     let v187 : UH0 = UH0_1                                                   │

00:00:17 #902 [Debug] > │     let v188 : UH0 = UH0_0(2, v187)                                          │

00:00:17 #903 [Debug] > │     let v189 : UH0 = UH0_0(1, v188)                                          │

00:00:17 #904 [Debug] > │     let v190 : UH0 = UH0_0(6, v189)                                          │

00:00:17 #905 [Debug] > │     let v191 : UH0 = UH0_0(5, v190)                                          │

00:00:17 #906 [Debug] > │     let v192 : UH0 = UH0_0(4, v191)                                          │

00:00:17 #907 [Debug] > │     let v193 : UH0 = UH0_0(3, v192)                                          │

00:00:17 #908 [Debug] > │     let v194 : UH0 = UH0_0(2, v193)                                          │

00:00:17 #909 [Debug] > │     let v195 : UH0 = UH0_0(1, v194)                                          │

00:00:17 #910 [Debug] > │     let v196 : UH0 = UH0_0(6, v195)                                          │

00:00:17 #911 [Debug] > │     let v197 : UH0 = UH0_0(5, v196)                                          │

00:00:17 #912 [Debug] > │     let v198 : UH0 = UH0_0(4, v197)                                          │

00:00:17 #913 [Debug] > │     let v199 : UH0 = UH0_0(3, v198)                                          │

00:00:17 #914 [Debug] > │     let v200 : UH0 = UH0_0(2, v199)                                          │

00:00:17 #915 [Debug] > │     let v201 : UH0 = UH0_0(1, v200)                                          │

00:00:17 #916 [Debug] > │     let v202 : UH0 = UH0_0(6, v201)                                          │

00:00:17 #917 [Debug] > │     let v203 : UH0 = UH0_0(5, v202)                                          │

00:00:17 #918 [Debug] > │     let v204 : UH0 = UH0_1                                                   │

00:00:17 #919 [Debug] > │     let v205 : UH0 = UH0_0(2, v204)                                          │

00:00:17 #920 [Debug] > │     let v206 : UH0 = UH0_0(1, v205)                                          │

00:00:17 #921 [Debug] > │     let v207 : UH0 = UH0_0(6, v206)                                          │

00:00:17 #922 [Debug] > │     let v208 : UH0 = UH0_0(5, v207)                                          │

00:00:17 #923 [Debug] > │     let v209 : UH0 = UH0_0(4, v208)                                          │

00:00:17 #924 [Debug] > │     let v210 : UH0 = UH0_0(3, v209)                                          │

00:00:17 #925 [Debug] > │     let v211 : UH0 = UH0_0(2, v210)                                          │

00:00:17 #926 [Debug] > │     let v212 : UH0 = UH0_0(1, v211)                                          │

00:00:17 #927 [Debug] > │     let v213 : UH0 = UH0_0(6, v212)                                          │

00:00:17 #928 [Debug] > │     let v214 : UH0 = UH0_0(5, v213)                                          │

00:00:17 #929 [Debug] > │     let v215 : UH0 = UH0_0(4, v214)                                          │

00:00:17 #930 [Debug] > │     let v216 : UH0 = UH0_0(3, v215)                                          │

00:00:17 #931 [Debug] > │     let v217 : UH0 = UH0_0(2, v216)                                          │

00:00:17 #932 [Debug] > │     let v218 : UH0 = UH0_0(1, v217)                                          │

00:00:17 #933 [Debug] > │     let v219 : UH0 = UH0_0(6, v218)                                          │

00:00:17 #934 [Debug] > │     let v220 : UH0 = UH0_0(5, v219)                                          │

00:00:17 #935 [Debug] > │     let v221 : string = $"_equal / actual: %A{v203} / expected: %A{v220}"    │

00:00:17 #936 [Debug] > │     ()                                                                       │

00:00:17 #937 [Debug] > │ method0()                                                                    │

00:00:17 #938 [Debug] > │                                                                              │

00:00:17 #939 [Debug] > │                                                                              │

00:00:17 #940 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:17 #941 [Debug] >

00:00:17 #942 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:17 #943 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:17 #944 [Debug] > │ ## createSequentialRoller                                                    │

00:00:17 #945 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:17 #946 [Debug] >

00:00:17 #947 [Debug] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:17 #948 [Debug] > let createSequentialRoller list =

00:00:17 #949 [Debug] >     let mutable currentIndex = 0

00:00:17 #950 [Debug] >     fun () ->

00:00:17 #951 [Debug] >         match list |> List.tryItem currentIndex with

00:00:17 #952 [Debug] >         | Some item ->

00:00:17 #953 [Debug] >             currentIndex <- currentIndex + 1

00:00:17 #954 [Debug] >             item

00:00:17 #955 [Debug] >         | None ->

00:00:17 #956 [Debug] >             failwith "createSequentialRoller / End of list"

00:00:17 #957 [Debug] >

00:00:17 #958 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:17 #959 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:17 #960 [Debug] > │ ## create_sequential_roller                                                  │

00:00:17 #961 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:17 #962 [Debug] >

00:00:17 #963 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:17 #964 [Debug] > inl create_sequential_roller list =

00:00:17 #965 [Debug] >     inl s = list |> listm.rev |> listm.append list |> stream.from_list |>

00:00:17 #966 [Debug] > stream.memoize

00:00:17 #967 [Debug] >     inl current_index = mut 0i32

00:00:17 #968 [Debug] >     inl acc = mut 1

00:00:17 #969 [Debug] >     inl len = mut -1

00:00:17 #970 [Debug] >     let rec loop () =

00:00:17 #971 [Debug] >         match s () |> stream.try_item *current_index with

00:00:17 #972 [Debug] >         | Some item =>

00:00:17 #973 [Debug] >             current_index <- *current_index + 1

00:00:17 #974 [Debug] >             item

00:00:17 #975 [Debug] >         | None =>

00:00:17 #976 [Debug] >             if *len = -1

00:00:17 #977 [Debug] >             then len <- *current_index

00:00:17 #978 [Debug] >             acc <-

00:00:17 #979 [Debug] >                 if *acc >= *len

00:00:17 #980 [Debug] >                 then 1

00:00:17 #981 [Debug] >                 else *acc + 1

00:00:17 #982 [Debug] >             current_index <- *acc - 1

00:00:17 #983 [Debug] >             loop ()

00:00:17 #984 [Debug] >     loop

00:00:17 #985 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1415-3246-4648-4f5dd56ffedf\main.spi

00:00:17 #986 [Debug] >

00:00:17 #987 [Debug] > ╭─[ 153.10ms - stdout ]────────────────────────────────────────────────────────╮

00:00:17 #988 [Debug] > │ ()                                                                           │

00:00:17 #989 [Debug] > │                                                                              │

00:00:17 #990 [Debug] > │                                                                              │

00:00:17 #991 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:17 #992 [Debug] >

00:00:17 #993 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:17 #994 [Debug] > // // test

00:00:17 #995 [Debug] >

00:00:17 #996 [Debug] > inl sequential_roll = create_sequential_roller [[ 1i32; 2; 3; 4 ]]

00:00:17 #997 [Debug] >

00:00:17 #998 [Debug] > am.init 20i32 (ignore >> sequential_roll)

00:00:17 #999 [Debug] > |> _equal (a ;[[ 1; 2; 3; 4; 4; 3; 2; 1; 2; 3; 4; 4; 3; 2; 1; 3; 4; 4; 3; 2 ]] :

00:00:17 #1000 [Debug] > a i32 i32)

00:00:17 #1001 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1415-3261-6197-668be2e40516\main.spi

00:00:18 #1002 [Debug] >

00:00:18 #1003 [Debug] > ╭─[ 424.35ms - stdout ]────────────────────────────────────────────────────────╮

00:00:18 #1004 [Debug] > │ type UH0 =                                                                   │

00:00:18 #1005 [Debug] > │     | UH0_0 of int32 * (unit -> UH0)                                         │

00:00:18 #1006 [Debug] > │     | UH0_1                                                                  │

00:00:18 #1007 [Debug] > │ and [<Struct>] US0 =                                                         │

00:00:18 #1008 [Debug] > │     | US0_0 of f0_0 : UH0                                                    │

00:00:18 #1009 [Debug] > │     | US0_1 of f1_0 : (unit -> UH0)                                          │

00:00:18 #1010 [Debug] > │ and Mut0 = {mutable l0 : US0}                                                │

00:00:18 #1011 [Debug] > │ and Mut1 = {mutable l0 : int32}                                              │

00:00:18 #1012 [Debug] > │ and Mut2 = {mutable l0 : int32}                                              │

00:00:18 #1013 [Debug] > │ and [<Struct>] US1 =                                                         │

00:00:18 #1014 [Debug] > │     | US1_0                                                                  │

00:00:18 #1015 [Debug] > │     | US1_1 of f1_0 : int32                                                  │

00:00:18 #1016 [Debug] > │ let rec closure8 () () : UH0 =                                               │

00:00:18 #1017 [Debug] > │     UH0_1                                                                    │

00:00:18 #1018 [Debug] > │ and closure7 () () : UH0 =                                                   │

00:00:18 #1019 [Debug] > │     let v0 : (unit -> UH0) = closure8()                                      │

00:00:18 #1020 [Debug] > │     UH0_0(1, v0)                                                             │

00:00:18 #1021 [Debug] > │ and closure6 () () : UH0 =                                                   │

00:00:18 #1022 [Debug] > │     let v0 : (unit -> UH0) = closure7()                                      │

00:00:18 #1023 [Debug] > │     UH0_0(2, v0)                                                             │

00:00:18 #1024 [Debug] > │ and closure5 () () : UH0 =                                                   │

00:00:18 #1025 [Debug] > │     let v0 : (unit -> UH0) = closure6()                                      │

00:00:18 #1026 [Debug] > │     UH0_0(3, v0)                                                             │

00:00:18 #1027 [Debug] > │ and closure4 () () : UH0 =                                                   │

00:00:18 #1028 [Debug] > │     let v0 : (unit -> UH0) = closure5()                                      │

00:00:18 #1029 [Debug] > │     UH0_0(4, v0)                                                             │

00:00:18 #1030 [Debug] > │ and closure3 () () : UH0 =                                                   │

00:00:18 #1031 [Debug] > │     let v0 : (unit -> UH0) = closure4()                                      │

00:00:18 #1032 [Debug] > │     UH0_0(4, v0)                                                             │

00:00:18 #1033 [Debug] > │ and closure2 () () : UH0 =                                                   │

00:00:18 #1034 [Debug] > │     let v0 : (unit -> UH0) = closure3()                                      │

00:00:18 #1035 [Debug] > │     UH0_0(3, v0)                                                             │

00:00:18 #1036 [Debug] > │ and closure1 () () : UH0 =                                                   │

00:00:18 #1037 [Debug] > │     let v0 : (unit -> UH0) = closure2()                                      │

00:00:18 #1038 [Debug] > │     UH0_0(2, v0)                                                             │

00:00:18 #1039 [Debug] > │ and closure0 () () : UH0 =                                                   │

00:00:18 #1040 [Debug] > │     let v0 : (unit -> UH0) = closure1()                                      │

00:00:18 #1041 [Debug] > │     UH0_0(1, v0)                                                             │

00:00:18 #1042 [Debug] > │ and method1 (v0 : Mut2) : bool =                                             │

00:00:18 #1043 [Debug] > │     let v1 : int32 = v0.l0                                                   │

00:00:18 #1044 [Debug] > │     let v2 : bool = v1 < 20                                                  │

00:00:18 #1045 [Debug] > │     v2                                                                       │

00:00:18 #1046 [Debug] > │ and closure9 (v0 : Mut0) () : UH0 =                                          │

00:00:18 #1047 [Debug] > │     let v1 : US0 = v0.l0                                                     │

00:00:18 #1048 [Debug] > │     match v1 with                                                            │

00:00:18 #1049 [Debug] > │     | US0_0(v2) -> (* Computed *)                                            │

00:00:18 #1050 [Debug] > │         v2                                                                   │

00:00:18 #1051 [Debug] > │     | US0_1(v3) -> (* NotComputed *)                                         │

00:00:18 #1052 [Debug] > │         let v4 : UH0 = v3 ()                                                 │

00:00:18 #1053 [Debug] > │         let v13 : UH0 =                                                      │

00:00:18 #1054 [Debug] > │             match v4 with                                                    │

00:00:18 #1055 [Debug] > │             | UH0_0(v6, v7) -> (* StreamCons *)                              │

00:00:18 #1056 [Debug] > │                 let v8 : US0 = US0_1(v7)                                     │

00:00:18 #1057 [Debug] > │                 let v9 : Mut0 = {l0 = v8} : Mut0                             │

00:00:18 #1058 [Debug] > │                 let v10 : (unit -> UH0) = closure9(v9)                       │

00:00:18 #1059 [Debug] > │                 UH0_0(v6, v10)                                               │

00:00:18 #1060 [Debug] > │             | UH0_1 -> (* StreamNil *)                                       │

00:00:18 #1061 [Debug] > │                 UH0_1                                                        │

00:00:18 #1062 [Debug] > │         let v14 : US0 = US0_0(v13)                                           │

00:00:18 #1063 [Debug] > │         v0.l0 <- v14                                                         │

00:00:18 #1064 [Debug] > │         v13                                                                  │

00:00:18 #1065 [Debug] > │ and method3 (v0 : int32, v1 : UH0) : US1 =                                   │

00:00:18 #1066 [Debug] > │     match v1 with                                                            │

00:00:18 #1067 [Debug] > │     | UH0_0(v2, v3) -> (* StreamCons *)                                      │

00:00:18 #1068 [Debug] > │         let v4 : bool = v0 <= 0                                              │

00:00:18 #1069 [Debug] > │         if v4 then                                                           │

00:00:18 #1070 [Debug] > │             US1_1(v2)                                                        │

00:00:18 #1071 [Debug] > │         else                                                                 │

00:00:18 #1072 [Debug] > │             let v6 : int32 = v0 - 1                                          │

00:00:18 #1073 [Debug] > │             let v7 : UH0 = v3 ()                                             │

00:00:18 #1074 [Debug] > │             method3(v6, v7)                                                  │

00:00:18 #1075 [Debug] > │     | UH0_1 -> (* StreamNil *)                                               │

00:00:18 #1076 [Debug] > │         US1_0                                                                │

00:00:18 #1077 [Debug] > │ and method2 (v0 : Mut0, v1 : Mut1, v2 : Mut1, v3 : Mut1) : int32 =           │

00:00:18 #1078 [Debug] > │     let v4 : US0 = v0.l0                                                     │

00:00:18 #1079 [Debug] > │     let v19 : UH0 =                                                          │

00:00:18 #1080 [Debug] > │         match v4 with                                                        │

00:00:18 #1081 [Debug] > │         | US0_0(v5) -> (* Computed *)                                        │

00:00:18 #1082 [Debug] > │             v5                                                               │

00:00:18 #1083 [Debug] > │         | US0_1(v6) -> (* NotComputed *)                                     │

00:00:18 #1084 [Debug] > │             let v7 : UH0 = v6 ()                                             │

00:00:18 #1085 [Debug] > │             let v16 : UH0 =                                                  │

00:00:18 #1086 [Debug] > │                 match v7 with                                                │

00:00:18 #1087 [Debug] > │                 | UH0_0(v9, v10) -> (* StreamCons *)                         │

00:00:18 #1088 [Debug] > │                     let v11 : US0 = US0_1(v10)                               │

00:00:18 #1089 [Debug] > │                     let v12 : Mut0 = {l0 = v11} : Mut0                       │

00:00:18 #1090 [Debug] > │                     let v13 : (unit -> UH0) = closure9(v12)                  │

00:00:18 #1091 [Debug] > │                     UH0_0(v9, v13)                                           │

00:00:18 #1092 [Debug] > │                 | UH0_1 -> (* StreamNil *)                                   │

00:00:18 #1093 [Debug] > │                     UH0_1                                                    │

00:00:18 #1094 [Debug] > │             let v17 : US0 = US0_0(v16)                                       │

00:00:18 #1095 [Debug] > │             v0.l0 <- v17                                                     │

00:00:18 #1096 [Debug] > │             v16                                                              │

00:00:18 #1097 [Debug] > │     let v20 : int32 = v1.l0                                                  │

00:00:18 #1098 [Debug] > │     let v21 : US1 = method3(v20, v19)                                        │

00:00:18 #1099 [Debug] > │     match v21 with                                                           │

00:00:18 #1100 [Debug] > │     | US1_0 -> (* None *)                                                    │

00:00:18 #1101 [Debug] > │         let v25 : int32 = v3.l0                                              │

00:00:18 #1102 [Debug] > │         let v26 : bool = v25 = -1                                            │

00:00:18 #1103 [Debug] > │         if v26 then                                                          │

00:00:18 #1104 [Debug] > │             let v27 : int32 = v1.l0                                          │

00:00:18 #1105 [Debug] > │             v3.l0 <- v27                                                     │

00:00:18 #1106 [Debug] > │             ()                                                               │

00:00:18 #1107 [Debug] > │         let v28 : int32 = v2.l0                                              │

00:00:18 #1108 [Debug] > │         let v29 : int32 = v3.l0                                              │

00:00:18 #1109 [Debug] > │         let v30 : bool = v28 >= v29                                          │

00:00:18 #1110 [Debug] > │         let v33 : int32 =                                                    │

00:00:18 #1111 [Debug] > │             if v30 then                                                      │

00:00:18 #1112 [Debug] > │                 1                                                            │

00:00:18 #1113 [Debug] > │             else                                                             │

00:00:18 #1114 [Debug] > │                 let v31 : int32 = v2.l0                                      │

00:00:18 #1115 [Debug] > │                 let v32 : int32 = v31 + 1                                    │

00:00:18 #1116 [Debug] > │                 v32                                                          │

00:00:18 #1117 [Debug] > │         v2.l0 <- v33                                                         │

00:00:18 #1118 [Debug] > │         let v34 : int32 = v2.l0                                              │

00:00:18 #1119 [Debug] > │         let v35 : int32 = v34 - 1                                            │

00:00:18 #1120 [Debug] > │         v1.l0 <- v35                                                         │

00:00:18 #1121 [Debug] > │         method2(v0, v1, v2, v3)                                              │

00:00:18 #1122 [Debug] > │     | US1_1(v22) -> (* Some *)                                               │

00:00:18 #1123 [Debug] > │         let v23 : int32 = v1.l0                                              │

00:00:18 #1124 [Debug] > │         let v24 : int32 = v23 + 1                                            │

00:00:18 #1125 [Debug] > │         v1.l0 <- v24                                                         │

00:00:18 #1126 [Debug] > │         v22                                                                  │

00:00:18 #1127 [Debug] > │ and method4 (v0 : (int32 []), v1 : (int32 []), v2 : int32) : bool =          │

00:00:18 #1128 [Debug] > │     let v3 : int32 = v0.Length                                               │

00:00:18 #1129 [Debug] > │     let v4 : bool = v2 < v3                                                  │

00:00:18 #1130 [Debug] > │     if v4 then                                                               │

00:00:18 #1131 [Debug] > │         let v5 : int32 = v0.[int v2]                                         │

00:00:18 #1132 [Debug] > │         let v6 : int32 = v1.[int v2]                                         │

00:00:18 #1133 [Debug] > │         let v7 : bool = v5 = v6                                              │

00:00:18 #1134 [Debug] > │         if v7 then                                                           │

00:00:18 #1135 [Debug] > │             let v8 : int32 = v2 + 1                                          │

00:00:18 #1136 [Debug] > │             method4(v0, v1, v8)                                              │

00:00:18 #1137 [Debug] > │         else                                                                 │

00:00:18 #1138 [Debug] > │             false                                                            │

00:00:18 #1139 [Debug] > │     else                                                                     │

00:00:18 #1140 [Debug] > │         true                                                                 │

00:00:18 #1141 [Debug] > │ and method0 () : unit =                                                      │

00:00:18 #1142 [Debug] > │     let v0 : (unit -> UH0) = closure0()                                      │

00:00:18 #1143 [Debug] > │     let v1 : US0 = US0_1(v0)                                                 │

00:00:18 #1144 [Debug] > │     let v2 : Mut0 = {l0 = v1} : Mut0                                         │

00:00:18 #1145 [Debug] > │     let v3 : Mut1 = {l0 = 0} : Mut1                                          │

00:00:18 #1146 [Debug] > │     let v4 : Mut1 = {l0 = 1} : Mut1                                          │

00:00:18 #1147 [Debug] > │     let v5 : Mut1 = {l0 = -1} : Mut1                                         │

00:00:18 #1148 [Debug] > │     let v6 : (int32 []) = Array.zeroCreate<int32> (20)                       │

00:00:18 #1149 [Debug] > │     let v7 : Mut2 = {l0 = 0} : Mut2                                          │

00:00:18 #1150 [Debug] > │     while method1(v7) do                                                     │

00:00:18 #1151 [Debug] > │         let v9 : int32 = v7.l0                                               │

00:00:18 #1152 [Debug] > │         let v10 : int32 = method2(v2, v3, v4, v5)                            │

00:00:18 #1153 [Debug] > │         v6.[int v9] <- v10                                                   │

00:00:18 #1154 [Debug] > │         let v11 : int32 = v9 + 1                                             │

00:00:18 #1155 [Debug] > │         v7.l0 <- v11                                                         │

00:00:18 #1156 [Debug] > │         ()                                                                   │

00:00:18 #1157 [Debug] > │     let v12 : (int32 []) = [|1; 2; 3; 4; 4; 3; 2; 1; 2; 3; 4; 4; 3; 2; 1; 3; │

00:00:18 #1158 [Debug] > │ 4; 4; 3; 2|]                                                                 │

00:00:18 #1159 [Debug] > │     let v13 : int32 = v6.Length                                              │

00:00:18 #1160 [Debug] > │     let v14 : int32 = v12.Length                                             │

00:00:18 #1161 [Debug] > │     let v15 : bool = v13 = v14                                               │

00:00:18 #1162 [Debug] > │     let v16 : bool = v15 <> true                                             │

00:00:18 #1163 [Debug] > │     let v19 : bool =                                                         │

00:00:18 #1164 [Debug] > │         if v16 then                                                          │

00:00:18 #1165 [Debug] > │             false                                                            │

00:00:18 #1166 [Debug] > │         else                                                                 │

00:00:18 #1167 [Debug] > │             let v17 : int32 = 0                                              │

00:00:18 #1168 [Debug] > │             method4(v6, v12, v17)                                            │

00:00:18 #1169 [Debug] > │     let v20 : string = $"_equal / actual: %A{v6} / expected: %A{v12}"        │

00:00:18 #1170 [Debug] > │     let v21 : bool = v19 = false                                             │

00:00:18 #1171 [Debug] > │     if v21 then                                                              │

00:00:18 #1172 [Debug] > │         failwith<unit> v20                                                   │

00:00:18 #1173 [Debug] > │ method0()                                                                    │

00:00:18 #1174 [Debug] > │                                                                              │

00:00:18 #1175 [Debug] > │                                                                              │

00:00:18 #1176 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:18 #1177 [Debug] >

00:00:18 #1178 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:18 #1179 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:18 #1180 [Debug] > │ ## rollProgressively                                                         │

00:00:18 #1181 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:18 #1182 [Debug] >

00:00:18 #1183 [Debug] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:18 #1184 [Debug] > let rollProgressively log roll reroll max =

00:00:18 #1185 [Debug] >     let power = (calculateDiceCount log max) - 1

00:00:18 #1186 [Debug] >     let rec loop rolls size =

00:00:18 #1187 [Debug] >         if size < power + 1

00:00:18 #1188 [Debug] >         then loop (roll () :: rolls) (size + 1)

00:00:18 #1189 [Debug] >         else

00:00:18 #1190 [Debug] >             match accumulateDiceRolls log rolls power 0 with

00:00:18 #1191 [Debug] >             | Some (result, _) when result <= max -> result

00:00:18 #1192 [Debug] >             | _ when reroll -> loop (List.init power (fun _ -> roll ())) power

00:00:18 #1193 [Debug] >             | _ -> loop (roll () :: rolls) (size + 1)

00:00:18 #1194 [Debug] >     loop [[]] 0

00:00:18 #1195 [Debug] >

00:00:18 #1196 [Debug] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:18 #1197 [Debug] > //// test

00:00:18 #1198 [Debug] >

00:00:18 #1199 [Debug] > rollProgressively None rollDice false 1

00:00:18 #1200 [Debug] > |> _equal 1

00:00:18 #1201 [Debug] >

00:00:18 #1202 [Debug] > ╭─[ 25.13ms - stdout ]─────────────────────────────────────────────────────────╮

00:00:18 #1203 [Debug] > │ 1                                                                            │

00:00:18 #1204 [Debug] > │                                                                              │

00:00:18 #1205 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:18 #1206 [Debug] >

00:00:18 #1207 [Debug] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:18 #1208 [Debug] > //// test

00:00:18 #1209 [Debug] >

00:00:18 #1210 [Debug] > let sequentialRoll = createSequentialRoller [[ 5; 4; 4; 5; 1 ]]

00:00:18 #1211 [Debug] >

00:00:18 #1212 [Debug] > rollProgressively (Some (printfn "%s")) sequentialRoll false 2000

00:00:18 #1213 [Debug] > |> _equal 995

00:00:18 #1214 [Debug] >

00:00:18 #1215 [Debug] > ╭─[ 25.98ms - stdout ]─────────────────────────────────────────────────────────╮

00:00:18 #1216 [Debug] > │ calculateDiceCount / max: 2000 / n: 5 / p: 7776                              │

00:00:18 #1217 [Debug] > │ accumulateDiceRolls / power: 4 / acc: 0 / roll: 1                            │

00:00:18 #1218 [Debug] > │ accumulateDiceRolls / power: 3 / acc: 0 / roll: 5 / value: 864               │

00:00:18 #1219 [Debug] > │ accumulateDiceRolls / power: 2 / acc: 864 / roll: 4 / value: 108             │

00:00:18 #1220 [Debug] > │ accumulateDiceRolls / power: 1 / acc: 972 / roll: 4 / value: 18              │

00:00:18 #1221 [Debug] > │ accumulateDiceRolls / power: 0 / acc: 990 / roll: 5 / value: 4               │

00:00:18 #1222 [Debug] > │ accumulateDiceRolls / power: -1 / acc: 994                                   │

00:00:18 #1223 [Debug] > │ 995                                                                          │

00:00:18 #1224 [Debug] > │                                                                              │

00:00:18 #1225 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:18 #1226 [Debug] >

00:00:18 #1227 [Debug] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:18 #1228 [Debug] > //// test

00:00:18 #1229 [Debug] >

00:00:18 #1230 [Debug] > let sequentialRoll = createSequentialRoller [[ 5; 4; 4; 5; 2 ]]

00:00:18 #1231 [Debug] >

00:00:18 #1232 [Debug] > fun () -> rollProgressively (Some (printfn "%s")) sequentialRoll false 2000 |>

00:00:18 #1233 [Debug] > ignore

00:00:18 #1234 [Debug] > |> _throwsC (fun ex _ ->

00:00:18 #1235 [Debug] >     printException ex

00:00:18 #1236 [Debug] >     |> _equal "System.Exception: createSequentialRoller / End of list"

00:00:18 #1237 [Debug] > )

00:00:18 #1238 [Debug] >

00:00:18 #1239 [Debug] > ╭─[ 55.16ms - stdout ]─────────────────────────────────────────────────────────╮

00:00:18 #1240 [Debug] > │ FSI_0031+it@5-11                                                             │

00:00:18 #1241 [Debug] > │ calculateDiceCount / max: 2000 / n: 5 / p: 7776                              │

00:00:18 #1242 [Debug] > │ accumulateDiceRolls / power: 4 / acc: 0 / roll: 2 / value: 1296              │

00:00:18 #1243 [Debug] > │ accumulateDiceRolls / power: 3 / acc: 1296 / roll: 5 / value: 864            │

00:00:18 #1244 [Debug] > │ accumulateDiceRolls / power: 2 / acc: 2160 / roll: 4 / value: 108            │

00:00:18 #1245 [Debug] > │ accumulateDiceRolls / power: 1 / acc: 2268 / roll: 4 / value: 18             │

00:00:18 #1246 [Debug] > │ accumulateDiceRolls / power: 0 / acc: 2286 / roll: 5 / value: 4              │

00:00:18 #1247 [Debug] > │ accumulateDiceRolls / power: -1 / acc: 2290                                  │

00:00:18 #1248 [Debug] > │ System.Exception: createSequentialRoller / End of list                       │

00:00:18 #1249 [Debug] > │                                                                              │

00:00:18 #1250 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:18 #1251 [Debug] >

00:00:18 #1252 [Debug] > ── fsharp - ignored ────────────────────────────────────────────────────────────

00:00:18 #1253 [Debug] > //// ignore

00:00:18 #1254 [Debug] >

00:00:18 #1255 [Debug] > rollProgressively (Some (printfn "%s")) rollDice false 2000

00:00:18 #1256 [Debug] >

00:00:18 #1257 [Debug] > ── fsharp - ignored ────────────────────────────────────────────────────────────

00:00:18 #1258 [Debug] > //// ignore

00:00:18 #1259 [Debug] >

00:00:18 #1260 [Debug] > rollProgressively (Some (printfn "%s")) rollDice true 2000

00:00:18 #1261 [Debug] >

00:00:18 #1262 [Debug] > ── fsharp - ignored ────────────────────────────────────────────────────────────

00:00:18 #1263 [Debug] > //// ignore

00:00:18 #1264 [Debug] >

00:00:18 #1265 [Debug] > [[ 1 .. 1000 ]]

00:00:18 #1266 [Debug] > |> List.map (fun _ -> rollProgressively None rollDice false 10)

00:00:18 #1267 [Debug] > |> List.groupBy id

00:00:18 #1268 [Debug] > |> List.map (fun (k, v) -> k, v.Length)

00:00:18 #1269 [Debug] > |> List.sortBy fst

00:00:18 #1270 [Debug] >

00:00:18 #1271 [Debug] > ── fsharp - ignored ────────────────────────────────────────────────────────────

00:00:18 #1272 [Debug] > //// ignore

00:00:18 #1273 [Debug] >

00:00:18 #1274 [Debug] > [[ 1 .. 1000 ]]

00:00:18 #1275 [Debug] > |> List.map (fun _ -> rollProgressively None rollDice true 10)

00:00:18 #1276 [Debug] > |> List.groupBy id

00:00:18 #1277 [Debug] > |> List.map (fun (k, v) -> k, v.Length)

00:00:18 #1278 [Debug] > |> List.sortBy fst

00:00:18 #1279 [Debug] >

00:00:18 #1280 [Debug] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:18 #1281 [Debug] > //// test

00:00:18 #1282 [Debug] >

00:00:18 #1283 [Debug] > [[ 1 .. 100 ]]

00:00:18 #1284 [Debug] > |> List.iter (fun n ->

00:00:18 #1285 [Debug] >     [[ 0 .. 1 ]]

00:00:18 #1286 [Debug] >     |> List.iter (fun reroll ->

00:00:18 #1287 [Debug] >         [[ 1 .. 3500 ]]

00:00:18 #1288 [Debug] >         |> List.map (fun _ -> rollProgressively None rollDice (reroll = 1) n)

00:00:18 #1289 [Debug] >         |> List.groupBy id

00:00:18 #1290 [Debug] >         |> List.length

00:00:18 #1291 [Debug] >         |> __equal false n

00:00:18 #1292 [Debug] >     )

00:00:18 #1293 [Debug] > )

00:00:26 #1294 [Debug] >

00:00:26 #1295 [Debug] > ── fsharp - ignored ────────────────────────────────────────────────────────────

00:00:26 #1296 [Debug] > //// ignore

00:00:26 #1297 [Debug] >

00:00:26 #1298 [Debug] > let run () =

00:00:26 #1299 [Debug] >     let inline rollMax fn max n =

00:00:26 #1300 [Debug] >         [[ 1 .. n ]]

00:00:26 #1301 [Debug] >         |> List.map (fun _ -> fn max)

00:00:26 #1302 [Debug] >         |> List.groupBy id

00:00:26 #1303 [Debug] >         |> List.map (fun (_, v) -> v.Length)

00:00:26 #1304 [Debug] >

00:00:26 #1305 [Debug] >     let max = 10

00:00:26 #1306 [Debug] >     let n = 30

00:00:26 #1307 [Debug] >     let even = (n / max) |> int

00:00:26 #1308 [Debug] >

00:00:26 #1309 [Debug] >     let rec rollN current =

00:00:26 #1310 [Debug] >         let roll = rollMax (rollProgressively None rollDice true) max n

00:00:26 #1311 [Debug] >         if roll |> List.forall ((=) even)

00:00:26 #1312 [Debug] >         then current

00:00:26 #1313 [Debug] >         else rollN (current + 1)

00:00:26 #1314 [Debug] >

00:00:26 #1315 [Debug] >     rollN 0

00:00:26 #1316 [Debug] >

00:00:26 #1317 [Debug] > // run ()

00:00:26 #1318 [Debug] >

00:00:26 #1319 [Debug] > ── fsharp - ignored ────────────────────────────────────────────────────────────

00:00:26 #1320 [Debug] > //// ignore

00:00:26 #1321 [Debug] >

00:00:26 #1322 [Debug] > // [[ 1 .. 100 ]]

00:00:26 #1323 [Debug] > // |> List.map (fun i ->

00:00:26 #1324 [Debug] > //     let roll = rollN 0

00:00:26 #1325 [Debug] > //     printfn $"i: {i} / roll: {roll}"

00:00:26 #1326 [Debug] > //     roll

00:00:26 #1327 [Debug] > // )

00:00:26 #1328 [Debug] > // |> List.map float

00:00:26 #1329 [Debug] > // |> List.average

00:00:26 #1330 [Debug] >

00:00:26 #1331 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:26 #1332 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:26 #1333 [Debug] > │ ## roll_progressively                                                        │

00:00:26 #1334 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:26 #1335 [Debug] >

00:00:26 #1336 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:26 #1337 [Debug] > inl roll_progressively (log : option (string -> ())) roll reroll max =

00:00:26 #1338 [Debug] >     inl power = (calculate_dice_count log max) - 1i32

00:00:26 #1339 [Debug] >     let rec loop rolls size =

00:00:26 #1340 [Debug] >         if size < power + 1

00:00:26 #1341 [Debug] >         then loop (roll () :: rolls) (size + 1)

00:00:26 #1342 [Debug] >         else

00:00:26 #1343 [Debug] >             match accumulate_dice_rolls log rolls power 0 with

00:00:26 #1344 [Debug] >             | Some (result, _) when result <= max => result

00:00:26 #1345 [Debug] >             | _ when reroll => loop (listm.init power (fun _ => roll ())) power

00:00:26 #1346 [Debug] >             | _ => loop (roll () :: rolls) (size + 1)

00:00:26 #1347 [Debug] >     loop [[]] 0

00:00:26 #1348 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1415-4148-4845-4337917b690d\main.spi

00:00:26 #1349 [Debug] >

00:00:26 #1350 [Debug] > ╭─[ 176.66ms - stdout ]────────────────────────────────────────────────────────╮

00:00:26 #1351 [Debug] > │ ()                                                                           │

00:00:26 #1352 [Debug] > │                                                                              │

00:00:26 #1353 [Debug] > │                                                                              │

00:00:26 #1354 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:26 #1355 [Debug] >

00:00:26 #1356 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:26 #1357 [Debug] > // // test

00:00:26 #1358 [Debug] >

00:00:26 #1359 [Debug] > roll_progressively None roll_dice false 1

00:00:26 #1360 [Debug] > |> _equal 1

00:00:26 #1361 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1415-4166-6602-672eb5fbf17f\main.spi

00:00:27 #1362 [Debug] >

00:00:27 #1363 [Debug] > ╭─[ 259.84ms - stdout ]────────────────────────────────────────────────────────╮

00:00:27 #1364 [Debug] > │ type UH0 =                                                                   │

00:00:27 #1365 [Debug] > │     | UH0_0 of int32 * UH0                                                   │

00:00:27 #1366 [Debug] > │     | UH0_1                                                                  │

00:00:27 #1367 [Debug] > │ and [<Struct>] US0 =                                                         │

00:00:27 #1368 [Debug] > │     | US0_0                                                                  │

00:00:27 #1369 [Debug] > │     | US0_1 of f1_0 : int32 * f1_1 : UH0                                     │

00:00:27 #1370 [Debug] > │ let rec method3 (v0 : UH0, v1 : int32) : US0 =                               │

00:00:27 #1371 [Debug] > │     let v2 : string = $"accumulate_dice_rolls / power: {-1} / acc: {v1}"     │

00:00:27 #1372 [Debug] > │     let v3 : int32 = v1 + 1                                                  │

00:00:27 #1373 [Debug] > │     US0_1(v3, v0)                                                            │

00:00:27 #1374 [Debug] > │ and method2 (v0 : UH0, v1 : int32) : US0 =                                   │

00:00:27 #1375 [Debug] > │     match v0 with                                                            │

00:00:27 #1376 [Debug] > │     | UH0_0(v3, v4) -> (* Cons *)                                            │

00:00:27 #1377 [Debug] > │         let v5 : bool = v3 > 1                                               │

00:00:27 #1378 [Debug] > │         if v5 then                                                           │

00:00:27 #1379 [Debug] > │             let v6 : int32 = v3 - 1                                          │

00:00:27 #1380 [Debug] > │             let v7 : string = $"accumulate_dice_rolls / power: {0} / acc:    │

00:00:27 #1381 [Debug] > │ {v1} / roll: {v3} / value: {v6}"                                             │

00:00:27 #1382 [Debug] > │             let v8 : int32 = v1 + v6                                         │

00:00:27 #1383 [Debug] > │             method3(v4, v8)                                                  │

00:00:27 #1384 [Debug] > │         else                                                                 │

00:00:27 #1385 [Debug] > │             let v10 : string = $"accumulate_dice_rolls / power: {0} / acc:   │

00:00:27 #1386 [Debug] > │ {v1} / roll: {v3}"                                                           │

00:00:27 #1387 [Debug] > │             method3(v4, v1)                                                  │

00:00:27 #1388 [Debug] > │     | UH0_1 -> (* Nil *)                                                     │

00:00:27 #1389 [Debug] > │         US0_0                                                                │

00:00:27 #1390 [Debug] > │ and method1 (v0 : UH0, v1 : int32) : int32 =                                 │

00:00:27 #1391 [Debug] > │     let v2 : bool = v1 < 1                                                   │

00:00:27 #1392 [Debug] > │     if v2 then                                                               │

00:00:27 #1393 [Debug] > │         let v3 : int32 = System.Random().Next (1, 7)                         │

00:00:27 #1394 [Debug] > │         let v4 : UH0 = UH0_0(v3, v0)                                         │

00:00:27 #1395 [Debug] > │         let v5 : int32 = v1 + 1                                              │

00:00:27 #1396 [Debug] > │         method1(v4, v5)                                                      │

00:00:27 #1397 [Debug] > │     else                                                                     │

00:00:27 #1398 [Debug] > │         let v7 : int32 = 0                                                   │

00:00:27 #1399 [Debug] > │         let v8 : US0 = method2(v0, v7)                                       │

00:00:27 #1400 [Debug] > │         match v8 with                                                        │

00:00:27 #1401 [Debug] > │         | US0_1(v9, v10) -> (* Some *)                                       │

00:00:27 #1402 [Debug] > │             let v11 : bool = v9 <= 1                                         │

00:00:27 #1403 [Debug] > │             if v11 then                                                      │

00:00:27 #1404 [Debug] > │                 v9                                                           │

00:00:27 #1405 [Debug] > │             else                                                             │

00:00:27 #1406 [Debug] > │                 let v12 : int32 = System.Random().Next (1, 7)                │

00:00:27 #1407 [Debug] > │                 let v13 : UH0 = UH0_0(v12, v0)                               │

00:00:27 #1408 [Debug] > │                 let v14 : int32 = v1 + 1                                     │

00:00:27 #1409 [Debug] > │                 method1(v13, v14)                                            │

00:00:27 #1410 [Debug] > │         | _ ->                                                               │

00:00:27 #1411 [Debug] > │             let v17 : int32 = System.Random().Next (1, 7)                    │

00:00:27 #1412 [Debug] > │             let v18 : UH0 = UH0_0(v17, v0)                                   │

00:00:27 #1413 [Debug] > │             let v19 : int32 = v1 + 1                                         │

00:00:27 #1414 [Debug] > │             method1(v18, v19)                                                │

00:00:27 #1415 [Debug] > │ and method0 () : unit =                                                      │

00:00:27 #1416 [Debug] > │     let v0 : UH0 = UH0_1                                                     │

00:00:27 #1417 [Debug] > │     let v1 : int32 = 0                                                       │

00:00:27 #1418 [Debug] > │     let v2 : int32 = method1(v0, v1)                                         │

00:00:27 #1419 [Debug] > │     let v3 : bool = v2 = 1                                                   │

00:00:27 #1420 [Debug] > │     let v4 : string = $"_equal / actual: %A{v2} / expected: %A{1}"           │

00:00:27 #1421 [Debug] > │     let v5 : bool = v3 = false                                               │

00:00:27 #1422 [Debug] > │     if v5 then                                                               │

00:00:27 #1423 [Debug] > │         failwith<unit> v4                                                    │

00:00:27 #1424 [Debug] > │ method0()                                                                    │

00:00:27 #1425 [Debug] > │                                                                              │

00:00:27 #1426 [Debug] > │                                                                              │

00:00:27 #1427 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:27 #1428 [Debug] >

00:00:27 #1429 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:27 #1430 [Debug] > // // test

00:00:27 #1431 [Debug] >

00:00:27 #1432 [Debug] > inl sequential_roll = create_sequential_roller [[ 5; 4; 4; 5; 1 ]]

00:00:27 #1433 [Debug] >

00:00:27 #1434 [Debug] > roll_progressively (Some console.write_line) sequential_roll false 2000

00:00:27 #1435 [Debug] > |> _equal 995

00:00:27 #1436 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1415-4194-9422-99c39ddc4c0e\main.spi

00:00:27 #1437 [Debug] >

00:00:27 #1438 [Debug] > ╭─[ 410.35ms - stdout ]────────────────────────────────────────────────────────╮

00:00:27 #1439 [Debug] > │ type UH0 =                                                                   │

00:00:27 #1440 [Debug] > │     | UH0_0 of int32 * (unit -> UH0)                                         │

00:00:27 #1441 [Debug] > │     | UH0_1                                                                  │

00:00:27 #1442 [Debug] > │ and [<Struct>] US0 =                                                         │

00:00:27 #1443 [Debug] > │     | US0_0 of f0_0 : UH0                                                    │

00:00:27 #1444 [Debug] > │     | US0_1 of f1_0 : (unit -> UH0)                                          │

00:00:27 #1445 [Debug] > │ and Mut0 = {mutable l0 : US0}                                                │

00:00:27 #1446 [Debug] > │ and Mut1 = {mutable l0 : int32}                                              │

00:00:27 #1447 [Debug] > │ and UH1 =                                                                    │

00:00:27 #1448 [Debug] > │     | UH1_0 of int32 * UH1                                                   │

00:00:27 #1449 [Debug] > │     | UH1_1                                                                  │

00:00:27 #1450 [Debug] > │ and [<Struct>] US1 =                                                         │

00:00:27 #1451 [Debug] > │     | US1_0                                                                  │

00:00:27 #1452 [Debug] > │     | US1_1 of f1_0 : int32                                                  │

00:00:27 #1453 [Debug] > │ and [<Struct>] US2 =                                                         │

00:00:27 #1454 [Debug] > │     | US2_0                                                                  │

00:00:27 #1455 [Debug] > │     | US2_1 of f1_0 : int32 * f1_1 : UH1                                     │

00:00:27 #1456 [Debug] > │ let rec closure10 () () : UH0 =                                              │

00:00:27 #1457 [Debug] > │     UH0_1                                                                    │

00:00:27 #1458 [Debug] > │ and closure9 () () : UH0 =                                                   │

00:00:27 #1459 [Debug] > │     let v0 : (unit -> UH0) = closure10()                                     │

00:00:27 #1460 [Debug] > │     UH0_0(5, v0)                                                             │

00:00:27 #1461 [Debug] > │ and closure8 () () : UH0 =                                                   │

00:00:27 #1462 [Debug] > │     let v0 : (unit -> UH0) = closure9()                                      │

00:00:27 #1463 [Debug] > │     UH0_0(4, v0)                                                             │

00:00:27 #1464 [Debug] > │ and closure7 () () : UH0 =                                                   │

00:00:27 #1465 [Debug] > │     let v0 : (unit -> UH0) = closure8()                                      │

00:00:27 #1466 [Debug] > │     UH0_0(4, v0)                                                             │

00:00:27 #1467 [Debug] > │ and closure6 () () : UH0 =                                                   │

00:00:27 #1468 [Debug] > │     let v0 : (unit -> UH0) = closure7()                                      │

00:00:27 #1469 [Debug] > │     UH0_0(5, v0)                                                             │

00:00:27 #1470 [Debug] > │ and closure5 () () : UH0 =                                                   │

00:00:27 #1471 [Debug] > │     let v0 : (unit -> UH0) = closure6()                                      │

00:00:27 #1472 [Debug] > │     UH0_0(1, v0)                                                             │

00:00:27 #1473 [Debug] > │ and closure4 () () : UH0 =                                                   │

00:00:27 #1474 [Debug] > │     let v0 : (unit -> UH0) = closure5()                                      │

00:00:27 #1475 [Debug] > │     UH0_0(1, v0)                                                             │

00:00:27 #1476 [Debug] > │ and closure3 () () : UH0 =                                                   │

00:00:27 #1477 [Debug] > │     let v0 : (unit -> UH0) = closure4()                                      │

00:00:27 #1478 [Debug] > │     UH0_0(5, v0)                                                             │

00:00:27 #1479 [Debug] > │ and closure2 () () : UH0 =                                                   │

00:00:27 #1480 [Debug] > │     let v0 : (unit -> UH0) = closure3()                                      │

00:00:27 #1481 [Debug] > │     UH0_0(4, v0)                                                             │

00:00:27 #1482 [Debug] > │ and closure1 () () : UH0 =                                                   │

00:00:27 #1483 [Debug] > │     let v0 : (unit -> UH0) = closure2()                                      │

00:00:27 #1484 [Debug] > │     UH0_0(4, v0)                                                             │

00:00:27 #1485 [Debug] > │ and closure0 () () : UH0 =                                                   │

00:00:27 #1486 [Debug] > │     let v0 : (unit -> UH0) = closure1()                                      │

00:00:27 #1487 [Debug] > │     UH0_0(5, v0)                                                             │

00:00:27 #1488 [Debug] > │ and closure11 (v0 : Mut0) () : UH0 =                                         │

00:00:27 #1489 [Debug] > │     let v1 : US0 = v0.l0                                                     │

00:00:27 #1490 [Debug] > │     match v1 with                                                            │

00:00:27 #1491 [Debug] > │     | US0_0(v2) -> (* Computed *)                                            │

00:00:27 #1492 [Debug] > │         v2                                                                   │

00:00:27 #1493 [Debug] > │     | US0_1(v3) -> (* NotComputed *)                                         │

00:00:27 #1494 [Debug] > │         let v4 : UH0 = v3 ()                                                 │

00:00:27 #1495 [Debug] > │         let v13 : UH0 =                                                      │

00:00:27 #1496 [Debug] > │             match v4 with                                                    │

00:00:27 #1497 [Debug] > │             | UH0_0(v6, v7) -> (* StreamCons *)                              │

00:00:27 #1498 [Debug] > │                 let v8 : US0 = US0_1(v7)                                     │

00:00:27 #1499 [Debug] > │                 let v9 : Mut0 = {l0 = v8} : Mut0                             │

00:00:27 #1500 [Debug] > │                 let v10 : (unit -> UH0) = closure11(v9)                      │

00:00:27 #1501 [Debug] > │                 UH0_0(v6, v10)                                               │

00:00:27 #1502 [Debug] > │             | UH0_1 -> (* StreamNil *)                                       │

00:00:27 #1503 [Debug] > │                 UH0_1                                                        │

00:00:27 #1504 [Debug] > │         let v14 : US0 = US0_0(v13)                                           │

00:00:27 #1505 [Debug] > │         v0.l0 <- v14                                                         │

00:00:27 #1506 [Debug] > │         v13                                                                  │

00:00:27 #1507 [Debug] > │ and method3 (v0 : int32, v1 : UH0) : US1 =                                   │

00:00:27 #1508 [Debug] > │     match v1 with                                                            │

00:00:27 #1509 [Debug] > │     | UH0_0(v2, v3) -> (* StreamCons *)                                      │

00:00:27 #1510 [Debug] > │         let v4 : bool = v0 <= 0                                              │

00:00:27 #1511 [Debug] > │         if v4 then                                                           │

00:00:27 #1512 [Debug] > │             US1_1(v2)                                                        │

00:00:27 #1513 [Debug] > │         else                                                                 │

00:00:27 #1514 [Debug] > │             let v6 : int32 = v0 - 1                                          │

00:00:27 #1515 [Debug] > │             let v7 : UH0 = v3 ()                                             │

00:00:27 #1516 [Debug] > │             method3(v6, v7)                                                  │

00:00:27 #1517 [Debug] > │     | UH0_1 -> (* StreamNil *)                                               │

00:00:27 #1518 [Debug] > │         US1_0                                                                │

00:00:27 #1519 [Debug] > │ and method2 (v0 : Mut0, v1 : Mut1, v2 : Mut1, v3 : Mut1) : int32 =           │

00:00:27 #1520 [Debug] > │     let v4 : US0 = v0.l0                                                     │

00:00:27 #1521 [Debug] > │     let v19 : UH0 =                                                          │

00:00:27 #1522 [Debug] > │         match v4 with                                                        │

00:00:27 #1523 [Debug] > │         | US0_0(v5) -> (* Computed *)                                        │

00:00:27 #1524 [Debug] > │             v5                                                               │

00:00:27 #1525 [Debug] > │         | US0_1(v6) -> (* NotComputed *)                                     │

00:00:27 #1526 [Debug] > │             let v7 : UH0 = v6 ()                                             │

00:00:27 #1527 [Debug] > │             let v16 : UH0 =                                                  │

00:00:27 #1528 [Debug] > │                 match v7 with                                                │

00:00:27 #1529 [Debug] > │                 | UH0_0(v9, v10) -> (* StreamCons *)                         │

00:00:27 #1530 [Debug] > │                     let v11 : US0 = US0_1(v10)                               │

00:00:27 #1531 [Debug] > │                     let v12 : Mut0 = {l0 = v11} : Mut0                       │

00:00:27 #1532 [Debug] > │                     let v13 : (unit -> UH0) = closure11(v12)                 │

00:00:27 #1533 [Debug] > │                     UH0_0(v9, v13)                                           │

00:00:27 #1534 [Debug] > │                 | UH0_1 -> (* StreamNil *)                                   │

00:00:27 #1535 [Debug] > │                     UH0_1                                                    │

00:00:27 #1536 [Debug] > │             let v17 : US0 = US0_0(v16)                                       │

00:00:27 #1537 [Debug] > │             v0.l0 <- v17                                                     │

00:00:27 #1538 [Debug] > │             v16                                                              │

00:00:27 #1539 [Debug] > │     let v20 : int32 = v1.l0                                                  │

00:00:27 #1540 [Debug] > │     let v21 : US1 = method3(v20, v19)                                        │

00:00:27 #1541 [Debug] > │     match v21 with                                                           │

00:00:27 #1542 [Debug] > │     | US1_0 -> (* None *)                                                    │

00:00:27 #1543 [Debug] > │         let v25 : int32 = v3.l0                                              │

00:00:27 #1544 [Debug] > │         let v26 : bool = v25 = -1                                            │

00:00:27 #1545 [Debug] > │         if v26 then                                                          │

00:00:27 #1546 [Debug] > │             let v27 : int32 = v1.l0                                          │

00:00:27 #1547 [Debug] > │             v3.l0 <- v27                                                     │

00:00:27 #1548 [Debug] > │             ()                                                               │

00:00:27 #1549 [Debug] > │         let v28 : int32 = v2.l0                                              │

00:00:27 #1550 [Debug] > │         let v29 : int32 = v3.l0                                              │

00:00:27 #1551 [Debug] > │         let v30 : bool = v28 >= v29                                          │

00:00:27 #1552 [Debug] > │         let v33 : int32 =                                                    │

00:00:27 #1553 [Debug] > │             if v30 then                                                      │

00:00:27 #1554 [Debug] > │                 1                                                            │

00:00:27 #1555 [Debug] > │             else                                                             │

00:00:27 #1556 [Debug] > │                 let v31 : int32 = v2.l0                                      │

00:00:27 #1557 [Debug] > │                 let v32 : int32 = v31 + 1                                    │

00:00:27 #1558 [Debug] > │                 v32                                                          │

00:00:27 #1559 [Debug] > │         v2.l0 <- v33                                                         │

00:00:27 #1560 [Debug] > │         let v34 : int32 = v2.l0                                              │

00:00:27 #1561 [Debug] > │         let v35 : int32 = v34 - 1                                            │

00:00:27 #1562 [Debug] > │         v1.l0 <- v35                                                         │

00:00:27 #1563 [Debug] > │         method2(v0, v1, v2, v3)                                              │

00:00:27 #1564 [Debug] > │     | US1_1(v22) -> (* Some *)                                               │

00:00:27 #1565 [Debug] > │         let v23 : int32 = v1.l0                                              │

00:00:27 #1566 [Debug] > │         let v24 : int32 = v23 + 1                                            │

00:00:27 #1567 [Debug] > │         v1.l0 <- v24                                                         │

00:00:27 #1568 [Debug] > │         v22                                                                  │

00:00:27 #1569 [Debug] > │ and method9 (v0 : UH1, v1 : int32) : US2 =                                   │

00:00:27 #1570 [Debug] > │     let v2 : string = $"accumulate_dice_rolls / power: {-1} / acc: {v1}"     │

00:00:27 #1571 [Debug] > │     System.Console.WriteLine v2                                              │

00:00:27 #1572 [Debug] > │     let v3 : int32 = v1 + 1                                                  │

00:00:27 #1573 [Debug] > │     US2_1(v3, v0)                                                            │

00:00:27 #1574 [Debug] > │ and method8 (v0 : UH1, v1 : int32) : US2 =                                   │

00:00:27 #1575 [Debug] > │     match v0 with                                                            │

00:00:27 #1576 [Debug] > │     | UH1_0(v3, v4) -> (* Cons *)                                            │

00:00:27 #1577 [Debug] > │         let v5 : bool = v3 > 1                                               │

00:00:27 #1578 [Debug] > │         if v5 then                                                           │

00:00:27 #1579 [Debug] > │             let v6 : int32 = v3 - 1                                          │

00:00:27 #1580 [Debug] > │             let v7 : string = $"accumulate_dice_rolls / power: {0} / acc:    │

00:00:27 #1581 [Debug] > │ {v1} / roll: {v3} / value: {v6}"                                             │

00:00:27 #1582 [Debug] > │             System.Console.WriteLine v7                                      │

00:00:27 #1583 [Debug] > │             let v8 : int32 = v1 + v6                                         │

00:00:27 #1584 [Debug] > │             method9(v4, v8)                                                  │

00:00:27 #1585 [Debug] > │         else                                                                 │

00:00:27 #1586 [Debug] > │             let v10 : string = $"accumulate_dice_rolls / power: {0} / acc:   │

00:00:27 #1587 [Debug] > │ {v1} / roll: {v3}"                                                           │

00:00:27 #1588 [Debug] > │             System.Console.WriteLine v10                                     │

00:00:27 #1589 [Debug] > │             method9(v4, v1)                                                  │

00:00:27 #1590 [Debug] > │     | UH1_1 -> (* Nil *)                                                     │

00:00:27 #1591 [Debug] > │         US2_0                                                                │

00:00:27 #1592 [Debug] > │ and method7 (v0 : UH1, v1 : int32) : US2 =                                   │

00:00:27 #1593 [Debug] > │     match v0 with                                                            │

00:00:27 #1594 [Debug] > │     | UH1_0(v3, v4) -> (* Cons *)                                            │

00:00:27 #1595 [Debug] > │         let v5 : bool = v3 > 1                                               │

00:00:27 #1596 [Debug] > │         if v5 then                                                           │

00:00:27 #1597 [Debug] > │             let v6 : int32 = v3 - 1                                          │

00:00:27 #1598 [Debug] > │             let v7 : int32 = v6 * 6                                          │

00:00:27 #1599 [Debug] > │             let v8 : string = $"accumulate_dice_rolls / power: {1} / acc:    │

00:00:27 #1600 [Debug] > │ {v1} / roll: {v3} / value: {v7}"                                             │

00:00:27 #1601 [Debug] > │             System.Console.WriteLine v8                                      │

00:00:27 #1602 [Debug] > │             let v9 : int32 = v1 + v7                                         │

00:00:27 #1603 [Debug] > │             method8(v4, v9)                                                  │

00:00:27 #1604 [Debug] > │         else                                                                 │

00:00:27 #1605 [Debug] > │             let v11 : string = $"accumulate_dice_rolls / power: {1} / acc:   │

00:00:27 #1606 [Debug] > │ {v1} / roll: {v3}"                                                           │

00:00:27 #1607 [Debug] > │             System.Console.WriteLine v11                                     │

00:00:27 #1608 [Debug] > │             method8(v4, v1)                                                  │

00:00:27 #1609 [Debug] > │     | UH1_1 -> (* Nil *)                                                     │

00:00:27 #1610 [Debug] > │         US2_0                                                                │

00:00:27 #1611 [Debug] > │ and method6 (v0 : UH1, v1 : int32) : US2 =                                   │

00:00:27 #1612 [Debug] > │     match v0 with                                                            │

00:00:27 #1613 [Debug] > │     | UH1_0(v3, v4) -> (* Cons *)                                            │

00:00:27 #1614 [Debug] > │         let v5 : bool = v3 > 1                                               │

00:00:27 #1615 [Debug] > │         if v5 then                                                           │

00:00:27 #1616 [Debug] > │             let v6 : int32 = v3 - 1                                          │

00:00:27 #1617 [Debug] > │             let v7 : int32 = v6 * 36                                         │

00:00:27 #1618 [Debug] > │             let v8 : string = $"accumulate_dice_rolls / power: {2} / acc:    │

00:00:27 #1619 [Debug] > │ {v1} / roll: {v3} / value: {v7}"                                             │

00:00:27 #1620 [Debug] > │             System.Console.WriteLine v8                                      │

00:00:27 #1621 [Debug] > │             let v9 : int32 = v1 + v7                                         │

00:00:27 #1622 [Debug] > │             method7(v4, v9)                                                  │

00:00:27 #1623 [Debug] > │         else                                                                 │

00:00:27 #1624 [Debug] > │             let v11 : string = $"accumulate_dice_rolls / power: {2} / acc:   │

00:00:27 #1625 [Debug] > │ {v1} / roll: {v3}"                                                           │

00:00:27 #1626 [Debug] > │             System.Console.WriteLine v11                                     │

00:00:27 #1627 [Debug] > │             method7(v4, v1)                                                  │

00:00:27 #1628 [Debug] > │     | UH1_1 -> (* Nil *)                                                     │

00:00:27 #1629 [Debug] > │         US2_0                                                                │

00:00:27 #1630 [Debug] > │ and method5 (v0 : UH1, v1 : int32) : US2 =                                   │

00:00:27 #1631 [Debug] > │     match v0 with                                                            │

00:00:27 #1632 [Debug] > │     | UH1_0(v3, v4) -> (* Cons *)                                            │

00:00:27 #1633 [Debug] > │         let v5 : bool = v3 > 1                                               │

00:00:27 #1634 [Debug] > │         if v5 then                                                           │

00:00:27 #1635 [Debug] > │             let v6 : int32 = v3 - 1                                          │

00:00:27 #1636 [Debug] > │             let v7 : int32 = v6 * 216                                        │

00:00:27 #1637 [Debug] > │             let v8 : string = $"accumulate_dice_rolls / power: {3} / acc:    │

00:00:27 #1638 [Debug] > │ {v1} / roll: {v3} / value: {v7}"                                             │

00:00:27 #1639 [Debug] > │             System.Console.WriteLine v8                                      │

00:00:27 #1640 [Debug] > │             let v9 : int32 = v1 + v7                                         │

00:00:27 #1641 [Debug] > │             method6(v4, v9)                                                  │

00:00:27 #1642 [Debug] > │         else                                                                 │

00:00:27 #1643 [Debug] > │             let v11 : string = $"accumulate_dice_rolls / power: {3} / acc:   │

00:00:27 #1644 [Debug] > │ {v1} / roll: {v3}"                                                           │

00:00:27 #1645 [Debug] > │             System.Console.WriteLine v11                                     │

00:00:27 #1646 [Debug] > │             method6(v4, v1)                                                  │

00:00:27 #1647 [Debug] > │     | UH1_1 -> (* Nil *)                                                     │

00:00:27 #1648 [Debug] > │         US2_0                                                                │

00:00:27 #1649 [Debug] > │ and method4 (v0 : UH1, v1 : int32) : US2 =                                   │

00:00:27 #1650 [Debug] > │     match v0 with                                                            │

00:00:27 #1651 [Debug] > │     | UH1_0(v3, v4) -> (* Cons *)                                            │

00:00:27 #1652 [Debug] > │         let v5 : bool = v3 > 1                                               │

00:00:27 #1653 [Debug] > │         if v5 then                                                           │

00:00:27 #1654 [Debug] > │             let v6 : int32 = v3 - 1                                          │

00:00:27 #1655 [Debug] > │             let v7 : int32 = v6 * 1296                                       │

00:00:27 #1656 [Debug] > │             let v8 : string = $"accumulate_dice_rolls / power: {4} / acc:    │

00:00:27 #1657 [Debug] > │ {v1} / roll: {v3} / value: {v7}"                                             │

00:00:27 #1658 [Debug] > │             System.Console.WriteLine v8                                      │

00:00:27 #1659 [Debug] > │             let v9 : int32 = v1 + v7                                         │

00:00:27 #1660 [Debug] > │             method5(v4, v9)                                                  │

00:00:27 #1661 [Debug] > │         else                                                                 │

00:00:27 #1662 [Debug] > │             let v11 : string = $"accumulate_dice_rolls / power: {4} / acc:   │

00:00:27 #1663 [Debug] > │ {v1} / roll: {v3}"                                                           │

00:00:27 #1664 [Debug] > │             System.Console.WriteLine v11                                     │

00:00:27 #1665 [Debug] > │             method5(v4, v1)                                                  │

00:00:27 #1666 [Debug] > │     | UH1_1 -> (* Nil *)                                                     │

00:00:27 #1667 [Debug] > │         US2_0                                                                │

00:00:27 #1668 [Debug] > │ and method1 (v0 : Mut0, v1 : Mut1, v2 : Mut1, v3 : Mut1, v4 : UH1, v5 :      │

00:00:27 #1669 [Debug] > │ int32) : int32 =                                                             │

00:00:27 #1670 [Debug] > │     let v6 : bool = v5 < 5                                                   │

00:00:27 #1671 [Debug] > │     if v6 then                                                               │

00:00:27 #1672 [Debug] > │         let v7 : int32 = method2(v0, v1, v2, v3)                             │

00:00:27 #1673 [Debug] > │         let v8 : UH1 = UH1_0(v7, v4)                                         │

00:00:27 #1674 [Debug] > │         let v9 : int32 = v5 + 1                                              │

00:00:27 #1675 [Debug] > │         method1(v0, v1, v2, v3, v8, v9)                                      │

00:00:27 #1676 [Debug] > │     else                                                                     │

00:00:27 #1677 [Debug] > │         let v11 : int32 = 0                                                  │

00:00:27 #1678 [Debug] > │         let v12 : US2 = method4(v4, v11)                                     │

00:00:27 #1679 [Debug] > │         match v12 with                                                       │

00:00:27 #1680 [Debug] > │         | US2_1(v13, v14) -> (* Some *)                                      │

00:00:27 #1681 [Debug] > │             let v15 : bool = v13 <= 2000                                     │

00:00:27 #1682 [Debug] > │             if v15 then                                                      │

00:00:27 #1683 [Debug] > │                 v13                                                          │

00:00:27 #1684 [Debug] > │             else                                                             │

00:00:27 #1685 [Debug] > │                 let v16 : int32 = method2(v0, v1, v2, v3)                    │

00:00:27 #1686 [Debug] > │                 let v17 : UH1 = UH1_0(v16, v4)                               │

00:00:27 #1687 [Debug] > │                 let v18 : int32 = v5 + 1                                     │

00:00:27 #1688 [Debug] > │                 method1(v0, v1, v2, v3, v17, v18)                            │

00:00:27 #1689 [Debug] > │         | _ ->                                                               │

00:00:27 #1690 [Debug] > │             let v21 : int32 = method2(v0, v1, v2, v3)                        │

00:00:27 #1691 [Debug] > │             let v22 : UH1 = UH1_0(v21, v4)                                   │

00:00:27 #1692 [Debug] > │             let v23 : int32 = v5 + 1                                         │

00:00:27 #1693 [Debug] > │             method1(v0, v1, v2, v3, v22, v23)                                │

00:00:27 #1694 [Debug] > │ and method0 () : unit =                                                      │

00:00:27 #1695 [Debug] > │     let v0 : (unit -> UH0) = closure0()                                      │

00:00:27 #1696 [Debug] > │     let v1 : US0 = US0_1(v0)                                                 │

00:00:27 #1697 [Debug] > │     let v2 : Mut0 = {l0 = v1} : Mut0                                         │

00:00:27 #1698 [Debug] > │     let v3 : Mut1 = {l0 = 0} : Mut1                                          │

00:00:27 #1699 [Debug] > │     let v4 : Mut1 = {l0 = 1} : Mut1                                          │

00:00:27 #1700 [Debug] > │     let v5 : Mut1 = {l0 = -1} : Mut1                                         │

00:00:27 #1701 [Debug] > │     let v6 : string = $"calculate_dice_count / max: {2000} / n: {5} / p:     │

00:00:27 #1702 [Debug] > │ {7776}"                                                                      │

00:00:27 #1703 [Debug] > │     System.Console.WriteLine v6                                              │

00:00:27 #1704 [Debug] > │     let v7 : UH1 = UH1_1                                                     │

00:00:27 #1705 [Debug] > │     let v8 : int32 = 0                                                       │

00:00:27 #1706 [Debug] > │     let v9 : int32 = method1(v2, v3, v4, v5, v7, v8)                         │

00:00:27 #1707 [Debug] > │     let v10 : bool = v9 = 995                                                │

00:00:27 #1708 [Debug] > │     let v11 : string = $"_equal / actual: %A{v9} / expected: %A{995}"        │

00:00:27 #1709 [Debug] > │     let v12 : bool = v10 = false                                             │

00:00:27 #1710 [Debug] > │     if v12 then                                                              │

00:00:27 #1711 [Debug] > │         failwith<unit> v11                                                   │

00:00:27 #1712 [Debug] > │ method0()                                                                    │

00:00:27 #1713 [Debug] > │                                                                              │

00:00:27 #1714 [Debug] > │ calculate_dice_count / max: 2000 / n: 5 / p: 7776                            │

00:00:27 #1715 [Debug] > │ accumulate_dice_rolls / power: 4 / acc: 0 / roll: 1                          │

00:00:27 #1716 [Debug] > │ accumulate_dice_rolls / power: 3 / acc: 0 / roll: 5 / value: 864             │

00:00:27 #1717 [Debug] > │ accumulate_dice_rolls / power: 2 / acc: 864 / roll: 4 / value: 108           │

00:00:27 #1718 [Debug] > │ accumulate_dice_rolls / power: 1 / acc: 972 / roll: 4 / value: 18            │

00:00:27 #1719 [Debug] > │ accumulate_dice_rolls / power: 0 / acc: 990 / roll: 5 / value: 4             │

00:00:27 #1720 [Debug] > │ accumulate_dice_rolls / power: -1 / acc: 994                                 │

00:00:27 #1721 [Debug] > │                                                                              │

00:00:27 #1722 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:27 #1723 [Debug] >

00:00:27 #1724 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:27 #1725 [Debug] > // // test

00:00:27 #1726 [Debug] >

00:00:27 #1727 [Debug] > inl sequential_roll = create_sequential_roller [[ 5; 4; 4; 5; 2 ]]

00:00:27 #1728 [Debug] >

00:00:27 #1729 [Debug] > roll_progressively (Some console.write_line) sequential_roll false 2000

00:00:27 #1730 [Debug] > |> _equal 1678

00:00:27 #1731 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1415-4247-4723-43c194a736b1\main.spi

00:00:28 #1732 [Debug] >

00:00:28 #1733 [Debug] > ╭─[ 384.99ms - stdout ]────────────────────────────────────────────────────────╮

00:00:28 #1734 [Debug] > │ type UH0 =                                                                   │

00:00:28 #1735 [Debug] > │     | UH0_0 of int32 * (unit -> UH0)                                         │

00:00:28 #1736 [Debug] > │     | UH0_1                                                                  │

00:00:28 #1737 [Debug] > │ and [<Struct>] US0 =                                                         │

00:00:28 #1738 [Debug] > │     | US0_0 of f0_0 : UH0                                                    │

00:00:28 #1739 [Debug] > │     | US0_1 of f1_0 : (unit -> UH0)                                          │

00:00:28 #1740 [Debug] > │ and Mut0 = {mutable l0 : US0}                                                │

00:00:28 #1741 [Debug] > │ and Mut1 = {mutable l0 : int32}                                              │

00:00:28 #1742 [Debug] > │ and UH1 =                                                                    │

00:00:28 #1743 [Debug] > │     | UH1_0 of int32 * UH1                                                   │

00:00:28 #1744 [Debug] > │     | UH1_1                                                                  │

00:00:28 #1745 [Debug] > │ and [<Struct>] US1 =                                                         │

00:00:28 #1746 [Debug] > │     | US1_0                                                                  │

00:00:28 #1747 [Debug] > │     | US1_1 of f1_0 : int32                                                  │

00:00:28 #1748 [Debug] > │ and [<Struct>] US2 =                                                         │

00:00:28 #1749 [Debug] > │     | US2_0                                                                  │

00:00:28 #1750 [Debug] > │     | US2_1 of f1_0 : int32 * f1_1 : UH1                                     │

00:00:28 #1751 [Debug] > │ let rec closure10 () () : UH0 =                                              │

00:00:28 #1752 [Debug] > │     UH0_1                                                                    │

00:00:28 #1753 [Debug] > │ and closure9 () () : UH0 =                                                   │

00:00:28 #1754 [Debug] > │     let v0 : (unit -> UH0) = closure10()                                     │

00:00:28 #1755 [Debug] > │     UH0_0(5, v0)                                                             │

00:00:28 #1756 [Debug] > │ and closure8 () () : UH0 =                                                   │

00:00:28 #1757 [Debug] > │     let v0 : (unit -> UH0) = closure9()                                      │

00:00:28 #1758 [Debug] > │     UH0_0(4, v0)                                                             │

00:00:28 #1759 [Debug] > │ and closure7 () () : UH0 =                                                   │

00:00:28 #1760 [Debug] > │     let v0 : (unit -> UH0) = closure8()                                      │

00:00:28 #1761 [Debug] > │     UH0_0(4, v0)                                                             │

00:00:28 #1762 [Debug] > │ and closure6 () () : UH0 =                                                   │

00:00:28 #1763 [Debug] > │     let v0 : (unit -> UH0) = closure7()                                      │

00:00:28 #1764 [Debug] > │     UH0_0(5, v0)                                                             │

00:00:28 #1765 [Debug] > │ and closure5 () () : UH0 =                                                   │

00:00:28 #1766 [Debug] > │     let v0 : (unit -> UH0) = closure6()                                      │

00:00:28 #1767 [Debug] > │     UH0_0(2, v0)                                                             │

00:00:28 #1768 [Debug] > │ and closure4 () () : UH0 =                                                   │

00:00:28 #1769 [Debug] > │     let v0 : (unit -> UH0) = closure5()                                      │

00:00:28 #1770 [Debug] > │     UH0_0(2, v0)                                                             │

00:00:28 #1771 [Debug] > │ and closure3 () () : UH0 =                                                   │

00:00:28 #1772 [Debug] > │     let v0 : (unit -> UH0) = closure4()                                      │

00:00:28 #1773 [Debug] > │     UH0_0(5, v0)                                                             │

00:00:28 #1774 [Debug] > │ and closure2 () () : UH0 =                                                   │

00:00:28 #1775 [Debug] > │     let v0 : (unit -> UH0) = closure3()                                      │

00:00:28 #1776 [Debug] > │     UH0_0(4, v0)                                                             │

00:00:28 #1777 [Debug] > │ and closure1 () () : UH0 =                                                   │

00:00:28 #1778 [Debug] > │     let v0 : (unit -> UH0) = closure2()                                      │

00:00:28 #1779 [Debug] > │     UH0_0(4, v0)                                                             │

00:00:28 #1780 [Debug] > │ and closure0 () () : UH0 =                                                   │

00:00:28 #1781 [Debug] > │     let v0 : (unit -> UH0) = closure1()                                      │

00:00:28 #1782 [Debug] > │     UH0_0(5, v0)                                                             │

00:00:28 #1783 [Debug] > │ and closure11 (v0 : Mut0) () : UH0 =                                         │

00:00:28 #1784 [Debug] > │     let v1 : US0 = v0.l0                                                     │

00:00:28 #1785 [Debug] > │     match v1 with                                                            │

00:00:28 #1786 [Debug] > │     | US0_0(v2) -> (* Computed *)                                            │

00:00:28 #1787 [Debug] > │         v2                                                                   │

00:00:28 #1788 [Debug] > │     | US0_1(v3) -> (* NotComputed *)                                         │

00:00:28 #1789 [Debug] > │         let v4 : UH0 = v3 ()                                                 │

00:00:28 #1790 [Debug] > │         let v13 : UH0 =                                                      │

00:00:28 #1791 [Debug] > │             match v4 with                                                    │

00:00:28 #1792 [Debug] > │             | UH0_0(v6, v7) -> (* StreamCons *)                              │

00:00:28 #1793 [Debug] > │                 let v8 : US0 = US0_1(v7)                                     │

00:00:28 #1794 [Debug] > │                 let v9 : Mut0 = {l0 = v8} : Mut0                             │

00:00:28 #1795 [Debug] > │                 let v10 : (unit -> UH0) = closure11(v9)                      │

00:00:28 #1796 [Debug] > │                 UH0_0(v6, v10)                                               │

00:00:28 #1797 [Debug] > │             | UH0_1 -> (* StreamNil *)                                       │

00:00:28 #1798 [Debug] > │                 UH0_1                                                        │

00:00:28 #1799 [Debug] > │         let v14 : US0 = US0_0(v13)                                           │

00:00:28 #1800 [Debug] > │         v0.l0 <- v14                                                         │

00:00:28 #1801 [Debug] > │         v13                                                                  │

00:00:28 #1802 [Debug] > │ and method3 (v0 : int32, v1 : UH0) : US1 =                                   │

00:00:28 #1803 [Debug] > │     match v1 with                                                            │

00:00:28 #1804 [Debug] > │     | UH0_0(v2, v3) -> (* StreamCons *)                                      │

00:00:28 #1805 [Debug] > │         let v4 : bool = v0 <= 0                                              │

00:00:28 #1806 [Debug] > │         if v4 then                                                           │

00:00:28 #1807 [Debug] > │             US1_1(v2)                                                        │

00:00:28 #1808 [Debug] > │         else                                                                 │

00:00:28 #1809 [Debug] > │             let v6 : int32 = v0 - 1                                          │

00:00:28 #1810 [Debug] > │             let v7 : UH0 = v3 ()                                             │

00:00:28 #1811 [Debug] > │             method3(v6, v7)                                                  │

00:00:28 #1812 [Debug] > │     | UH0_1 -> (* StreamNil *)                                               │

00:00:28 #1813 [Debug] > │         US1_0                                                                │

00:00:28 #1814 [Debug] > │ and method2 (v0 : Mut0, v1 : Mut1, v2 : Mut1, v3 : Mut1) : int32 =           │

00:00:28 #1815 [Debug] > │     let v4 : US0 = v0.l0                                                     │

00:00:28 #1816 [Debug] > │     let v19 : UH0 =                                                          │

00:00:28 #1817 [Debug] > │         match v4 with                                                        │

00:00:28 #1818 [Debug] > │         | US0_0(v5) -> (* Computed *)                                        │

00:00:28 #1819 [Debug] > │             v5                                                               │

00:00:28 #1820 [Debug] > │         | US0_1(v6) -> (* NotComputed *)                                     │

00:00:28 #1821 [Debug] > │             let v7 : UH0 = v6 ()                                             │

00:00:28 #1822 [Debug] > │             let v16 : UH0 =                                                  │

00:00:28 #1823 [Debug] > │                 match v7 with                                                │

00:00:28 #1824 [Debug] > │                 | UH0_0(v9, v10) -> (* StreamCons *)                         │

00:00:28 #1825 [Debug] > │                     let v11 : US0 = US0_1(v10)                               │

00:00:28 #1826 [Debug] > │                     let v12 : Mut0 = {l0 = v11} : Mut0                       │

00:00:28 #1827 [Debug] > │                     let v13 : (unit -> UH0) = closure11(v12)                 │

00:00:28 #1828 [Debug] > │                     UH0_0(v9, v13)                                           │

00:00:28 #1829 [Debug] > │                 | UH0_1 -> (* StreamNil *)                                   │

00:00:28 #1830 [Debug] > │                     UH0_1                                                    │

00:00:28 #1831 [Debug] > │             let v17 : US0 = US0_0(v16)                                       │

00:00:28 #1832 [Debug] > │             v0.l0 <- v17                                                     │

00:00:28 #1833 [Debug] > │             v16                                                              │

00:00:28 #1834 [Debug] > │     let v20 : int32 = v1.l0                                                  │

00:00:28 #1835 [Debug] > │     let v21 : US1 = method3(v20, v19)                                        │

00:00:28 #1836 [Debug] > │     match v21 with                                                           │

00:00:28 #1837 [Debug] > │     | US1_0 -> (* None *)                                                    │

00:00:28 #1838 [Debug] > │         let v25 : int32 = v3.l0                                              │

00:00:28 #1839 [Debug] > │         let v26 : bool = v25 = -1                                            │

00:00:28 #1840 [Debug] > │         if v26 then                                                          │

00:00:28 #1841 [Debug] > │             let v27 : int32 = v1.l0                                          │

00:00:28 #1842 [Debug] > │             v3.l0 <- v27                                                     │

00:00:28 #1843 [Debug] > │             ()                                                               │

00:00:28 #1844 [Debug] > │         let v28 : int32 = v2.l0                                              │

00:00:28 #1845 [Debug] > │         let v29 : int32 = v3.l0                                              │

00:00:28 #1846 [Debug] > │         let v30 : bool = v28 >= v29                                          │

00:00:28 #1847 [Debug] > │         let v33 : int32 =                                                    │

00:00:28 #1848 [Debug] > │             if v30 then                                                      │

00:00:28 #1849 [Debug] > │                 1                                                            │

00:00:28 #1850 [Debug] > │             else                                                             │

00:00:28 #1851 [Debug] > │                 let v31 : int32 = v2.l0                                      │

00:00:28 #1852 [Debug] > │                 let v32 : int32 = v31 + 1                                    │

00:00:28 #1853 [Debug] > │                 v32                                                          │

00:00:28 #1854 [Debug] > │         v2.l0 <- v33                                                         │

00:00:28 #1855 [Debug] > │         let v34 : int32 = v2.l0                                              │

00:00:28 #1856 [Debug] > │         let v35 : int32 = v34 - 1                                            │

00:00:28 #1857 [Debug] > │         v1.l0 <- v35                                                         │

00:00:28 #1858 [Debug] > │         method2(v0, v1, v2, v3)                                              │

00:00:28 #1859 [Debug] > │     | US1_1(v22) -> (* Some *)                                               │

00:00:28 #1860 [Debug] > │         let v23 : int32 = v1.l0                                              │

00:00:28 #1861 [Debug] > │         let v24 : int32 = v23 + 1                                            │

00:00:28 #1862 [Debug] > │         v1.l0 <- v24                                                         │

00:00:28 #1863 [Debug] > │         v22                                                                  │

00:00:28 #1864 [Debug] > │ and method9 (v0 : UH1, v1 : int32) : US2 =                                   │

00:00:28 #1865 [Debug] > │     let v2 : string = $"accumulate_dice_rolls / power: {-1} / acc: {v1}"     │

00:00:28 #1866 [Debug] > │     System.Console.WriteLine v2                                              │

00:00:28 #1867 [Debug] > │     let v3 : int32 = v1 + 1                                                  │

00:00:28 #1868 [Debug] > │     US2_1(v3, v0)                                                            │

00:00:28 #1869 [Debug] > │ and method8 (v0 : UH1, v1 : int32) : US2 =                                   │

00:00:28 #1870 [Debug] > │     match v0 with                                                            │

00:00:28 #1871 [Debug] > │     | UH1_0(v3, v4) -> (* Cons *)                                            │

00:00:28 #1872 [Debug] > │         let v5 : bool = v3 > 1                                               │

00:00:28 #1873 [Debug] > │         if v5 then                                                           │

00:00:28 #1874 [Debug] > │             let v6 : int32 = v3 - 1                                          │

00:00:28 #1875 [Debug] > │             let v7 : string = $"accumulate_dice_rolls / power: {0} / acc:    │

00:00:28 #1876 [Debug] > │ {v1} / roll: {v3} / value: {v6}"                                             │

00:00:28 #1877 [Debug] > │             System.Console.WriteLine v7                                      │

00:00:28 #1878 [Debug] > │             let v8 : int32 = v1 + v6                                         │

00:00:28 #1879 [Debug] > │             method9(v4, v8)                                                  │

00:00:28 #1880 [Debug] > │         else                                                                 │

00:00:28 #1881 [Debug] > │             let v10 : string = $"accumulate_dice_rolls / power: {0} / acc:   │

00:00:28 #1882 [Debug] > │ {v1} / roll: {v3}"                                                           │

00:00:28 #1883 [Debug] > │             System.Console.WriteLine v10                                     │

00:00:28 #1884 [Debug] > │             method9(v4, v1)                                                  │

00:00:28 #1885 [Debug] > │     | UH1_1 -> (* Nil *)                                                     │

00:00:28 #1886 [Debug] > │         US2_0                                                                │

00:00:28 #1887 [Debug] > │ and method7 (v0 : UH1, v1 : int32) : US2 =                                   │

00:00:28 #1888 [Debug] > │     match v0 with                                                            │

00:00:28 #1889 [Debug] > │     | UH1_0(v3, v4) -> (* Cons *)                                            │

00:00:28 #1890 [Debug] > │         let v5 : bool = v3 > 1                                               │

00:00:28 #1891 [Debug] > │         if v5 then                                                           │

00:00:28 #1892 [Debug] > │             let v6 : int32 = v3 - 1                                          │

00:00:28 #1893 [Debug] > │             let v7 : int32 = v6 * 6                                          │

00:00:28 #1894 [Debug] > │             let v8 : string = $"accumulate_dice_rolls / power: {1} / acc:    │

00:00:28 #1895 [Debug] > │ {v1} / roll: {v3} / value: {v7}"                                             │

00:00:28 #1896 [Debug] > │             System.Console.WriteLine v8                                      │

00:00:28 #1897 [Debug] > │             let v9 : int32 = v1 + v7                                         │

00:00:28 #1898 [Debug] > │             method8(v4, v9)                                                  │

00:00:28 #1899 [Debug] > │         else                                                                 │

00:00:28 #1900 [Debug] > │             let v11 : string = $"accumulate_dice_rolls / power: {1} / acc:   │

00:00:28 #1901 [Debug] > │ {v1} / roll: {v3}"                                                           │

00:00:28 #1902 [Debug] > │             System.Console.WriteLine v11                                     │

00:00:28 #1903 [Debug] > │             method8(v4, v1)                                                  │

00:00:28 #1904 [Debug] > │     | UH1_1 -> (* Nil *)                                                     │

00:00:28 #1905 [Debug] > │         US2_0                                                                │

00:00:28 #1906 [Debug] > │ and method6 (v0 : UH1, v1 : int32) : US2 =                                   │

00:00:28 #1907 [Debug] > │     match v0 with                                                            │

00:00:28 #1908 [Debug] > │     | UH1_0(v3, v4) -> (* Cons *)                                            │

00:00:28 #1909 [Debug] > │         let v5 : bool = v3 > 1                                               │

00:00:28 #1910 [Debug] > │         if v5 then                                                           │

00:00:28 #1911 [Debug] > │             let v6 : int32 = v3 - 1                                          │

00:00:28 #1912 [Debug] > │             let v7 : int32 = v6 * 36                                         │

00:00:28 #1913 [Debug] > │             let v8 : string = $"accumulate_dice_rolls / power: {2} / acc:    │

00:00:28 #1914 [Debug] > │ {v1} / roll: {v3} / value: {v7}"                                             │

00:00:28 #1915 [Debug] > │             System.Console.WriteLine v8                                      │

00:00:28 #1916 [Debug] > │             let v9 : int32 = v1 + v7                                         │

00:00:28 #1917 [Debug] > │             method7(v4, v9)                                                  │

00:00:28 #1918 [Debug] > │         else                                                                 │

00:00:28 #1919 [Debug] > │             let v11 : string = $"accumulate_dice_rolls / power: {2} / acc:   │

00:00:28 #1920 [Debug] > │ {v1} / roll: {v3}"                                                           │

00:00:28 #1921 [Debug] > │             System.Console.WriteLine v11                                     │

00:00:28 #1922 [Debug] > │             method7(v4, v1)                                                  │

00:00:28 #1923 [Debug] > │     | UH1_1 -> (* Nil *)                                                     │

00:00:28 #1924 [Debug] > │         US2_0                                                                │

00:00:28 #1925 [Debug] > │ and method5 (v0 : UH1, v1 : int32) : US2 =                                   │

00:00:28 #1926 [Debug] > │     match v0 with                                                            │

00:00:28 #1927 [Debug] > │     | UH1_0(v3, v4) -> (* Cons *)                                            │

00:00:28 #1928 [Debug] > │         let v5 : bool = v3 > 1                                               │

00:00:28 #1929 [Debug] > │         if v5 then                                                           │

00:00:28 #1930 [Debug] > │             let v6 : int32 = v3 - 1                                          │

00:00:28 #1931 [Debug] > │             let v7 : int32 = v6 * 216                                        │

00:00:28 #1932 [Debug] > │             let v8 : string = $"accumulate_dice_rolls / power: {3} / acc:    │

00:00:28 #1933 [Debug] > │ {v1} / roll: {v3} / value: {v7}"                                             │

00:00:28 #1934 [Debug] > │             System.Console.WriteLine v8                                      │

00:00:28 #1935 [Debug] > │             let v9 : int32 = v1 + v7                                         │

00:00:28 #1936 [Debug] > │             method6(v4, v9)                                                  │

00:00:28 #1937 [Debug] > │         else                                                                 │

00:00:28 #1938 [Debug] > │             let v11 : string = $"accumulate_dice_rolls / power: {3} / acc:   │

00:00:28 #1939 [Debug] > │ {v1} / roll: {v3}"                                                           │

00:00:28 #1940 [Debug] > │             System.Console.WriteLine v11                                     │

00:00:28 #1941 [Debug] > │             method6(v4, v1)                                                  │

00:00:28 #1942 [Debug] > │     | UH1_1 -> (* Nil *)                                                     │

00:00:28 #1943 [Debug] > │         US2_0                                                                │

00:00:28 #1944 [Debug] > │ and method4 (v0 : UH1, v1 : int32) : US2 =                                   │

00:00:28 #1945 [Debug] > │     match v0 with                                                            │

00:00:28 #1946 [Debug] > │     | UH1_0(v3, v4) -> (* Cons *)                                            │

00:00:28 #1947 [Debug] > │         let v5 : bool = v3 > 1                                               │

00:00:28 #1948 [Debug] > │         if v5 then                                                           │

00:00:28 #1949 [Debug] > │             let v6 : int32 = v3 - 1                                          │

00:00:28 #1950 [Debug] > │             let v7 : int32 = v6 * 1296                                       │

00:00:28 #1951 [Debug] > │             let v8 : string = $"accumulate_dice_rolls / power: {4} / acc:    │

00:00:28 #1952 [Debug] > │ {v1} / roll: {v3} / value: {v7}"                                             │

00:00:28 #1953 [Debug] > │             System.Console.WriteLine v8                                      │

00:00:28 #1954 [Debug] > │             let v9 : int32 = v1 + v7                                         │

00:00:28 #1955 [Debug] > │             method5(v4, v9)                                                  │

00:00:28 #1956 [Debug] > │         else                                                                 │

00:00:28 #1957 [Debug] > │             let v11 : string = $"accumulate_dice_rolls / power: {4} / acc:   │

00:00:28 #1958 [Debug] > │ {v1} / roll: {v3}"                                                           │

00:00:28 #1959 [Debug] > │             System.Console.WriteLine v11                                     │

00:00:28 #1960 [Debug] > │             method5(v4, v1)                                                  │

00:00:28 #1961 [Debug] > │     | UH1_1 -> (* Nil *)                                                     │

00:00:28 #1962 [Debug] > │         US2_0                                                                │

00:00:28 #1963 [Debug] > │ and method1 (v0 : Mut0, v1 : Mut1, v2 : Mut1, v3 : Mut1, v4 : UH1, v5 :      │

00:00:28 #1964 [Debug] > │ int32) : int32 =                                                             │

00:00:28 #1965 [Debug] > │     let v6 : bool = v5 < 5                                                   │

00:00:28 #1966 [Debug] > │     if v6 then                                                               │

00:00:28 #1967 [Debug] > │         let v7 : int32 = method2(v0, v1, v2, v3)                             │

00:00:28 #1968 [Debug] > │         let v8 : UH1 = UH1_0(v7, v4)                                         │

00:00:28 #1969 [Debug] > │         let v9 : int32 = v5 + 1                                              │

00:00:28 #1970 [Debug] > │         method1(v0, v1, v2, v3, v8, v9)                                      │

00:00:28 #1971 [Debug] > │     else                                                                     │

00:00:28 #1972 [Debug] > │         let v11 : int32 = 0                                                  │

00:00:28 #1973 [Debug] > │         let v12 : US2 = method4(v4, v11)                                     │

00:00:28 #1974 [Debug] > │         match v12 with                                                       │

00:00:28 #1975 [Debug] > │         | US2_1(v13, v14) -> (* Some *)                                      │

00:00:28 #1976 [Debug] > │             let v15 : bool = v13 <= 2000                                     │

00:00:28 #1977 [Debug] > │             if v15 then                                                      │

00:00:28 #1978 [Debug] > │                 v13                                                          │

00:00:28 #1979 [Debug] > │             else                                                             │

00:00:28 #1980 [Debug] > │                 let v16 : int32 = method2(v0, v1, v2, v3)                    │

00:00:28 #1981 [Debug] > │                 let v17 : UH1 = UH1_0(v16, v4)                               │

00:00:28 #1982 [Debug] > │                 let v18 : int32 = v5 + 1                                     │

00:00:28 #1983 [Debug] > │                 method1(v0, v1, v2, v3, v17, v18)                            │

00:00:28 #1984 [Debug] > │         | _ ->                                                               │

00:00:28 #1985 [Debug] > │             let v21 : int32 = method2(v0, v1, v2, v3)                        │

00:00:28 #1986 [Debug] > │             let v22 : UH1 = UH1_0(v21, v4)                                   │

00:00:28 #1987 [Debug] > │             let v23 : int32 = v5 + 1                                         │

00:00:28 #1988 [Debug] > │             method1(v0, v1, v2, v3, v22, v23)                                │

00:00:28 #1989 [Debug] > │ and method0 () : unit =                                                      │

00:00:28 #1990 [Debug] > │     let v0 : (unit -> UH0) = closure0()                                      │

00:00:28 #1991 [Debug] > │     let v1 : US0 = US0_1(v0)                                                 │

00:00:28 #1992 [Debug] > │     let v2 : Mut0 = {l0 = v1} : Mut0                                         │

00:00:28 #1993 [Debug] > │     let v3 : Mut1 = {l0 = 0} : Mut1                                          │

00:00:28 #1994 [Debug] > │     let v4 : Mut1 = {l0 = 1} : Mut1                                          │

00:00:28 #1995 [Debug] > │     let v5 : Mut1 = {l0 = -1} : Mut1                                         │

00:00:28 #1996 [Debug] > │     let v6 : string = $"calculate_dice_count / max: {2000} / n: {5} / p:     │

00:00:28 #1997 [Debug] > │ {7776}"                                                                      │

00:00:28 #1998 [Debug] > │     System.Console.WriteLine v6                                              │

00:00:28 #1999 [Debug] > │     let v7 : UH1 = UH1_1                                                     │

00:00:28 #2000 [Debug] > │     let v8 : int32 = 0                                                       │

00:00:28 #2001 [Debug] > │     let v9 : int32 = method1(v2, v3, v4, v5, v7, v8)                         │

00:00:28 #2002 [Debug] > │     let v10 : bool = v9 = 1678                                               │

00:00:28 #2003 [Debug] > │     let v11 : string = $"_equal / actual: %A{v9} / expected: %A{1678}"       │

00:00:28 #2004 [Debug] > │     let v12 : bool = v10 = false                                             │

00:00:28 #2005 [Debug] > │     if v12 then                                                              │

00:00:28 #2006 [Debug] > │         failwith<unit> v11                                                   │

00:00:28 #2007 [Debug] > │ method0()                                                                    │

00:00:28 #2008 [Debug] > │                                                                              │

00:00:28 #2009 [Debug] > │ calculate_dice_count / max: 2000 / n: 5 / p: 7776                            │

00:00:28 #2010 [Debug] > │ accumulate_dice_rolls / power: 4 / acc: 0 / roll: 2 / value: 1296            │

00:00:28 #2011 [Debug] > │ accumulate_dice_rolls / power: 3 / acc: 1296 / roll: 5 / value: 864          │

00:00:28 #2012 [Debug] > │ accumulate_dice_rolls / power: 2 / acc: 2160 / roll: 4 / value: 108          │

00:00:28 #2013 [Debug] > │ accumulate_dice_rolls / power: 1 / acc: 2268 / roll: 4 / value: 18           │

00:00:28 #2014 [Debug] > │ accumulate_dice_rolls / power: 0 / acc: 2286 / roll: 5 / value: 4            │

00:00:28 #2015 [Debug] > │ accumulate_dice_rolls / power: -1 / acc: 2290                                │

00:00:28 #2016 [Debug] > │ accumulate_dice_rolls / power: 4 / acc: 0 / roll: 2 / value: 1296            │

00:00:28 #2017 [Debug] > │ accumulate_dice_rolls / power: 3 / acc: 1296 / roll: 2 / value: 216          │

00:00:28 #2018 [Debug] > │ accumulate_dice_rolls / power: 2 / acc: 1512 / roll: 5 / value: 144          │

00:00:28 #2019 [Debug] > │ accumulate_dice_rolls / power: 1 / acc: 1656 / roll: 4 / value: 18           │

00:00:28 #2020 [Debug] > │ accumulate_dice_rolls / power: 0 / acc: 1674 / roll: 4 / value: 3            │

00:00:28 #2021 [Debug] > │ accumulate_dice_rolls / power: -1 / acc: 1677                                │

00:00:28 #2022 [Debug] > │                                                                              │

00:00:28 #2023 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:28 #2024 [Debug] >

00:00:28 #2025 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:28 #2026 [Debug] > // // test

00:00:28 #2027 [Debug] >

00:00:28 #2028 [Debug] > listm'.init_series 1i32 40 1

00:00:28 #2029 [Debug] > |> listm.map (fun _ => roll_progressively None roll_dice false 10)

00:00:28 #2030 [Debug] > |> listm'.group_by id

00:00:28 #2031 [Debug] > |> listm.map (fun (k, v) => k, (listm.length v : i32))

00:00:28 #2032 [Debug] > |> listm.toArray

00:00:28 #2033 [Debug] > |> fun (ar : a i32 _) =>

00:00:28 #2034 [Debug] >     $"!ar |> Array.sortBy (fun (struct (a, b)) -> a)" : a i32 $"struct (int32 *

00:00:28 #2035 [Debug] > int32)"

00:00:28 #2036 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1415-4299-9948-9128b77a7108\main.spi

00:00:28 #2037 [Debug] >

00:00:28 #2038 [Debug] > ╭─[ 736.57ms - return value ]──────────────────────────────────────────────────╮

00:00:28 #2039 [Debug] > │ <table><thead><tr><th><i>index</i></th><th>value</th></tr></thead><tbody><tr │

00:00:28 #2040 [Debug] > │ ><td>0</td><td><details class="dni-treeview"><summary><span                  │

00:00:28 #2041 [Debug] > │ class="dni-code-hint"><code>(1,                                              │

00:00:28 #2042 [Debug] > │ 1)</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

00:00:28 #2043 [Debug] > │ >Item1</td><td><div                                                          │

00:00:28 #2044 [Debug] > │ class="dni-plaintext"><pre>1</pre></div></td></tr><tr><td>Item2</td><td><div │

00:00:28 #2045 [Debug] > │ class="dni-plaintext"><pre>1</pre></div></td></tr></tbody></table></div></de │

00:00:28 #2046 [Debug] > │ tails></td></tr><tr><td>1</td><td><details                                   │

00:00:28 #2047 [Debug] > │ class="dni-treeview"><summary><span class="dni-code-hint"><code>(2,          │

00:00:28 #2048 [Debug] > │ 3)</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

00:00:28 #2049 [Debug] > │ >Item1</td><td><div                                                          │

00:00:28 #2050 [Debug] > │ class="dni-plaintext"><pre>2</pre></div></td></tr><tr><td>Item2</td><td><div │

00:00:28 #2051 [Debug] > │ class="dni-plaintext"><pre>3</pre></div></td></tr...                         │

00:00:28 #2052 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:28 #2053 [Debug] >

00:00:28 #2054 [Debug] > ╭─[ 757.14ms - stdout ]────────────────────────────────────────────────────────╮

00:00:28 #2055 [Debug] > │ type UH0 =                                                                   │

00:00:28 #2056 [Debug] > │     | UH0_0 of int32 * UH0                                                   │

00:00:28 #2057 [Debug] > │     | UH0_1                                                                  │

00:00:28 #2058 [Debug] > │ and [<Struct>] US0 =                                                         │

00:00:28 #2059 [Debug] > │     | US0_0                                                                  │

00:00:28 #2060 [Debug] > │     | US0_1 of f1_0 : int32 * f1_1 : UH0                                     │

00:00:28 #2061 [Debug] > │ and UH1 =                                                                    │

00:00:28 #2062 [Debug] > │     | UH1_0 of int32 * UH0 * UH1                                             │

00:00:28 #2063 [Debug] > │     | UH1_1                                                                  │

00:00:28 #2064 [Debug] > │ and UH2 =                                                                    │

00:00:28 #2065 [Debug] > │     | UH2_0 of int32 * int32 * UH2                                           │

00:00:28 #2066 [Debug] > │     | UH2_1                                                                  │

00:00:28 #2067 [Debug] > │ let rec method4 (v0 : UH0, v1 : int32) : US0 =                               │

00:00:28 #2068 [Debug] > │     let v2 : string = $"accumulate_dice_rolls / power: {-1} / acc: {v1}"     │

00:00:28 #2069 [Debug] > │     let v3 : int32 = v1 + 1                                                  │

00:00:28 #2070 [Debug] > │     US0_1(v3, v0)                                                            │

00:00:28 #2071 [Debug] > │ and method3 (v0 : UH0, v1 : int32) : US0 =                                   │

00:00:28 #2072 [Debug] > │     match v0 with                                                            │

00:00:28 #2073 [Debug] > │     | UH0_0(v3, v4) -> (* Cons *)                                            │

00:00:28 #2074 [Debug] > │         let v5 : bool = v3 > 1                                               │

00:00:28 #2075 [Debug] > │         if v5 then                                                           │

00:00:28 #2076 [Debug] > │             let v6 : int32 = v3 - 1                                          │

00:00:28 #2077 [Debug] > │             let v7 : string = $"accumulate_dice_rolls / power: {0} / acc:    │

00:00:28 #2078 [Debug] > │ {v1} / roll: {v3} / value: {v6}"                                             │

00:00:28 #2079 [Debug] > │             let v8 : int32 = v1 + v6                                         │

00:00:28 #2080 [Debug] > │             method4(v4, v8)                                                  │

00:00:28 #2081 [Debug] > │         else                                                                 │

00:00:28 #2082 [Debug] > │             let v10 : string = $"accumulate_dice_rolls / power: {0} / acc:   │

00:00:28 #2083 [Debug] > │ {v1} / roll: {v3}"                                                           │

00:00:28 #2084 [Debug] > │             method4(v4, v1)                                                  │

00:00:28 #2085 [Debug] > │     | UH0_1 -> (* Nil *)                                                     │

00:00:28 #2086 [Debug] > │         US0_0                                                                │

00:00:28 #2087 [Debug] > │ and method2 (v0 : UH0, v1 : int32) : US0 =                                   │

00:00:28 #2088 [Debug] > │     match v0 with                                                            │

00:00:28 #2089 [Debug] > │     | UH0_0(v3, v4) -> (* Cons *)                                            │

00:00:28 #2090 [Debug] > │         let v5 : bool = v3 > 1                                               │

00:00:28 #2091 [Debug] > │         if v5 then                                                           │

00:00:28 #2092 [Debug] > │             let v6 : int32 = v3 - 1                                          │

00:00:28 #2093 [Debug] > │             let v7 : int32 = v6 * 6                                          │

00:00:28 #2094 [Debug] > │             let v8 : string = $"accumulate_dice_rolls / power: {1} / acc:    │

00:00:28 #2095 [Debug] > │ {v1} / roll: {v3} / value: {v7}"                                             │

00:00:28 #2096 [Debug] > │             let v9 : int32 = v1 + v7                                         │

00:00:28 #2097 [Debug] > │             method3(v4, v9)                                                  │

00:00:28 #2098 [Debug] > │         else                                                                 │

00:00:28 #2099 [Debug] > │             let v11 : string = $"accumulate_dice_rolls / power: {1} / acc:   │

00:00:28 #2100 [Debug] > │ {v1} / roll: {v3}"                                                           │

00:00:28 #2101 [Debug] > │             method3(v4, v1)                                                  │

00:00:28 #2102 [Debug] > │     | UH0_1 -> (* Nil *)                                                     │

00:00:28 #2103 [Debug] > │         US0_0                                                                │

00:00:28 #2104 [Debug] > │ and method1 (v0 : UH0, v1 : int32) : int32 =                                 │

00:00:28 #2105 [Debug] > │     let v2 : bool = v1 < 2                                                   │

00:00:28 #2106 [Debug] > │     if v2 then                                                               │

00:00:28 #2107 [Debug] > │         let v3 : int32 = System.Random().Next (1, 7)                         │

00:00:28 #2108 [Debug] > │         let v4 : UH0 = UH0_0(v3, v0)                                         │

00:00:28 #2109 [Debug] > │         let v5 : int32 = v1 + 1                                              │

00:00:28 #2110 [Debug] > │         method1(v4, v5)                                                      │

00:00:28 #2111 [Debug] > │     else                                                                     │

00:00:28 #2112 [Debug] > │         let v7 : int32 = 0                                                   │

00:00:28 #2113 [Debug] > │         let v8 : US0 = method2(v0, v7)                                       │

00:00:28 #2114 [Debug] > │         match v8 with                                                        │

00:00:28 #2115 [Debug] > │         | US0_1(v9, v10) -> (* Some *)                                       │

00:00:28 #2116 [Debug] > │             let v11 : bool = v9 <= 10                                        │

00:00:28 #2117 [Debug] > │             if v11 then                                                      │

00:00:28 #2118 [Debug] > │                 v9                                                           │

00:00:28 #2119 [Debug] > │             else                                                             │

00:00:28 #2120 [Debug] > │                 let v12 : int32 = System.Random().Next (1, 7)                │

00:00:28 #2121 [Debug] > │                 let v13 : UH0 = UH0_0(v12, v0)                               │

00:00:28 #2122 [Debug] > │                 let v14 : int32 = v1 + 1                                     │

00:00:28 #2123 [Debug] > │                 method1(v13, v14)                                            │

00:00:28 #2124 [Debug] > │         | _ ->                                                               │

00:00:28 #2125 [Debug] > │             let v17 : int32 = System.Random().Next (1, 7)                    │

00:00:28 #2126 [Debug] > │             let v18 : UH0 = UH0_0(v17, v0)                                   │

00:00:28 #2127 [Debug] > │             let v19 : int32 = v1 + 1                                         │

00:00:28 #2128 [Debug] > │             method1(v18, v19)                                                │

00:00:28 #2129 [Debug] > │ and method5 (v0 : int32, v1 : UH1, v2 : bool, v3 : UH1) : struct (bool *     │

00:00:28 #2130 [Debug] > │ UH1) =                                                                       │

00:00:28 #2131 [Debug] > │     match v1 with                                                            │

00:00:28 #2132 [Debug] > │     | UH1_0(v4, v5, v6) -> (* Cons *)                                        │

00:00:28 #2133 [Debug] > │         let v7 : bool = v4 = v0                                              │

00:00:28 #2134 [Debug] > │         let struct (v11 : bool, v12 : UH1) =                                 │

00:00:28 #2135 [Debug] > │             if v7 then                                                       │

00:00:28 #2136 [Debug] > │                 let v8 : UH0 = UH0_0(v0, v5)                                 │

00:00:28 #2137 [Debug] > │                 let v9 : UH1 = UH1_0(v4, v8, v3)                             │

00:00:28 #2138 [Debug] > │                 struct (true, v9)                                            │

00:00:28 #2139 [Debug] > │             else                                                             │

00:00:28 #2140 [Debug] > │                 let v10 : UH1 = UH1_0(v4, v5, v3)                            │

00:00:28 #2141 [Debug] > │                 struct (v2, v10)                                             │

00:00:28 #2142 [Debug] > │         method5(v0, v6, v11, v12)                                            │

00:00:28 #2143 [Debug] > │     | UH1_1 -> (* Nil *)                                                     │

00:00:28 #2144 [Debug] > │         struct (v2, v3)                                                      │

00:00:28 #2145 [Debug] > │ and method7 (v0 : UH0, v1 : int32) : int32 =                                 │

00:00:28 #2146 [Debug] > │     match v0 with                                                            │

00:00:28 #2147 [Debug] > │     | UH0_0(v2, v3) -> (* Cons *)                                            │

00:00:28 #2148 [Debug] > │         let v4 : int32 = v1 + 1                                              │

00:00:28 #2149 [Debug] > │         method7(v3, v4)                                                      │

00:00:28 #2150 [Debug] > │     | UH0_1 -> (* Nil *)                                                     │

00:00:28 #2151 [Debug] > │         v1                                                                   │

00:00:28 #2152 [Debug] > │ and method6 (v0 : UH1, v1 : UH2) : UH2 =                                     │

00:00:28 #2153 [Debug] > │     match v0 with                                                            │

00:00:28 #2154 [Debug] > │     | UH1_0(v2, v3, v4) -> (* Cons *)                                        │

00:00:28 #2155 [Debug] > │         let v5 : UH2 = method6(v4, v1)                                       │

00:00:28 #2156 [Debug] > │         let v6 : int32 = 0                                                   │

00:00:28 #2157 [Debug] > │         let v7 : int32 = method7(v3, v6)                                     │

00:00:28 #2158 [Debug] > │         UH2_0(v2, v7, v5)                                                    │

00:00:28 #2159 [Debug] > │     | UH1_1 -> (* Nil *)                                                     │

00:00:28 #2160 [Debug] > │         v1                                                                   │

00:00:28 #2161 [Debug] > │ and method9 (v0 : UH2, v1 : int32) : int32 =                                 │

00:00:28 #2162 [Debug] > │     match v0 with                                                            │

00:00:28 #2163 [Debug] > │     | UH2_0(v2, v3, v4) -> (* Cons *)                                        │

00:00:28 #2164 [Debug] > │         let v5 : int32 = v1 + 1                                              │

00:00:28 #2165 [Debug] > │         method9(v4, v5)                                                      │

00:00:28 #2166 [Debug] > │     | UH2_1 -> (* Nil *)                                                     │

00:00:28 #2167 [Debug] > │         v1                                                                   │

00:00:28 #2168 [Debug] > │ and method10 (v0 : (struct (int32 * int32) []), v1 : UH2, v2 : int32) :      │

00:00:28 #2169 [Debug] > │ int32 =                                                                      │

00:00:28 #2170 [Debug] > │     match v1 with                                                            │

00:00:28 #2171 [Debug] > │     | UH2_0(v3, v4, v5) -> (* Cons *)                                        │

00:00:28 #2172 [Debug] > │         v0.[int v2] <- struct (v3, v4)                                       │

00:00:29 #2173 [Debug] > │         let v6 : int32 = v2 + 1                                              │

00:00:29 #2174 [Debug] > │         method10(v0, v5, v6)                                                 │

00:00:29 #2175 [Debug] > │     | UH2_1 -> (* Nil *)                                                     │

00:00:29 #2176 [Debug] > │         v2                                                                   │

00:00:29 #2177 [Debug] > │ and method8 (v0 : UH2) : (struct (int32 * int32) []) =                       │

00:00:29 #2178 [Debug] > │     let v1 : int32 = 0                                                       │

00:00:29 #2179 [Debug] > │     let v2 : int32 = method9(v0, v1)                                         │

00:00:29 #2180 [Debug] > │     let v3 : (struct (int32 * int32) []) = Array.zeroCreate<struct (int32 *  │

00:00:29 #2181 [Debug] > │ int32)> (v2)                                                                 │

00:00:29 #2182 [Debug] > │     let v4 : int32 = 0                                                       │

00:00:29 #2183 [Debug] > │     let v5 : int32 = method10(v3, v0, v4)                                    │

00:00:29 #2184 [Debug] > │     v3                                                                       │

00:00:29 #2185 [Debug] > │ and method0 () : (struct (int32 * int32) []) =                               │

00:00:29 #2186 [Debug] > │     let v0 : string = $"calculate_dice_count / max: {10} / n: {2} / p: {36}" │

00:00:29 #2187 [Debug] > │     let v1 : UH0 = UH0_1                                                     │

00:00:29 #2188 [Debug] > │     let v2 : int32 = 0                                                       │

00:00:29 #2189 [Debug] > │     let v3 : int32 = method1(v1, v2)                                         │

00:00:29 #2190 [Debug] > │     let v4 : string = $"calculate_dice_count / max: {10} / n: {2} / p: {36}" │

00:00:29 #2191 [Debug] > │     let v5 : UH0 = UH0_1                                                     │

00:00:29 #2192 [Debug] > │     let v6 : int32 = 0                                                       │

00:00:29 #2193 [Debug] > │     let v7 : int32 = method1(v5, v6)                                         │

00:00:29 #2194 [Debug] > │     let v8 : string = $"calculate_dice_count / max: {10} / n: {2} / p: {36}" │

00:00:29 #2195 [Debug] > │     let v9 : UH0 = UH0_1                                                     │

00:00:29 #2196 [Debug] > │     let v10 : int32 = 0                                                      │

00:00:29 #2197 [Debug] > │     let v11 : int32 = method1(v9, v10)                                       │

00:00:29 #2198 [Debug] > │     let v12 : string = $"calculate_dice_count / max: {10} / n: {2} / p:      │

00:00:29 #2199 [Debug] > │ {36}"                                                                        │

00:00:29 #2200 [Debug] > │     let v13 : UH0 = UH0_1                                                    │

00:00:29 #2201 [Debug] > │     let v14 : int32 = 0                                                      │

00:00:29 #2202 [Debug] > │     let v15 : int32 = method1(v13, v14)                                      │

00:00:29 #2203 [Debug] > │     let v16 : string = $"calculate_dice_count / max: {10} / n: {2} / p:      │

00:00:29 #2204 [Debug] > │ {36}"                                                                        │

00:00:29 #2205 [Debug] > │     let v17 : UH0 = UH0_1                                                    │

00:00:29 #2206 [Debug] > │     let v18 : int32 = 0                                                      │

00:00:29 #2207 [Debug] > │     let v19 : int32 = method1(v17, v18)                                      │

00:00:29 #2208 [Debug] > │     let v20 : string = $"calculate_dice_count / max: {10} / n: {2} / p:      │

00:00:29 #2209 [Debug] > │ {36}"                                                                        │

00:00:29 #2210 [Debug] > │     let v21 : UH0 = UH0_1                                                    │

00:00:29 #2211 [Debug] > │     let v22 : int32 = 0                                                      │

00:00:29 #2212 [Debug] > │     let v23 : int32 = method1(v21, v22)                                      │

00:00:29 #2213 [Debug] > │     let v24 : string = $"calculate_dice_count / max: {10} / n: {2} / p:      │

00:00:29 #2214 [Debug] > │ {36}"                                                                        │

00:00:29 #2215 [Debug] > │     let v25 : UH0 = UH0_1                                                    │

00:00:29 #2216 [Debug] > │     let v26 : int32 = 0                                                      │

00:00:29 #2217 [Debug] > │     let v27 : int32 = method1(v25, v26)                                      │

00:00:29 #2218 [Debug] > │     let v28 : string = $"calculate_dice_count / max: {10} / n: {2} / p:      │

00:00:29 #2219 [Debug] > │ {36}"                                                                        │

00:00:29 #2220 [Debug] > │     let v29 : UH0 = UH0_1                                                    │

00:00:29 #2221 [Debug] > │     let v30 : int32 = 0                                                      │

00:00:29 #2222 [Debug] > │     let v31 : int32 = method1(v29, v30)                                      │

00:00:29 #2223 [Debug] > │     let v32 : string = $"calculate_dice_count / max: {10} / n: {2} / p:      │

00:00:29 #2224 [Debug] > │ {36}"                                                                        │

00:00:29 #2225 [Debug] > │     let v33 : UH0 = UH0_1                                                    │

00:00:29 #2226 [Debug] > │     let v34 : int32 = 0                                                      │

00:00:29 #2227 [Debug] > │     let v35 : int32 = method1(v33, v34)                                      │

00:00:29 #2228 [Debug] > │     let v36 : string = $"calculate_dice_count / max: {10} / n: {2} / p:      │

00:00:29 #2229 [Debug] > │ {36}"                                                                        │

00:00:29 #2230 [Debug] > │     let v37 : UH0 = UH0_1                                                    │

00:00:29 #2231 [Debug] > │     let v38 : int32 = 0                                                      │

00:00:29 #2232 [Debug] > │     let v39 : int32 = method1(v37, v38)                                      │

00:00:29 #2233 [Debug] > │     let v40 : string = $"calculate_dice_count / max: {10} / n: {2} / p:      │

00:00:29 #2234 [Debug] > │ {36}"                                                                        │

00:00:29 #2235 [Debug] > │     let v41 : UH0 = UH0_1                                                    │

00:00:29 #2236 [Debug] > │     let v42 : int32 = 0                                                      │

00:00:29 #2237 [Debug] > │     let v43 : int32 = method1(v41, v42)                                      │

00:00:29 #2238 [Debug] > │     let v44 : string = $"calculate_dice_count / max: {10} / n: {2} / p:      │

00:00:29 #2239 [Debug] > │ {36}"                                                                        │

00:00:29 #2240 [Debug] > │     let v45 : UH0 = UH0_1                                                    │

00:00:29 #2241 [Debug] > │     let v46 : int32 = 0                                                      │

00:00:29 #2242 [Debug] > │     let v47 : int32 = method1(v45, v46)                                      │

00:00:29 #2243 [Debug] > │     let v48 : string = $"calculate_dice_count / max: {10} / n: {2} / p:      │

00:00:29 #2244 [Debug] > │ {36}"                                                                        │

00:00:29 #2245 [Debug] > │     let v49 : UH0 = UH0_1                                                    │

00:00:29 #2246 [Debug] > │     let v50 : int32 = 0                                                      │

00:00:29 #2247 [Debug] > │     let v51 : int32 = method1(v49, v50)                                      │

00:00:29 #2248 [Debug] > │     let v52 : string = $"calculate_dice_count / max: {10} / n: {2} / p:      │

00:00:29 #2249 [Debug] > │ {36}"                                                                        │

00:00:29 #2250 [Debug] > │     let v53 : UH0 = UH0_1                                                    │

00:00:29 #2251 [Debug] > │     let v54 : int32 = 0                                                      │

00:00:29 #2252 [Debug] > │     let v55 : int32 = method1(v53, v54)                                      │

00:00:29 #2253 [Debug] > │     let v56 : string = $"calculate_dice_count / max: {10} / n: {2} / p:      │

00:00:29 #2254 [Debug] > │ {36}"                                                                        │

00:00:29 #2255 [Debug] > │     let v57 : UH0 = UH0_1                                                    │

00:00:29 #2256 [Debug] > │     let v58 : int32 = 0                                                      │

00:00:29 #2257 [Debug] > │     let v59 : int32 = method1(v57, v58)                                      │

00:00:29 #2258 [Debug] > │     let v60 : string = $"calculate_dice_count / max: {10} / n: {2} / p:      │

00:00:29 #2259 [Debug] > │ {36}"                                                                        │

00:00:29 #2260 [Debug] > │     let v61 : UH0 = UH0_1                                                    │

00:00:29 #2261 [Debug] > │     let v62 : int32 = 0                                                      │

00:00:29 #2262 [Debug] > │     let v63 : int32 = method1(v61, v62)                                      │

00:00:29 #2263 [Debug] > │     let v64 : string = $"calculate_dice_count / max: {10} / n: {2} / p:      │

00:00:29 #2264 [Debug] > │ {36}"                                                                        │

00:00:29 #2265 [Debug] > │     let v65 : UH0 = UH0_1                                                    │

00:00:29 #2266 [Debug] > │     let v66 : int32 = 0                                                      │

00:00:29 #2267 [Debug] > │     let v67 : int32 = method1(v65, v66)                                      │

00:00:29 #2268 [Debug] > │     let v68 : string = $"calculate_dice_count / max: {10} / n: {2} / p:      │

00:00:29 #2269 [Debug] > │ {36}"                                                                        │

00:00:29 #2270 [Debug] > │     let v69 : UH0 = UH0_1                                                    │

00:00:29 #2271 [Debug] > │     let v70 : int32 = 0                                                      │

00:00:29 #2272 [Debug] > │     let v71 : int32 = method1(v69, v70)                                      │

00:00:29 #2273 [Debug] > │     let v72 : string = $"calculate_dice_count / max: {10} / n: {2} / p:      │

00:00:29 #2274 [Debug] > │ {36}"                                                                        │

00:00:29 #2275 [Debug] > │     let v73 : UH0 = UH0_1                                                    │

00:00:29 #2276 [Debug] > │     let v74 : int32 = 0                                                      │

00:00:29 #2277 [Debug] > │     let v75 : int32 = method1(v73, v74)                                      │

00:00:29 #2278 [Debug] > │     let v76 : string = $"calculate_dice_count / max: {10} / n: {2} / p:      │

00:00:29 #2279 [Debug] > │ {36}"                                                                        │

00:00:29 #2280 [Debug] > │     let v77 : UH0 = UH0_1                                                    │

00:00:29 #2281 [Debug] > │     let v78 : int32 = 0                                                      │

00:00:29 #2282 [Debug] > │     let v79 : int32 = method1(v77, v78)                                      │

00:00:29 #2283 [Debug] > │     let v80 : string = $"calculate_dice_count / max: {10} / n: {2} / p:      │

00:00:29 #2284 [Debug] > │ {36}"                                                                        │

00:00:29 #2285 [Debug] > │     let v81 : UH0 = UH0_1                                                    │

00:00:29 #2286 [Debug] > │     let v82 : int32 = 0                                                      │

00:00:29 #2287 [Debug] > │     let v83 : int32 = method1(v81, v82)                                      │

00:00:29 #2288 [Debug] > │     let v84 : string = $"calculate_dice_count / max: {10} / n: {2} / p:      │

00:00:29 #2289 [Debug] > │ {36}"                                                                        │

00:00:29 #2290 [Debug] > │     let v85 : UH0 = UH0_1                                                    │

00:00:29 #2291 [Debug] > │     let v86 : int32 = 0                                                      │

00:00:29 #2292 [Debug] > │     let v87 : int32 = method1(v85, v86)                                      │

00:00:29 #2293 [Debug] > │     let v88 : string = $"calculate_dice_count / max: {10} / n: {2} / p:      │

00:00:29 #2294 [Debug] > │ {36}"                                                                        │

00:00:29 #2295 [Debug] > │     let v89 : UH0 = UH0_1                                                    │

00:00:29 #2296 [Debug] > │     let v90 : int32 = 0                                                      │

00:00:29 #2297 [Debug] > │     let v91 : int32 = method1(v89, v90)                                      │

00:00:29 #2298 [Debug] > │     let v92 : string = $"calculate_dice_count / max: {10} / n: {2} / p:      │

00:00:29 #2299 [Debug] > │ {36}"                                                                        │

00:00:29 #2300 [Debug] > │     let v93 : UH0 = UH0_1                                                    │

00:00:29 #2301 [Debug] > │     let v94 : int32 = 0                                                      │

00:00:29 #2302 [Debug] > │     let v95 : int32 = method1(v93, v94)                                      │

00:00:29 #2303 [Debug] > │     let v96 : string = $"calculate_dice_count / max: {10} / n: {2} / p:      │

00:00:29 #2304 [Debug] > │ {36}"                                                                        │

00:00:29 #2305 [Debug] > │     let v97 : UH0 = UH0_1                                                    │

00:00:29 #2306 [Debug] > │     let v98 : int32 = 0                                                      │

00:00:29 #2307 [Debug] > │     let v99 : int32 = method1(v97, v98)                                      │

00:00:29 #2308 [Debug] > │     let v100 : string = $"calculate_dice_count / max: {10} / n: {2} / p:     │

00:00:29 #2309 [Debug] > │ {36}"                                                                        │

00:00:29 #2310 [Debug] > │     let v101 : UH0 = UH0_1                                                   │

00:00:29 #2311 [Debug] > │     let v102 : int32 = 0                                                     │

00:00:29 #2312 [Debug] > │     let v103 : int32 = method1(v101, v102)                                   │

00:00:29 #2313 [Debug] > │     let v104 : string = $"calculate_dice_count / max: {10} / n: {2} / p:     │

00:00:29 #2314 [Debug] > │ {36}"                                                                        │

00:00:29 #2315 [Debug] > │     let v105 : UH0 = UH0_1                                                   │

00:00:29 #2316 [Debug] > │     let v106 : int32 = 0                                                     │

00:00:29 #2317 [Debug] > │     let v107 : int32 = method1(v105, v106)                                   │

00:00:29 #2318 [Debug] > │     let v108 : string = $"calculate_dice_count / max: {10} / n: {2} / p:     │

00:00:29 #2319 [Debug] > │ {36}"                                                                        │

00:00:29 #2320 [Debug] > │     let v109 : UH0 = UH0_1                                                   │

00:00:29 #2321 [Debug] > │     let v110 : int32 = 0                                                     │

00:00:29 #2322 [Debug] > │     let v111 : int32 = method1(v109, v110)                                   │

00:00:29 #2323 [Debug] > │     let v112 : string = $"calculate_dice_count / max: {10} / n: {2} / p:     │

00:00:29 #2324 [Debug] > │ {36}"                                                                        │

00:00:29 #2325 [Debug] > │     let v113 : UH0 = UH0_1                                                   │

00:00:29 #2326 [Debug] > │     let v114 : int32 = 0                                                     │

00:00:29 #2327 [Debug] > │     let v115 : int32 = method1(v113, v114)                                   │

00:00:29 #2328 [Debug] > │     let v116 : string = $"calculate_dice_count / max: {10} / n: {2} / p:     │

00:00:29 #2329 [Debug] > │ {36}"                                                                        │

00:00:29 #2330 [Debug] > │     let v117 : UH0 = UH0_1                                                   │

00:00:29 #2331 [Debug] > │     let v118 : int32 = 0                                                     │

00:00:29 #2332 [Debug] > │     let v119 : int32 = method1(v117, v118)                                   │

00:00:29 #2333 [Debug] > │     let v120 : string = $"calculate_dice_count / max: {10} / n: {2} / p:     │

00:00:29 #2334 [Debug] > │ {36}"                                                                        │

00:00:29 #2335 [Debug] > │     let v121 : UH0 = UH0_1                                                   │

00:00:29 #2336 [Debug] > │     let v122 : int32 = 0                                                     │

00:00:29 #2337 [Debug] > │     let v123 : int32 = method1(v121, v122)                                   │

00:00:29 #2338 [Debug] > │     let v124 : string = $"calculate_dice_count / max: {10} / n: {2} / p:     │

00:00:29 #2339 [Debug] > │ {36}"                                                                        │

00:00:29 #2340 [Debug] > │     let v125 : UH0 = UH0_1                                                   │

00:00:29 #2341 [Debug] > │     let v126 : int32 = 0                                                     │

00:00:29 #2342 [Debug] > │     let v127 : int32 = method1(v125, v126)                                   │

00:00:29 #2343 [Debug] > │     let v128 : string = $"calculate_dice_count / max: {10} / n: {2} / p:     │

00:00:29 #2344 [Debug] > │ {36}"                                                                        │

00:00:29 #2345 [Debug] > │     let v129 : UH0 = UH0_1                                                   │

00:00:29 #2346 [Debug] > │     let v130 : int32 = 0                                                     │

00:00:29 #2347 [Debug] > │     let v131 : int32 = method1(v129, v130)                                   │

00:00:29 #2348 [Debug] > │     let v132 : string = $"calculate_dice_count / max: {10} / n: {2} / p:     │

00:00:29 #2349 [Debug] > │ {36}"                                                                        │

00:00:29 #2350 [Debug] > │     let v133 : UH0 = UH0_1                                                   │

00:00:29 #2351 [Debug] > │     let v134 : int32 = 0                                                     │

00:00:29 #2352 [Debug] > │     let v135 : int32 = method1(v133, v134)                                   │

00:00:29 #2353 [Debug] > │     let v136 : string = $"calculate_dice_count / max: {10} / n: {2} / p:     │

00:00:29 #2354 [Debug] > │ {36}"                                                                        │

00:00:29 #2355 [Debug] > │     let v137 : UH0 = UH0_1                                                   │

00:00:29 #2356 [Debug] > │     let v138 : int32 = 0                                                     │

00:00:29 #2357 [Debug] > │     let v139 : int32 = method1(v137, v138)                                   │

00:00:29 #2358 [Debug] > │     let v140 : string = $"calculate_dice_count / max: {10} / n: {2} / p:     │

00:00:29 #2359 [Debug] > │ {36}"                                                                        │

00:00:29 #2360 [Debug] > │     let v141 : UH0 = UH0_1                                                   │

00:00:29 #2361 [Debug] > │     let v142 : int32 = 0                                                     │

00:00:29 #2362 [Debug] > │     let v143 : int32 = method1(v141, v142)                                   │

00:00:29 #2363 [Debug] > │     let v144 : string = $"calculate_dice_count / max: {10} / n: {2} / p:     │

00:00:29 #2364 [Debug] > │ {36}"                                                                        │

00:00:29 #2365 [Debug] > │     let v145 : UH0 = UH0_1                                                   │

00:00:29 #2366 [Debug] > │     let v146 : int32 = 0                                                     │

00:00:29 #2367 [Debug] > │     let v147 : int32 = method1(v145, v146)                                   │

00:00:29 #2368 [Debug] > │     let v148 : string = $"calculate_dice_count / max: {10} / n: {2} / p:     │

00:00:29 #2369 [Debug] > │ {36}"                                                                        │

00:00:29 #2370 [Debug] > │     let v149 : UH0 = UH0_1                                                   │

00:00:29 #2371 [Debug] > │     let v150 : int32 = 0                                                     │

00:00:29 #2372 [Debug] > │     let v151 : int32 = method1(v149, v150)                                   │

00:00:29 #2373 [Debug] > │     let v152 : string = $"calculate_dice_count / max: {10} / n: {2} / p:     │

00:00:29 #2374 [Debug] > │ {36}"                                                                        │

00:00:29 #2375 [Debug] > │     let v153 : UH0 = UH0_1                                                   │

00:00:29 #2376 [Debug] > │     let v154 : int32 = 0                                                     │

00:00:29 #2377 [Debug] > │     let v155 : int32 = method1(v153, v154)                                   │

00:00:29 #2378 [Debug] > │     let v156 : string = $"calculate_dice_count / max: {10} / n: {2} / p:     │

00:00:29 #2379 [Debug] > │ {36}"                                                                        │

00:00:29 #2380 [Debug] > │     let v157 : UH0 = UH0_1                                                   │

00:00:29 #2381 [Debug] > │     let v158 : int32 = 0                                                     │

00:00:29 #2382 [Debug] > │     let v159 : int32 = method1(v157, v158)                                   │

00:00:29 #2383 [Debug] > │     let v160 : bool = v3 = v7                                                │

00:00:29 #2384 [Debug] > │     let struct (v170 : bool, v171 : UH1) =                                   │

00:00:29 #2385 [Debug] > │         if v160 then                                                         │

00:00:29 #2386 [Debug] > │             let v161 : UH0 = UH0_1                                           │

00:00:29 #2387 [Debug] > │             let v162 : UH0 = UH0_0(v3, v161)                                 │

00:00:29 #2388 [Debug] > │             let v163 : UH0 = UH0_0(v7, v162)                                 │

00:00:29 #2389 [Debug] > │             let v164 : UH1 = UH1_1                                           │

00:00:29 #2390 [Debug] > │             let v165 : UH1 = UH1_0(v3, v163, v164)                           │

00:00:29 #2391 [Debug] > │             struct (true, v165)                                              │

00:00:29 #2392 [Debug] > │         else                                                                 │

00:00:29 #2393 [Debug] > │             let v166 : UH0 = UH0_1                                           │

00:00:29 #2394 [Debug] > │             let v167 : UH0 = UH0_0(v3, v166)                                 │

00:00:29 #2395 [Debug] > │             let v168 : UH1 = UH1_1                                           │

00:00:29 #2396 [Debug] > │             let v169 : UH1 = UH1_0(v3, v167, v168)                           │

00:00:29 #2397 [Debug] > │             struct (false, v169)                                             │

00:00:29 #2398 [Debug] > │     let v175 : UH1 =                                                         │

00:00:29 #2399 [Debug] > │         if v170 then                                                         │

00:00:29 #2400 [Debug] > │             v171                                                             │

00:00:29 #2401 [Debug] > │         else                                                                 │

00:00:29 #2402 [Debug] > │             let v172 : UH0 = UH0_1                                           │

00:00:29 #2403 [Debug] > │             let v173 : UH0 = UH0_0(v7, v172)                                 │

00:00:29 #2404 [Debug] > │             UH1_0(v7, v173, v171)                                            │

00:00:29 #2405 [Debug] > │     let v176 : bool = false                                                  │

00:00:29 #2406 [Debug] > │     let v177 : UH1 = UH1_1                                                   │

00:00:29 #2407 [Debug] > │     let struct (v178 : bool, v179 : UH1) = method5(v11, v175, v176, v177)    │

00:00:29 #2408 [Debug] > │     let v183 : UH1 =                                                         │

00:00:29 #2409 [Debug] > │         if v178 then                                                         │

00:00:29 #2410 [Debug] > │             v179                                                             │

00:00:29 #2411 [Debug] > │         else                                                                 │

00:00:29 #2412 [Debug] > │             let v180 : UH0 = UH0_1                                           │

00:00:29 #2413 [Debug] > │             let v181 : UH0 = UH0_0(v11, v180)                                │

00:00:29 #2414 [Debug] > │             UH1_0(v11, v181, v179)                                           │

00:00:29 #2415 [Debug] > │     let v184 : bool = false                                                  │

00:00:29 #2416 [Debug] > │     let v185 : UH1 = UH1_1                                                   │

00:00:29 #2417 [Debug] > │     let struct (v186 : bool, v187 : UH1) = method5(v15, v183, v184, v185)    │

00:00:29 #2418 [Debug] > │     let v191 : UH1 =                                                         │

00:00:29 #2419 [Debug] > │         if v186 then                                                         │

00:00:29 #2420 [Debug] > │             v187                                                             │

00:00:29 #2421 [Debug] > │         else                                                                 │

00:00:29 #2422 [Debug] > │             let v188 : UH0 = UH0_1                                           │

00:00:29 #2423 [Debug] > │             let v189 : UH0 = UH0_0(v15, v188)                                │

00:00:29 #2424 [Debug] > │             UH1_0(v15, v189, v187)                                           │

00:00:29 #2425 [Debug] > │     let v192 : bool = false                                                  │

00:00:29 #2426 [Debug] > │     let v193 : UH1 = UH1_1                                                   │

00:00:29 #2427 [Debug] > │     let struct (v194 : bool, v195 : UH1) = method5(v19, v191, v192, v193)    │

00:00:29 #2428 [Debug] > │     let v199 : UH1 =                                                         │

00:00:29 #2429 [Debug] > │         if v194 then                                                         │

00:00:29 #2430 [Debug] > │             v195                                                             │

00:00:29 #2431 [Debug] > │         else                                                                 │

00:00:29 #2432 [Debug] > │             let v196 : UH0 = UH0_1                                           │

00:00:29 #2433 [Debug] > │             let v197 : UH0 = UH0_0(v19, v196)                                │

00:00:29 #2434 [Debug] > │             UH1_0(v19, v197, v195)                                           │

00:00:29 #2435 [Debug] > │     let v200 : bool = false                                                  │

00:00:29 #2436 [Debug] > │     let v201 : UH1 = UH1_1                                                   │

00:00:29 #2437 [Debug] > │     let struct (v202 : bool, v203 : UH1) = method5(v23, v199, v200, v201)    │

00:00:29 #2438 [Debug] > │     let v207 : UH1 =                                                         │

00:00:29 #2439 [Debug] > │         if v202 then                                                         │

00:00:29 #2440 [Debug] > │             v203                                                             │

00:00:29 #2441 [Debug] > │         else                                                                 │

00:00:29 #2442 [Debug] > │             let v204 : UH0 = UH0_1                                           │

00:00:29 #2443 [Debug] > │             let v205 : UH0 = UH0_0(v23, v204)                                │

00:00:29 #2444 [Debug] > │             UH1_0(v23, v205, v203)                                           │

00:00:29 #2445 [Debug] > │     let v208 : bool = false                                                  │

00:00:29 #2446 [Debug] > │     let v209 : UH1 = UH1_1                                                   │

00:00:29 #2447 [Debug] > │     let struct (v210 : bool, v211 : UH1) = method5(v27, v207, v208, v209)    │

00:00:29 #2448 [Debug] > │     let v215 : UH1 =                                                         │

00:00:29 #2449 [Debug] > │         if v210 then                                                         │

00:00:29 #2450 [Debug] > │             v211                                                             │

00:00:29 #2451 [Debug] > │         else                                                                 │

00:00:29 #2452 [Debug] > │             let v212 : UH0 = UH0_1                                           │

00:00:29 #2453 [Debug] > │             let v213 : UH0 = UH0_0(v27, v212)                                │

00:00:29 #2454 [Debug] > │             UH1_0(v27, v213, v211)                                           │

00:00:29 #2455 [Debug] > │     let v216 : bool = false                                                  │

00:00:29 #2456 [Debug] > │     let v217 : UH1 = UH1_1                                                   │

00:00:29 #2457 [Debug] > │     let struct (v218 : bool, v219 : UH1) = method5(v31, v215, v216, v217)    │

00:00:29 #2458 [Debug] > │     let v223 : UH1 =                                                         │

00:00:29 #2459 [Debug] > │         if v218 then                                                         │

00:00:29 #2460 [Debug] > │             v219                                                             │

00:00:29 #2461 [Debug] > │         else                                                                 │

00:00:29 #2462 [Debug] > │             let v220 : UH0 = UH0_1                                           │

00:00:29 #2463 [Debug] > │             let v221 : UH0 = UH0_0(v31, v220)                                │

00:00:29 #2464 [Debug] > │             UH1_0(v31, v221, v219)                                           │

00:00:29 #2465 [Debug] > │     let v224 : bool = false                                                  │

00:00:29 #2466 [Debug] > │     let v225 : UH1 = UH1_1                                                   │

00:00:29 #2467 [Debug] > │     let struct (v226 : bool, v227 : UH1) = method5(v35, v223, v224, v225)    │

00:00:29 #2468 [Debug] > │     let v231 : UH1 =                                                         │

00:00:29 #2469 [Debug] > │         if v226 then                                                         │

00:00:29 #2470 [Debug] > │             v227                                                             │

00:00:29 #2471 [Debug] > │         else                                                                 │

00:00:29 #2472 [Debug] > │             let v228 : UH0 = UH0_1                                           │

00:00:29 #2473 [Debug] > │             let v229 : UH0 = UH0_0(v35, v228)                                │

00:00:29 #2474 [Debug] > │             UH1_0(v35, v229, v227)                                           │

00:00:29 #2475 [Debug] > │     let v232 : bool = false                                                  │

00:00:29 #2476 [Debug] > │     let v233 : UH1 = UH1_1                                                   │

00:00:29 #2477 [Debug] > │     let struct (v234 : bool, v235 : UH1) = method5(v39, v231, v232, v233)    │

00:00:29 #2478 [Debug] > │     let v239 : UH1 =                                                         │

00:00:29 #2479 [Debug] > │         if v234 then                                                         │

00:00:29 #2480 [Debug] > │             v235                                                             │

00:00:29 #2481 [Debug] > │         else                                                                 │

00:00:29 #2482 [Debug] > │             let v236 : UH0 = UH0_1                                           │

00:00:29 #2483 [Debug] > │             let v237 : UH0 = UH0_0(v39, v236)                                │

00:00:29 #2484 [Debug] > │             UH1_0(v39, v237, v235)                                           │

00:00:29 #2485 [Debug] > │     let v240 : bool = false                                                  │

00:00:29 #2486 [Debug] > │     let v241 : UH1 = UH1_1                                                   │

00:00:29 #2487 [Debug] > │     let struct (v242 : bool, v243 : UH1) = method5(v43, v239, v240, v241)    │

00:00:29 #2488 [Debug] > │     let v247 : UH1 =                                                         │

00:00:29 #2489 [Debug] > │         if v242 then                                                         │

00:00:29 #2490 [Debug] > │             v243                                                             │

00:00:29 #2491 [Debug] > │         else                                                                 │

00:00:29 #2492 [Debug] > │             let v244 : UH0 = UH0_1                                           │

00:00:29 #2493 [Debug] > │             let v245 : UH0 = UH0_0(v43, v244)                                │

00:00:29 #2494 [Debug] > │             UH1_0(v43, v245, v243)                                           │

00:00:29 #2495 [Debug] > │     let v248 : bool = false                                                  │

00:00:29 #2496 [Debug] > │     let v249 : UH1 = UH1_1                                                   │

00:00:29 #2497 [Debug] > │     let struct (v250 : bool, v251 : UH1) = method5(v47, v247, v248, v249)    │

00:00:29 #2498 [Debug] > │     let v255 : UH1 =                                                         │

00:00:29 #2499 [Debug] > │         if v250 then                                                         │

00:00:29 #2500 [Debug] > │             v251                                                             │

00:00:29 #2501 [Debug] > │         else                                                                 │

00:00:29 #2502 [Debug] > │             let v252 : UH0 = UH0_1                                           │

00:00:29 #2503 [Debug] > │             let v253 : UH0 = UH0_0(v47, v252)                                │

00:00:29 #2504 [Debug] > │             UH1_0(v47, v253, v251)                                           │

00:00:29 #2505 [Debug] > │     let v256 : bool = false                                                  │

00:00:29 #2506 [Debug] > │     let v257 : UH1 = UH1_1                                                   │

00:00:29 #2507 [Debug] > │     let struct (v258 : bool, v259 : UH1) = method5(v51, v255, v256, v257)    │

00:00:29 #2508 [Debug] > │     let v263 : UH1 =                                                         │

00:00:29 #2509 [Debug] > │         if v258 then                                                         │

00:00:29 #2510 [Debug] > │             v259                                                             │

00:00:29 #2511 [Debug] > │         else                                                                 │

00:00:29 #2512 [Debug] > │             let v260 : UH0 = UH0_1                                           │

00:00:29 #2513 [Debug] > │             let v261 : UH0 = UH0_0(v51, v260)                                │

00:00:29 #2514 [Debug] > │             UH1_0(v51, v261, v259)                                           │

00:00:29 #2515 [Debug] > │     let v264 : bool = false                                                  │

00:00:29 #2516 [Debug] > │     let v265 : UH1 = UH1_1                                                   │

00:00:29 #2517 [Debug] > │     let struct (v266 : bool, v267 : UH1) = method5(v55, v263, v264, v265)    │

00:00:29 #2518 [Debug] > │     let v271 : UH1 =                                                         │

00:00:29 #2519 [Debug] > │         if v266 then                                                         │

00:00:29 #2520 [Debug] > │             v267                                                             │

00:00:29 #2521 [Debug] > │         else                                                                 │

00:00:29 #2522 [Debug] > │             let v268 : UH0 = UH0_1                                           │

00:00:29 #2523 [Debug] > │             let v269 : UH0 = UH0_0(v55, v268)                                │

00:00:29 #2524 [Debug] > │             UH1_0(v55, v269, v267)                                           │

00:00:29 #2525 [Debug] > │     let v272 : bool = false                                                  │

00:00:29 #2526 [Debug] > │     let v273 : UH1 = UH1_1                                                   │

00:00:29 #2527 [Debug] > │     let struct (v274 : bool, v275 : UH1) = method5(v59, v271, v272, v273)    │

00:00:29 #2528 [Debug] > │     let v279 : UH1 =                                                         │

00:00:29 #2529 [Debug] > │         if v274 then                                                         │

00:00:29 #2530 [Debug] > │             v275                                                             │

00:00:29 #2531 [Debug] > │         else                                                                 │

00:00:29 #2532 [Debug] > │             let v276 : UH0 = UH0_1                                           │

00:00:29 #2533 [Debug] > │             let v277 : UH0 = UH0_0(v59, v276)                                │

00:00:29 #2534 [Debug] > │             UH1_0(v59, v277, v275)                                           │

00:00:29 #2535 [Debug] > │     let v280 : bool = false                                                  │

00:00:29 #2536 [Debug] > │     let v281 : UH1 = UH1_1                                                   │

00:00:29 #2537 [Debug] > │     let struct (v282 : bool, v283 : UH1) = method5(v63, v279, v280, v281)    │

00:00:29 #2538 [Debug] > │     let v287 : UH1 =                                                         │

00:00:29 #2539 [Debug] > │         if v282 then                                                         │

00:00:29 #2540 [Debug] > │             v283                                                             │

00:00:29 #2541 [Debug] > │         else                                                                 │

00:00:29 #2542 [Debug] > │             let v284 : UH0 = UH0_1                                           │

00:00:29 #2543 [Debug] > │             let v285 : UH0 = UH0_0(v63, v284)                                │

00:00:29 #2544 [Debug] > │             UH1_0(v63, v285, v283)                                           │

00:00:29 #2545 [Debug] > │     let v288 : bool = false                                                  │

00:00:29 #2546 [Debug] > │     let v289 : UH1 = UH1_1                                                   │

00:00:29 #2547 [Debug] > │     let struct (v290 : bool, v291 : UH1) = method5(v67, v287, v288, v289)    │

00:00:29 #2548 [Debug] > │     let v295 : UH1 =                                                         │

00:00:29 #2549 [Debug] > │         if v290 then                                                         │

00:00:29 #2550 [Debug] > │             v291                                                             │

00:00:29 #2551 [Debug] > │         else                                                                 │

00:00:29 #2552 [Debug] > │             let v292 : UH0 = UH0_1                                           │

00:00:29 #2553 [Debug] > │             let v293 : UH0 = UH0_0(v67, v292)                                │

00:00:29 #2554 [Debug] > │             UH1_0(v67, v293, v291)                                           │

00:00:29 #2555 [Debug] > │     let v296 : bool = false                                                  │

00:00:29 #2556 [Debug] > │     let v297 : UH1 = UH1_1                                                   │

00:00:29 #2557 [Debug] > │     let struct (v298 : bool, v299 : UH1) = method5(v71, v295, v296, v297)    │

00:00:29 #2558 [Debug] > │     let v303 : UH1 =                                                         │

00:00:29 #2559 [Debug] > │         if v298 then                                                         │

00:00:29 #2560 [Debug] > │             v299                                                             │

00:00:29 #2561 [Debug] > │         else                                                                 │

00:00:29 #2562 [Debug] > │             let v300 : UH0 = UH0_1                                           │

00:00:29 #2563 [Debug] > │             let v301 : UH0 = UH0_0(v71, v300)                                │

00:00:29 #2564 [Debug] > │             UH1_0(v71, v301, v299)                                           │

00:00:29 #2565 [Debug] > │     let v304 : bool = false                                                  │

00:00:29 #2566 [Debug] > │     let v305 : UH1 = UH1_1                                                   │

00:00:29 #2567 [Debug] > │     let struct (v306 : bool, v307 : UH1) = method5(v75, v303, v304, v305)    │

00:00:29 #2568 [Debug] > │     let v311 : UH1 =                                                         │

00:00:29 #2569 [Debug] > │         if v306 then                                                         │

00:00:29 #2570 [Debug] > │             v307                                                             │

00:00:29 #2571 [Debug] > │         else                                                                 │

00:00:29 #2572 [Debug] > │             let v308 : UH0 = UH0_1                                           │

00:00:29 #2573 [Debug] > │             let v309 : UH0 = UH0_0(v75, v308)                                │

00:00:29 #2574 [Debug] > │             UH1_0(v75, v309, v307)                                           │

00:00:29 #2575 [Debug] > │     let v312 : bool = false                                                  │

00:00:29 #2576 [Debug] > │     let v313 : UH1 = UH1_1                                                   │

00:00:29 #2577 [Debug] > │     let struct (v314 : bool, v315 : UH1) = method5(v79, v311, v312, v313)    │

00:00:29 #2578 [Debug] > │     let v319 : UH1 =                                                         │

00:00:29 #2579 [Debug] > │         if v314 then                                                         │

00:00:29 #2580 [Debug] > │             v315                                                             │

00:00:29 #2581 [Debug] > │         else                                                                 │

00:00:29 #2582 [Debug] > │             let v316 : UH0 = UH0_1                                           │

00:00:29 #2583 [Debug] > │             let v317 : UH0 = UH0_0(v79, v316)                                │

00:00:29 #2584 [Debug] > │             UH1_0(v79, v317, v315)                                           │

00:00:29 #2585 [Debug] > │     let v320 : bool = false                                                  │

00:00:29 #2586 [Debug] > │     let v321 : UH1 = UH1_1                                                   │

00:00:29 #2587 [Debug] > │     let struct (v322 : bool, v323 : UH1) = method5(v83, v319, v320, v321)    │

00:00:29 #2588 [Debug] > │     let v327 : UH1 =                                                         │

00:00:29 #2589 [Debug] > │         if v322 then                                                         │

00:00:29 #2590 [Debug] > │             v323                                                             │

00:00:29 #2591 [Debug] > │         else                                                                 │

00:00:29 #2592 [Debug] > │             let v324 : UH0 = UH0_1                                           │

00:00:29 #2593 [Debug] > │             let v325 : UH0 = UH0_0(v83, v324)                                │

00:00:29 #2594 [Debug] > │             UH1_0(v83, v325, v323)                                           │

00:00:29 #2595 [Debug] > │     let v328 : bool = false                                                  │

00:00:29 #2596 [Debug] > │     let v329 : UH1 = UH1_1                                                   │

00:00:29 #2597 [Debug] > │     let struct (v330 : bool, v331 : UH1) = method5(v87, v327, v328, v329)    │

00:00:29 #2598 [Debug] > │     let v335 : UH1 =                                                         │

00:00:29 #2599 [Debug] > │         if v330 then                                                         │

00:00:29 #2600 [Debug] > │             v331                                                             │

00:00:29 #2601 [Debug] > │         else                                                                 │

00:00:29 #2602 [Debug] > │             let v332 : UH0 = UH0_1                                           │

00:00:29 #2603 [Debug] > │             let v333 : UH0 = UH0_0(v87, v332)                                │

00:00:29 #2604 [Debug] > │             UH1_0(v87, v333, v331)                                           │

00:00:29 #2605 [Debug] > │     let v336 : bool = false                                                  │

00:00:29 #2606 [Debug] > │     let v337 : UH1 = UH1_1                                                   │

00:00:29 #2607 [Debug] > │     let struct (v338 : bool, v339 : UH1) = method5(v91, v335, v336, v337)    │

00:00:29 #2608 [Debug] > │     let v343 : UH1 =                                                         │

00:00:29 #2609 [Debug] > │         if v338 then                                                         │

00:00:29 #2610 [Debug] > │             v339                                                             │

00:00:29 #2611 [Debug] > │         else                                                                 │

00:00:29 #2612 [Debug] > │             let v340 : UH0 = UH0_1                                           │

00:00:29 #2613 [Debug] > │             let v341 : UH0 = UH0_0(v91, v340)                                │

00:00:29 #2614 [Debug] > │             UH1_0(v91, v341, v339)                                           │

00:00:29 #2615 [Debug] > │     let v344 : bool = false                                                  │

00:00:29 #2616 [Debug] > │     let v345 : UH1 = UH1_1                                                   │

00:00:29 #2617 [Debug] > │     let struct (v346 : bool, v347 : UH1) = method5(v95, v343, v344, v345)    │

00:00:29 #2618 [Debug] > │     let v351 : UH1 =                                                         │

00:00:29 #2619 [Debug] > │         if v346 then                                                         │

00:00:29 #2620 [Debug] > │             v347                                                             │

00:00:29 #2621 [Debug] > │         else                                                                 │

00:00:29 #2622 [Debug] > │             let v348 : UH0 = UH0_1                                           │

00:00:29 #2623 [Debug] > │             let v349 : UH0 = UH0_0(v95, v348)                                │

00:00:29 #2624 [Debug] > │             UH1_0(v95, v349, v347)                                           │

00:00:29 #2625 [Debug] > │     let v352 : bool = false                                                  │

00:00:29 #2626 [Debug] > │     let v353 : UH1 = UH1_1                                                   │

00:00:29 #2627 [Debug] > │     let struct (v354 : bool, v355 : UH1) = method5(v99, v351, v352, v353)    │

00:00:29 #2628 [Debug] > │     let v359 : UH1 =                                                         │

00:00:29 #2629 [Debug] > │         if v354 then                                                         │

00:00:29 #2630 [Debug] > │             v355                                                             │

00:00:29 #2631 [Debug] > │         else                                                                 │

00:00:29 #2632 [Debug] > │             let v356 : UH0 = UH0_1                                           │

00:00:29 #2633 [Debug] > │             let v357 : UH0 = UH0_0(v99, v356)                                │

00:00:29 #2634 [Debug] > │             UH1_0(v99, v357, v355)                                           │

00:00:29 #2635 [Debug] > │     let v360 : bool = false                                                  │

00:00:29 #2636 [Debug] > │     let v361 : UH1 = UH1_1                                                   │

00:00:29 #2637 [Debug] > │     let struct (v362 : bool, v363 : UH1) = method5(v103, v359, v360, v361)   │

00:00:29 #2638 [Debug] > │     let v367 : UH1 =                                                         │

00:00:29 #2639 [Debug] > │         if v362 then                                                         │

00:00:29 #2640 [Debug] > │             v363                                                             │

00:00:29 #2641 [Debug] > │         else                                                                 │

00:00:29 #2642 [Debug] > │             let v364 : UH0 = UH0_1                                           │

00:00:29 #2643 [Debug] > │             let v365 : UH0 = UH0_0(v103, v364)                               │

00:00:29 #2644 [Debug] > │             UH1_0(v103, v365, v363)                                          │

00:00:29 #2645 [Debug] > │     let v368 : bool = false                                                  │

00:00:29 #2646 [Debug] > │     let v369 : UH1 = UH1_1                                                   │

00:00:29 #2647 [Debug] > │     let struct (v370 : bool, v371 : UH1) = method5(v107, v367, v368, v369)   │

00:00:29 #2648 [Debug] > │     let v375 : UH1 =                                                         │

00:00:29 #2649 [Debug] > │         if v370 then                                                         │

00:00:29 #2650 [Debug] > │             v371                                                             │

00:00:29 #2651 [Debug] > │         else                                                                 │

00:00:29 #2652 [Debug] > │             let v372 : UH0 = UH0_1                                           │

00:00:29 #2653 [Debug] > │             let v373 : UH0 = UH0_0(v107, v372)                               │

00:00:29 #2654 [Debug] > │             UH1_0(v107, v373, v371)                                          │

00:00:29 #2655 [Debug] > │     let v376 : bool = false                                                  │

00:00:29 #2656 [Debug] > │     let v377 : UH1 = UH1_1                                                   │

00:00:29 #2657 [Debug] > │     let struct (v378 : bool, v379 : UH1) = method5(v111, v375, v376, v377)   │

00:00:29 #2658 [Debug] > │     let v383 : UH1 =                                                         │

00:00:29 #2659 [Debug] > │         if v378 then                                                         │

00:00:29 #2660 [Debug] > │             v379                                                             │

00:00:29 #2661 [Debug] > │         else                                                                 │

00:00:29 #2662 [Debug] > │             let v380 : UH0 = UH0_1                                           │

00:00:29 #2663 [Debug] > │             let v381 : UH0 = UH0_0(v111, v380)                               │

00:00:29 #2664 [Debug] > │             UH1_0(v111, v381, v379)                                          │

00:00:29 #2665 [Debug] > │     let v384 : bool = false                                                  │

00:00:29 #2666 [Debug] > │     let v385 : UH1 = UH1_1                                                   │

00:00:29 #2667 [Debug] > │     let struct (v386 : bool, v387 : UH1) = method5(v115, v383, v384, v385)   │

00:00:29 #2668 [Debug] > │     let v391 : UH1 =                                                         │

00:00:29 #2669 [Debug] > │         if v386 then                                                         │

00:00:29 #2670 [Debug] > │             v387                                                             │

00:00:29 #2671 [Debug] > │         else                                                                 │

00:00:29 #2672 [Debug] > │             let v388 : UH0 = UH0_1                                           │

00:00:29 #2673 [Debug] > │             let v389 : UH0 = UH0_0(v115, v388)                               │

00:00:29 #2674 [Debug] > │             UH1_0(v115, v389, v387)                                          │

00:00:29 #2675 [Debug] > │     let v392 : bool = false                                                  │

00:00:29 #2676 [Debug] > │     let v393 : UH1 = UH1_1                                                   │

00:00:29 #2677 [Debug] > │     let struct (v394 : bool, v395 : UH1) = method5(v119, v391, v392, v393)   │

00:00:29 #2678 [Debug] > │     let v399 : UH1 =                                                         │

00:00:29 #2679 [Debug] > │         if v394 then                                                         │

00:00:29 #2680 [Debug] > │             v395                                                             │

00:00:29 #2681 [Debug] > │         else                                                                 │

00:00:29 #2682 [Debug] > │             let v396 : UH0 = UH0_1                                           │

00:00:29 #2683 [Debug] > │             let v397 : UH0 = UH0_0(v119, v396)                               │

00:00:29 #2684 [Debug] > │             UH1_0(v119, v397, v395)                                          │

00:00:29 #2685 [Debug] > │     let v400 : bool = false                                                  │

00:00:29 #2686 [Debug] > │     let v401 : UH1 = UH1_1                                                   │

00:00:29 #2687 [Debug] > │     let struct (v402 : bool, v403 : UH1) = method5(v123, v399, v400, v401)   │

00:00:29 #2688 [Debug] > │     let v407 : UH1 =                                                         │

00:00:29 #2689 [Debug] > │         if v402 then                                                         │

00:00:29 #2690 [Debug] > │             v403                                                             │

00:00:29 #2691 [Debug] > │         else                                                                 │

00:00:29 #2692 [Debug] > │             let v404 : UH0 = UH0_1                                           │

00:00:29 #2693 [Debug] > │             let v405 : UH0 = UH0_0(v123, v404)                               │

00:00:29 #2694 [Debug] > │             UH1_0(v123, v405, v403)                                          │

00:00:29 #2695 [Debug] > │     let v408 : bool = false                                                  │

00:00:29 #2696 [Debug] > │     let v409 : UH1 = UH1_1                                                   │

00:00:29 #2697 [Debug] > │     let struct (v410 : bool, v411 : UH1) = method5(v127, v407, v408, v409)   │

00:00:29 #2698 [Debug] > │     let v415 : UH1 =                                                         │

00:00:29 #2699 [Debug] > │         if v410 then                                                         │

00:00:29 #2700 [Debug] > │             v411                                                             │

00:00:29 #2701 [Debug] > │         else                                                                 │

00:00:29 #2702 [Debug] > │             let v412 : UH0 = UH0_1                                           │

00:00:29 #2703 [Debug] > │             let v413 : UH0 = UH0_0(v127, v412)                               │

00:00:29 #2704 [Debug] > │             UH1_0(v127, v413, v411)                                          │

00:00:29 #2705 [Debug] > │     let v416 : bool = false                                                  │

00:00:29 #2706 [Debug] > │     let v417 : UH1 = UH1_1                                                   │

00:00:29 #2707 [Debug] > │     let struct (v418 : bool, v419 : UH1) = method5(v131, v415, v416, v417)   │

00:00:29 #2708 [Debug] > │     let v423 : UH1 =                                                         │

00:00:29 #2709 [Debug] > │         if v418 then                                                         │

00:00:29 #2710 [Debug] > │             v419                                                             │

00:00:29 #2711 [Debug] > │         else                                                                 │

00:00:29 #2712 [Debug] > │             let v420 : UH0 = UH0_1                                           │

00:00:29 #2713 [Debug] > │             let v421 : UH0 = UH0_0(v131, v420)                               │

00:00:29 #2714 [Debug] > │             UH1_0(v131, v421, v419)                                          │

00:00:29 #2715 [Debug] > │     let v424 : bool = false                                                  │

00:00:29 #2716 [Debug] > │     let v425 : UH1 = UH1_1                                                   │

00:00:29 #2717 [Debug] > │     let struct (v426 : bool, v427 : UH1) = method5(v135, v423, v424, v425)   │

00:00:29 #2718 [Debug] > │     let v431 : UH1 =                                                         │

00:00:29 #2719 [Debug] > │         if v426 then                                                         │

00:00:29 #2720 [Debug] > │             v427                                                             │

00:00:29 #2721 [Debug] > │         else                                                                 │

00:00:29 #2722 [Debug] > │             let v428 : UH0 = UH0_1                                           │

00:00:29 #2723 [Debug] > │             let v429 : UH0 = UH0_0(v135, v428)                               │

00:00:29 #2724 [Debug] > │             UH1_0(v135, v429, v427)                                          │

00:00:29 #2725 [Debug] > │     let v432 : bool = false                                                  │

00:00:29 #2726 [Debug] > │     let v433 : UH1 = UH1_1                                                   │

00:00:29 #2727 [Debug] > │     let struct (v434 : bool, v435 : UH1) = method5(v139, v431, v432, v433)   │

00:00:29 #2728 [Debug] > │     let v439 : UH1 =                                                         │

00:00:29 #2729 [Debug] > │         if v434 then                                                         │

00:00:29 #2730 [Debug] > │             v435                                                             │

00:00:29 #2731 [Debug] > │         else                                                                 │

00:00:29 #2732 [Debug] > │             let v436 : UH0 = UH0_1                                           │

00:00:29 #2733 [Debug] > │             let v437 : UH0 = UH0_0(v139, v436)                               │

00:00:29 #2734 [Debug] > │             UH1_0(v139, v437, v435)                                          │

00:00:29 #2735 [Debug] > │     let v440 : bool = false                                                  │

00:00:29 #2736 [Debug] > │     let v441 : UH1 = UH1_1                                                   │

00:00:29 #2737 [Debug] > │     let struct (v442 : bool, v443 : UH1) = method5(v143, v439, v440, v441)   │

00:00:29 #2738 [Debug] > │     let v447 : UH1 =                                                         │

00:00:29 #2739 [Debug] > │         if v442 then                                                         │

00:00:29 #2740 [Debug] > │             v443                                                             │

00:00:29 #2741 [Debug] > │         else                                                                 │

00:00:29 #2742 [Debug] > │             let v444 : UH0 = UH0_1                                           │

00:00:29 #2743 [Debug] > │             let v445 : UH0 = UH0_0(v143, v444)                               │

00:00:29 #2744 [Debug] > │             UH1_0(v143, v445, v443)                                          │

00:00:29 #2745 [Debug] > │     let v448 : bool = false                                                  │

00:00:29 #2746 [Debug] > │     let v449 : UH1 = UH1_1                                                   │

00:00:29 #2747 [Debug] > │     let struct (v450 : bool, v451 : UH1) = method5(v147, v447, v448, v449)   │

00:00:29 #2748 [Debug] > │     let v455 : UH1 =                                                         │

00:00:29 #2749 [Debug] > │         if v450 then                                                         │

00:00:29 #2750 [Debug] > │             v451                                                             │

00:00:29 #2751 [Debug] > │         else                                                                 │

00:00:29 #2752 [Debug] > │             let v452 : UH0 = UH0_1                                           │

00:00:29 #2753 [Debug] > │             let v453 : UH0 = UH0_0(v147, v452)                               │

00:00:29 #2754 [Debug] > │             UH1_0(v147, v453, v451)                                          │

00:00:29 #2755 [Debug] > │     let v456 : bool = false                                                  │

00:00:29 #2756 [Debug] > │     let v457 : UH1 = UH1_1                                                   │

00:00:29 #2757 [Debug] > │     let struct (v458 : bool, v459 : UH1) = method5(v151, v455, v456, v457)   │

00:00:29 #2758 [Debug] > │     let v463 : UH1 =                                                         │

00:00:29 #2759 [Debug] > │         if v458 then                                                         │

00:00:29 #2760 [Debug] > │             v459                                                             │

00:00:29 #2761 [Debug] > │         else                                                                 │

00:00:29 #2762 [Debug] > │             let v460 : UH0 = UH0_1                                           │

00:00:29 #2763 [Debug] > │             let v461 : UH0 = UH0_0(v151, v460)                               │

00:00:29 #2764 [Debug] > │             UH1_0(v151, v461, v459)                                          │

00:00:29 #2765 [Debug] > │     let v464 : bool = false                                                  │

00:00:29 #2766 [Debug] > │     let v465 : UH1 = UH1_1                                                   │

00:00:29 #2767 [Debug] > │     let struct (v466 : bool, v467 : UH1) = method5(v155, v463, v464, v465)   │

00:00:29 #2768 [Debug] > │     let v471 : UH1 =                                                         │

00:00:29 #2769 [Debug] > │         if v466 then                                                         │

00:00:29 #2770 [Debug] > │             v467                                                             │

00:00:29 #2771 [Debug] > │         else                                                                 │

00:00:29 #2772 [Debug] > │             let v468 : UH0 = UH0_1                                           │

00:00:29 #2773 [Debug] > │             let v469 : UH0 = UH0_0(v155, v468)                               │

00:00:29 #2774 [Debug] > │             UH1_0(v155, v469, v467)                                          │

00:00:29 #2775 [Debug] > │     let v472 : bool = false                                                  │

00:00:29 #2776 [Debug] > │     let v473 : UH1 = UH1_1                                                   │

00:00:29 #2777 [Debug] > │     let struct (v474 : bool, v475 : UH1) = method5(v159, v471, v472, v473)   │

00:00:29 #2778 [Debug] > │     let v479 : UH1 =                                                         │

00:00:29 #2779 [Debug] > │         if v474 then                                                         │

00:00:29 #2780 [Debug] > │             v475                                                             │

00:00:29 #2781 [Debug] > │         else                                                                 │

00:00:29 #2782 [Debug] > │             let v476 : UH0 = UH0_1                                           │

00:00:29 #2783 [Debug] > │             let v477 : UH0 = UH0_0(v159, v476)                               │

00:00:29 #2784 [Debug] > │             UH1_0(v159, v477, v475)                                          │

00:00:29 #2785 [Debug] > │     let v480 : UH2 = UH2_1                                                   │

00:00:29 #2786 [Debug] > │     let v481 : UH2 = method6(v479, v480)                                     │

00:00:29 #2787 [Debug] > │     let v482 : (struct (int32 * int32) []) = method8(v481)                   │

00:00:29 #2788 [Debug] > │     let v483 : (struct (int32 * int32) []) = v482 |> Array.sortBy (fun       │

00:00:29 #2789 [Debug] > │ (struct (a, b)) -> a)                                                        │

00:00:29 #2790 [Debug] > │     v483                                                                     │

00:00:29 #2791 [Debug] > │ method0()                                                                    │

00:00:29 #2792 [Debug] > │                                                                              │

00:00:29 #2793 [Debug] > │                                                                              │

00:00:29 #2794 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:29 #2795 [Debug] >

00:00:29 #2796 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:29 #2797 [Debug] > // // test

00:00:29 #2798 [Debug] > // // print_code=false

00:00:29 #2799 [Debug] >

00:00:29 #2800 [Debug] > listm'.init_series 1i32 40 1

00:00:29 #2801 [Debug] > |> listm.map (fun _ => roll_progressively None roll_dice true 10)

00:00:29 #2802 [Debug] > |> listm'.group_by id

00:00:29 #2803 [Debug] > |> listm.map (fun (k, v) => k, (listm.length v : i32))

00:00:29 #2804 [Debug] > |> listm.toArray

00:00:29 #2805 [Debug] > |> fun (ar : a i32 _) =>

00:00:29 #2806 [Debug] >     $"!ar |> Array.sortBy (fun (struct (a, b)) -> a)" : a i32 $"struct (int32 *

00:00:29 #2807 [Debug] > int32)"

00:00:29 #2808 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1415-4403-0374-02139f4ffd12\main.spi

00:00:29 #2809 [Debug] >

00:00:29 #2810 [Debug] > ╭─[ 674.23ms - return value ]──────────────────────────────────────────────────╮

00:00:29 #2811 [Debug] > │ <table><thead><tr><th><i>index</i></th><th>value</th></tr></thead><tbody><tr │

00:00:29 #2812 [Debug] > │ ><td>0</td><td><details class="dni-treeview"><summary><span                  │

00:00:29 #2813 [Debug] > │ class="dni-code-hint"><code>(1,                                              │

00:00:29 #2814 [Debug] > │ 5)</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

00:00:29 #2815 [Debug] > │ >Item1</td><td><div                                                          │

00:00:29 #2816 [Debug] > │ class="dni-plaintext"><pre>1</pre></div></td></tr><tr><td>Item2</td><td><div │

00:00:29 #2817 [Debug] > │ class="dni-plaintext"><pre>5</pre></div></td></tr></tbody></table></div></de │

00:00:29 #2818 [Debug] > │ tails></td></tr><tr><td>1</td><td><details                                   │

00:00:29 #2819 [Debug] > │ class="dni-treeview"><summary><span class="dni-code-hint"><code>(2,          │

00:00:29 #2820 [Debug] > │ 3)</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │

00:00:29 #2821 [Debug] > │ >Item1</td><td><div                                                          │

00:00:29 #2822 [Debug] > │ class="dni-plaintext"><pre>2</pre></div></td></tr><tr><td>Item2</td><td><div │

00:00:29 #2823 [Debug] > │ class="dni-plaintext"><pre>3</pre></div></td></tr...                         │

00:00:29 #2824 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:29 #2825 [Debug] >

00:00:29 #2826 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:29 #2827 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:29 #2828 [Debug] > │ ## main                                                                      │

00:00:29 #2829 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:29 #2830 [Debug] >

00:00:29 #2831 [Debug] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:29 #2832 [Debug] > let main args =

00:00:29 #2833 [Debug] >     let result = rollWithinBounds (Some (printfn "%s")) 2000 [[ 1; 5; 4; 4; 5 ]]

00:00:29 #2834 [Debug] >     trace Debug (fun () -> $"main / result: {result |> Option.defaultValue -1}")

00:00:29 #2835 [Debug] > getLocals

00:00:29 #2836 [Debug] >     0

00:00:31 #2837 [Debug] > [NbConvertApp] Converting notebook Dice.dib.ipynb to html

00:00:31 #2838 [Debug] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

00:00:31 #2839 [Debug] >   validate(nb)

00:00:32 #2840 [Debug] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:72: UserWarning: IPython3 lexer unavailable, falling back on Python 3

00:00:32 #2841 [Debug] >   return _pygments_highlight(

00:00:32 #2842 [Debug] > [NbConvertApp] Writing 453617 bytes to Dice.dib.html

00:00:33 #2843 [Debug] executeAsync / exitCode: 0 / output.Length: 192882

00:00:33 #2844 [Debug] main / executeCommand / exitCode: 0

00:00:00 #1 [Debug] writeDibCode / output: Spi / path: Dice.dib

00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Dice.dib

00:00:00 #3 [Debug] parseDibCode / output: Spi / file: Dice.dib

00:00:00 #3 [Debug] parseDibCode / output: Fs / file: Dice.dib

00:00:00 #1 [Debug] persistCodeProject / packages: [Fable.Core] / modules: [nbs/Common.fs] / path: C:\home\git\polyglot\apps\dice / name: Dice / code.Length: 3568

00:00:00 #2 [Debug] buildProject / fullPath: C:\home\git\polyglot\apps\dice\target\Dice.fsproj

00:00:00 #3 [Debug] executeAsync / options: { Command = "dotnet publish -c release -o ../dist -r linux-x64"

  WorkingDirectory = Some "C:\home\git\polyglot\apps\dice\target"

  CancellationToken = None

  OnLine = None }

00:00:00 #4 [Debug] > MSBuild version 17.8.0-preview-23418-03+0125fc9fb for .NET

00:00:01 #5 [Debug] >   Determining projects to restore...

00:00:01 #6 [Debug] >   Restored C:\home\git\polyglot\apps\dice\target\Dice.fsproj (in 370 ms).

00:00:01 #7 [Debug] > C:\Program Files\dotnet\sdk\8.0.100-rc.1.23463.5\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(311,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\apps\dice\target\Dice.fsproj]

00:00:05 #8 [Debug] >   Dice -> C:\home\git\polyglot\apps\dice\target\bin\release\net8.0\linux-x64\Dice.dll

00:00:06 #9 [Debug] >   Dice -> C:\home\git\polyglot\apps\dice\dist\

00:00:06 #10 [Debug] executeAsync / exitCode: 0 / output.Length: 594

00:00:06 #11 [Debug] executeAsync / options: { Command = "dotnet publish -c release -o ../dist -r win-x64"

  WorkingDirectory = Some "C:\home\git\polyglot\apps\dice\target"

  CancellationToken = None

  OnLine = None }

00:00:07 #12 [Debug] > MSBuild version 17.8.0-preview-23418-03+0125fc9fb for .NET

00:00:07 #13 [Debug] >   Determining projects to restore...

00:00:08 #14 [Debug] >   Restored C:\home\git\polyglot\apps\dice\target\Dice.fsproj (in 468 ms).

00:00:08 #15 [Debug] > C:\Program Files\dotnet\sdk\8.0.100-rc.1.23463.5\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(311,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\apps\dice\target\Dice.fsproj]

00:00:14 #16 [Debug] >   Dice -> C:\home\git\polyglot\apps\dice\target\bin\release\net8.0\win-x64\Dice.dll

00:00:18 #17 [Debug] >   Dice -> C:\home\git\polyglot\apps\dice\dist\

00:00:19 #18 [Debug] executeAsync / exitCode: 0 / output.Length: 592

Fable 4.2.2: F# to Rust compiler (status: alpha)



Thanks to the contributor! @FrankBro

Stand with Ukraine! https://standwithukraine.com.ua/



Parsing target\Dice.fsproj...

Retrieving project options from cache, in case of issues run `dotnet fable clean` or try `--noCache` option.

Project and references (2 source files) parsed in 257ms



Started Fable compilation...

Fable compilation finished in 2983ms



Fable 4.2.2: F# to TypeScript compiler

Minimum fable-library version (when installed from npm): 1.1.1



Thanks to the contributor! @cartermp

Stand with Ukraine! https://standwithukraine.com.ua/



Parsing target\Dice.fsproj...

Retrieving project options from cache, in case of issues run `dotnet fable clean` or try `--noCache` option.

Project and references (2 source files) parsed in 249ms



Started Fable compilation...

Fable compilation finished in 2977ms



Fable 4.2.2: F# to Python compiler (status: beta)



Thanks to the contributor! @chadunit

Stand with Ukraine! https://standwithukraine.com.ua/



Parsing target\Dice.fsproj...

Retrieving project options from cache, in case of issues run `dotnet fable clean` or try `--noCache` option.

Project and references (2 source files) parsed in 215ms



Started Fable compilation...

Fable compilation finished in 2542ms



Fable 4.2.2: F# to PHP compiler (status: experimental)



Thanks to the contributor! @oopbase

Stand with Ukraine! https://standwithukraine.com.ua/



Parsing target\Dice.fsproj...

Retrieving project options from cache, in case of issues run `dotnet fable clean` or try `--noCache` option.

Project and references (2 source files) parsed in 217ms



Started Fable compilation...

Fable compilation finished in 2338ms



.\target\Dice.fs(20,37): (20,89) error FABLE: String templates are not supported

.\target\Dice.fs(26,37): (27,76) error FABLE: String templates are not supported

.\target\Dice.fs(31,37): (31,104) error FABLE: String templates are not supported

.\target\Dice.fs(53,41): (53,93) error FABLE: String templates are not supported

.\target\Dice.fs(123,31): (123,83) error FABLE: String templates are not supported

Compilation failed


# Invoke-Block / $Retries: 1 / $OnError: Continue / $exitcode: 1 / $EnvVars: null / $Error: '' / $ScriptBlock:
'dotnet fable target/Dice.fsproj --optimize --lang php --extension .php --outDir target/php'


Fable 4.2.2: F# to Dart compiler (status: beta)



Thanks to the contributor! @davidpodhola

Stand with Ukraine! https://standwithukraine.com.ua/



Parsing target\Dice.fsproj...

Retrieving project options from cache, in case of issues run `dotnet fable clean` or try `--noCache` option.

Project and references (2 source files) parsed in 214ms



Started Fable compilation...

Fable compilation finished in 2787ms



.\..\..\nbs\Common.fs(1,1): error FABLE: Cannot find reference for Microsoft.FSharp.Core.PrintfFormat`5

.\target\Dice.fs(1,1): error FABLE: Cannot find reference for System.Random

.\target\Dice.fs(1,1): error FABLE: Cannot find reference for System.IO.TextWriter

.\target\Dice.fs(1,1): error FABLE: Cannot find reference for Microsoft.FSharp.Core.PrintfFormat`5

Compilation failed


# Invoke-Block / $Retries: 1 / $OnError: Continue / $exitcode: 1 / $EnvVars: null / $Error: '' / $ScriptBlock:
'dotnet fable target/Dice.fsproj --optimize --lang dart --extension .dart --outDir target/dart'


Fable 4.2.2: F# to Rust compiler (status: alpha)



Thanks to the contributor! @7sharp9

Stand with Ukraine! https://standwithukraine.com.ua/



Parsing target\Dice.fsproj...

Retrieving project options from cache, in case of issues run `dotnet fable clean` or try `--noCache` option.

Project and references (2 source files) parsed in 205ms



Started Fable compilation...

Fable compilation finished in 2423ms



   Compiling dice v0.0.1 (C:\home\git\polyglot\apps\dice)

    Finished release [optimized] target(s) in 3.64s

     Running `target\release\dice.exe`

accumulateDiceRolls / power: 4 / acc: 0 / roll: 1

accumulateDiceRolls / power: 3 / acc: 0 / roll: 5 / value: 864

accumulateDiceRolls / power: 2 / acc: 864 / roll: 4 / value: 108

accumulateDiceRolls / power: 1 / acc: 972 / roll: 4 / value: 18

accumulateDiceRolls / power: 0 / acc: 990 / roll: 5 / value: 4

accumulateDiceRolls / power: -1 / acc: 994

14:16:41 #1 [Debug] main / result: 995

   Compiling dice v0.0.1 (C:\home\git\polyglot\apps\dice)

   Compiling dice_contract v0.0.1 (C:\home\git\polyglot\apps\dice\contract)

    Finished release [optimized] target(s) in 6.33s

## 7

    Finished release [optimized] target(s) in 17.64s

     Running `target/release/dice`





new: ExecutionFinalResult {

    total_gas_burnt: NearGas {

        inner: 5273611536186,

    },

    transaction: ExecutionOutcome {

        transaction_hash: GVwVtZ3cS5SCReiG7DcBizL3uAhctie9no53VQP35JFg,

        block_hash: EEG2EMx3b4Xb8hrKDs5d5bi4GJ1MDJxz8x7muV6fz6Md,

        logs: [],

        receipt_ids: [

            7yiufBUw4gw6wcr9A5W8QTLeLtCdg8FpuY9ZzYhF5mi9,

        ],

        gas_burnt: NearGas {

            inner: 2427927707802,

        },

        tokens_burnt: 242792770780200000000,

        executor_id: AccountId(

            "dev-20231025181719-16401030437149",

        ),

        status: SuccessReceiptId(7yiufBUw4gw6wcr9A5W8QTLeLtCdg8FpuY9ZzYhF5mi9),

    },

    receipts: [

        ExecutionOutcome {

            transaction_hash: 7yiufBUw4gw6wcr9A5W8QTLeLtCdg8FpuY9ZzYhF5mi9,

            block_hash: EEG2EMx3b4Xb8hrKDs5d5bi4GJ1MDJxz8x7muV6fz6Md,

            logs: [],

            receipt_ids: [

                4i3mDCiPe6upjL4iZzUajPoJa6UQpXMNnhKEiyMBYexE,

            ],

            gas_burnt: NearGas {

                inner: 2622501265884,

            },

            tokens_burnt: 262250126588400000000,

            executor_id: AccountId(

                "dev-20231025181719-16401030437149",

            ),

            status: SuccessValue(''),

        },

        ExecutionOutcome {

            transaction_hash: 4i3mDCiPe6upjL4iZzUajPoJa6UQpXMNnhKEiyMBYexE,

            block_hash: 4iJ7G5QB95NeGvDDTQa4g2fEyDv5q6FtJKiLUtuEdTN5,

            logs: [],

            receipt_ids: [],

            gas_burnt: NearGas {

                inner: 223182562500,

            },

            tokens_burnt: 0,

            executor_id: AccountId(

                "dev-20231025181719-16401030437149",

            ),

            status: SuccessValue(''),

        },

    ],

    status: SuccessValue(''),

}

total_gas_burnt_usd: 0.0035227725061722477

outcome (success: true):

  outcome_gas_burnt_usd: 0.001621855708811736

  outcome_tokens_burnt_usd: 0.001621855708811736

outcome (success: true):

  outcome_gas_burnt_usd: 0.0017518308456105117

  outcome_tokens_burnt_usd: 0.0017518308456105122

outcome (success: true):

  outcome_gas_burnt_usd: 0.00014908595175

  outcome_tokens_burnt_usd: 0.0





roll_within_bounds(contract, ''): ExecutionFinalResult {

    total_gas_burnt: NearGas {

        inner: 5459725500163,

    },

    transaction: ExecutionOutcome {

        transaction_hash: 76aZ2eF1DR7ootgh3fwCmXyfm4iY8T4xuMXnvgiXCA8n,

        block_hash: 4xJAo1inxsSBT2FKbkEbmhGSz8Y9H57JL3xnCNCg374g,

        logs: [],

        receipt_ids: [

            8jkRf1jFBqo2dkASYHC6NV5TzbQ7dXHLudDeF7uYtTv2,

        ],

        gas_burnt: NearGas {

            inner: 2428032796700,

        },

        tokens_burnt: 242803279670000000000,

        executor_id: AccountId(

            "dev-20231025181719-16401030437149",

        ),

        status: SuccessReceiptId(8jkRf1jFBqo2dkASYHC6NV5TzbQ7dXHLudDeF7uYtTv2),

    },

    receipts: [

        ExecutionOutcome {

            transaction_hash: 8jkRf1jFBqo2dkASYHC6NV5TzbQ7dXHLudDeF7uYtTv2,

            block_hash: 4xJAo1inxsSBT2FKbkEbmhGSz8Y9H57JL3xnCNCg374g,

            logs: [

                "roll_within_bounds / max: 2000 / rolls: [1, 5, 4, 4, 5]",

                "accumulateDiceRolls / power: 4 / acc: 0 / roll: 1",

                "accumulateDiceRolls / power: 3 / acc: 0 / roll: 5 / value: 864",

                "accumulateDiceRolls / power: 2 / acc: 864 / roll: 4 / value: 108",

                "accumulateDiceRolls / power: 1 / acc: 972 / roll: 4 / value: 18",

                "accumulateDiceRolls / power: 0 / acc: 990 / roll: 5 / value: 4",

                "accumulateDiceRolls / power: -1 / acc: 994",

            ],

            receipt_ids: [

                8pv89ZeEopnepEXLta5LmJ2zN4qQp7xfUxVZRS2bZiPX,

            ],

            gas_burnt: NearGas {

                inner: 2808510140963,

            },

            tokens_burnt: 280851014096300000000,

            executor_id: AccountId(

                "dev-20231025181719-16401030437149",

            ),

            status: SuccessValue('995'),

        },

        ExecutionOutcome {

            transaction_hash: 8pv89ZeEopnepEXLta5LmJ2zN4qQp7xfUxVZRS2bZiPX,

            block_hash: Fc6qJVCNbYJRW8pjchbK9pydphRj1LLamgrq3858XufC,

            logs: [],

            receipt_ids: [],

            gas_burnt: NearGas {

                inner: 223182562500,

            },

            tokens_burnt: 0,

            executor_id: AccountId(

                "dev-20231025181719-16401030437149",

            ),

            status: SuccessValue(''),

        },

    ],

    status: SuccessValue('995'),

}

total_gas_burnt_usd: 0.0036470966341088837

outcome (success: true):

  outcome_gas_burnt_usd: 0.0016219259081956

  outcome_tokens_burnt_usd: 0.0016219259081956

outcome (success: true):

  outcome_gas_burnt_usd: 0.001876084774163284

  outcome_tokens_burnt_usd: 0.001876084774163284

outcome (success: true):

  outcome_gas_burnt_usd: 0.00014908595175

  outcome_tokens_burnt_usd: 0.0





roll_within_bounds_borsh(contract, ''): ExecutionFinalResult {

    total_gas_burnt: NearGas {

        inner: 5470222311500,

    },

    transaction: ExecutionOutcome {

        transaction_hash: 6umBkVsoiAXaYPLSmbcc2uKgLNDBgTzAgZST58GxBVZE,

        block_hash: AkHWLnyzHmN4Hto7fXTvVaaBMXSHZNp4yKiPRwDAGCY2,

        logs: [],

        receipt_ids: [

            9LFp8L7ehA6LXGk7U3poE9jjFyxWMEabgmLBWP78VANo,

        ],

        gas_burnt: NearGas {

            inner: 2428037268568,

        },

        tokens_burnt: 242803726856800000000,

        executor_id: AccountId(

            "dev-20231025181719-16401030437149",

        ),

        status: SuccessReceiptId(9LFp8L7ehA6LXGk7U3poE9jjFyxWMEabgmLBWP78VANo),

    },

    receipts: [

        ExecutionOutcome {

            transaction_hash: 9LFp8L7ehA6LXGk7U3poE9jjFyxWMEabgmLBWP78VANo,

            block_hash: AkHWLnyzHmN4Hto7fXTvVaaBMXSHZNp4yKiPRwDAGCY2,

            logs: [

                "roll_within_bounds / max: 2000 / rolls: [2, 2, 6, 4, 5]",

                "accumulateDiceRolls / power: 4 / acc: 0 / roll: 2 / value: 1296",

                "accumulateDiceRolls / power: 3 / acc: 1296 / roll: 2 / value: 216",

                "accumulateDiceRolls / power: 2 / acc: 1512 / roll: 6 / value: 180",

                "accumulateDiceRolls / power: 1 / acc: 1692 / roll: 4 / value: 18",

                "accumulateDiceRolls / power: 0 / acc: 1710 / roll: 5 / value: 4",

                "accumulateDiceRolls / power: -1 / acc: 1714",

            ],

            receipt_ids: [

                E55bgBEtQdfj9pt619FS7LtsnCGVNAZf7YFBdRnXKHLD,

            ],

            gas_burnt: NearGas {

                inner: 2819002480432,

            },

            tokens_burnt: 281900248043200000000,

            executor_id: AccountId(

                "dev-20231025181719-16401030437149",

            ),

            status: SuccessValue(AbMGAAA=),

        },

        ExecutionOutcome {

            transaction_hash: E55bgBEtQdfj9pt619FS7LtsnCGVNAZf7YFBdRnXKHLD,

            block_hash: FqaAAjSngEfSFR6BAYVivNKFGCqvE4jj9JLXuGkaKB1U,

            logs: [],

            receipt_ids: [],

            gas_burnt: NearGas {

                inner: 223182562500,

            },

            tokens_burnt: 0,

            executor_id: AccountId(

                "dev-20231025181719-16401030437149",

            ),

            status: SuccessValue(''),

        },

    ],

    status: SuccessValue(AbMGAAA=),

}

total_gas_burnt_usd: 0.0036541085040819993

outcome (success: true):

  outcome_gas_burnt_usd: 0.0016219288954034238

  outcome_tokens_burnt_usd: 0.001621928895403424

outcome (success: true):

  outcome_gas_burnt_usd: 0.0018830936569285757

  outcome_tokens_burnt_usd: 0.0018830936569285757

outcome (success: true):

  outcome_gas_burnt_usd: 0.00014908595175

  outcome_tokens_burnt_usd: 0.0

n: Some(

    Some(

        1715,

    ),

)





generate_random_number(contract, ''): ExecutionFinalResult {

    total_gas_burnt: NearGas {

        inner: 9411176500640,

    },

    transaction: ExecutionOutcome {

        transaction_hash: 5pCnN8gv2h94Bwhqzah3qvU7JBjZmVz2XXWJHAMpdcAk,

        block_hash: 91jUwWCjZZr5AKoCZ44YAwq9ELUESZKBy4U9EVNSwVYG,

        logs: [],

        receipt_ids: [

            JCYNj8R9dvVA7nYK3H1MgHYM8M3uzK2GGgRn9cFadETE,

        ],

        gas_burnt: NearGas {

            inner: 2427997021756,

        },

        tokens_burnt: 242799702175600000000,

        executor_id: AccountId(

            "dev-20231025181719-16401030437149",

        ),

        status: SuccessReceiptId(JCYNj8R9dvVA7nYK3H1MgHYM8M3uzK2GGgRn9cFadETE),

    },

    receipts: [

        ExecutionOutcome {

            transaction_hash: JCYNj8R9dvVA7nYK3H1MgHYM8M3uzK2GGgRn9cFadETE,

            block_hash: 91jUwWCjZZr5AKoCZ44YAwq9ELUESZKBy4U9EVNSwVYG,

            logs: [

                "generate_random_number / max: 2000 / seed: [235, 215, 48, 111, 83, 92, 155, 136, 178, 113, 141, 147, 106, 112, 18, 173, 231, 13, 181, 86, 114, 182, 159, 75, 51, 146, 224, 233, 171, 198, 155, 50] / block_timestamp: 1698257843889215147 / signer_account_id: \"dev-20231025181719-16401030437149\" / account_balance: 99996914293411177505960000 / block_height: 25 / epoch_height: 1 / entropy: [235, 215, 48, 111, 83, 92, 155, 136, 178, 113, 141, 147, 106, 112, 18, 173, 231, 13, 181, 86, 114, 182, 159, 75, 51, 146, 224, 233, 171, 198, 155, 50, 171, 150, 9, 226, 130, 108, 145, 23, 100, 101, 118, 45, 50, 48, 50, 51, 49, 48, 50, 53, 49, 56, 49, 55, 49, 57, 45, 49, 54, 52, 48, 49, 48, 51, 48, 52, 51, 55, 49, 52, 57, 64, 48, 231, 92, 16, 11, 0, 150, 43, 183, 82, 0, 0, 0, 0, 0, 25, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0] / hash_vec: [199, 133, 189, 101, 58, 92, 182, 131, 73, 76, 89, 28, 98, 76, 47, 140, 24, 28, 216, 78, 33, 87, 47, 118, 90, 166, 117, 225, 70, 43, 69, 62, 203, 29, 8, 194, 138, 84, 63, 21, 198, 208, 161, 107, 65, 242, 229, 127, 202, 19, 204, 220, 176, 224, 79, 186, 247, 157, 33, 26, 31, 150, 111, 115] / rolls_list: [1, 1, 3, 5, 4, 2, 2, 5, 1, 4, 5, 4, 2, 4, 5, 2, 6, 4, 6, 6, 3, 3, 5, 4, 6, 4, 3, 3, 4, 1, 3, 2, 5, 5, 2, 2, 6, 6, 3, 3, 6, 4, 5, 5, 5, 2, 1, 1, 4, 1, 6, 4, 2, 2, 1, 6, 1, 1, 3, 2, 1, 6, 3, 1]",

                "calculateDiceCount / max: 2000 / n: 5 / p: 7776",

                "accumulateDiceRolls / power: 4 / acc: 0 / roll: 4 / value: 3888",

                "accumulateDiceRolls / power: 3 / acc: 3888 / roll: 5 / value: 864",

                "accumulateDiceRolls / power: 2 / acc: 4752 / roll: 3 / value: 72",

                "accumulateDiceRolls / power: 1 / acc: 4824 / roll: 1",

                "accumulateDiceRolls / power: 0 / acc: 4824 / roll: 1",

                "accumulateDiceRolls / power: -1 / acc: 4824",

                "accumulateDiceRolls / power: 4 / acc: 0 / roll: 2 / value: 1296",

                "accumulateDiceRolls / power: 3 / acc: 1296 / roll: 4 / value: 648",

                "accumulateDiceRolls / power: 2 / acc: 1944 / roll: 5 / value: 144",

                "accumulateDiceRolls / power: 1 / acc: 2088 / roll: 3 / value: 12",

                "accumulateDiceRolls / power: 0 / acc: 2100 / roll: 1",

                "accumulateDiceRolls / power: -1 / acc: 2100",

                "accumulateDiceRolls / power: 4 / acc: 0 / roll: 2 / value: 1296",

                "accumulateDiceRolls / power: 3 / acc: 1296 / roll: 2 / value: 216",

                "accumulateDiceRolls / power: 2 / acc: 1512 / roll: 4 / value: 108",

                "accumulateDiceRolls / power: 1 / acc: 1620 / roll: 5 / value: 24",

                "accumulateDiceRolls / power: 0 / acc: 1644 / roll: 3 / value: 2",

                "accumulateDiceRolls / power: -1 / acc: 1646",

            ],

            receipt_ids: [

                A78oETbu1QPbdcKaia2XyVwbrZwo5T5AiQjKwZ3Em8Ha,

            ],

            gas_burnt: NearGas {

                inner: 6759996916384,

            },

            tokens_burnt: 675999691638400000000,

            executor_id: AccountId(

                "dev-20231025181719-16401030437149",

            ),

            status: SuccessValue('1647'),

        },

        ExecutionOutcome {

            transaction_hash: A78oETbu1QPbdcKaia2XyVwbrZwo5T5AiQjKwZ3Em8Ha,

            block_hash: 6B4UxJhbscXRoU1U9WXzighh5qpPskkU1qFpPWePBBFv,

            logs: [],

            receipt_ids: [],

            gas_burnt: NearGas {

                inner: 223182562500,

            },

            tokens_burnt: 0,

            executor_id: AccountId(

                "dev-20231025181719-16401030437149",

            ),

            status: SuccessValue(''),

        },

    ],

    status: SuccessValue('1647'),

}

total_gas_burnt_usd: 0.00628666590242752

outcome (success: true):

  outcome_gas_burnt_usd: 0.001621902010533008

  outcome_tokens_burnt_usd: 0.0016219020105330078

outcome (success: true):

  outcome_gas_burnt_usd: 0.004515677940144512

  outcome_tokens_burnt_usd: 0.004515677940144511

outcome (success: true):

  outcome_gas_burnt_usd: 0.00014908595175

  outcome_tokens_burnt_usd: 0.0

n: 1647

In [ ]:
{ . "$ScriptDir/../apps/perf/build.ps1" } | Invoke-Block
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60

00:00:00 #2 [Debug] executeAsync / options: { Command =

   "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" port=13805"

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = Some <fun:main@450-1020> }

00:00:00 #3 [Debug] > pwd: C:\home\git\polyglot\apps\perf

00:00:00 #4 [Debug] > dll_path: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release

00:00:00 #5 [Debug] runWithTimeoutAsync / timeout: 500

00:00:00 #6 [Verbose] waitForPortAccess / port: 13805 / retry: 0

00:00:01 #7 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:

00:00:01 #8 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0

00:00:01 #9 [Debug] > Server bound to: http://localhost:13805

00:00:01 #10 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 Perf.dib""

  WorkingDirectory = None

  CancellationToken = Some System.Threading.CancellationToken

  OnLine = None }

00:00:04 #11 [Debug] >

00:00:04 #12 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:04 #13 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:04 #14 [Debug] > │ ## Perf (Polyglot)                                                           │

00:00:04 #15 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:04 #16 [Debug] >

00:00:04 #17 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:04 #18 [Debug] > // // test

00:00:04 #19 [Debug] >

00:00:04 #20 [Debug] > open testing

00:00:04 #21 [Debug] > open benchmark

00:00:08 #22 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1417-3331-3167-3593b8204adb\main.spi

00:00:11 #23 [Debug] >

00:00:11 #24 [Debug] > ╭─[ 6.73s - stdout ]───────────────────────────────────────────────────────────╮

00:00:11 #25 [Debug] > │ ()                                                                           │

00:00:11 #26 [Debug] > │                                                                              │

00:00:11 #27 [Debug] > │                                                                              │

00:00:11 #28 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:11 #29 [Debug] >

00:00:11 #30 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:11 #31 [Debug] > inl (/@) x = listm'.(/@) x

00:00:11 #32 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1417-3705-0508-0d64370019c6\main.spi

00:00:11 #33 [Debug] >

00:00:11 #34 [Debug] > ╭─[ 158.67ms - stdout ]────────────────────────────────────────────────────────╮

00:00:11 #35 [Debug] > │ ()                                                                           │

00:00:11 #36 [Debug] > │                                                                              │

00:00:11 #37 [Debug] > │                                                                              │

00:00:11 #38 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:11 #39 [Debug] >

00:00:11 #40 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:11 #41 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:11 #42 [Debug] > │ ## TestCaseResult                                                            │

00:00:11 #43 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:11 #44 [Debug] >

00:00:11 #45 [Debug] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:11 #46 [Debug] > type TestCaseResult =

00:00:11 #47 [Debug] >     {

00:00:11 #48 [Debug] >         Input: string

00:00:11 #49 [Debug] >         Expected: string

00:00:11 #50 [Debug] >         Result: string

00:00:11 #51 [Debug] >         TimeList: int64 list

00:00:11 #52 [Debug] >     }

00:00:11 #53 [Debug] >

00:00:11 #54 [Debug] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:00:11 #55 [Debug] > #r

00:00:11 #56 [Debug] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A

00:00:11 #57 [Debug] > spNetCore.Html.Abstractions.dll"

00:00:11 #58 [Debug] > #r

00:00:11 #59 [Debug] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

00:00:11 #60 [Debug] > otNet.Interactive.dll"

00:00:11 #61 [Debug] > #r

00:00:11 #62 [Debug] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

00:00:11 #63 [Debug] > otNet.Interactive.FSharp.dll"

00:00:11 #64 [Debug] > #r

00:00:11 #65 [Debug] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

00:00:11 #66 [Debug] > otNet.Interactive.Formatting.dll"

00:00:11 #67 [Debug] > open System

00:00:11 #68 [Debug] > open System.IO

00:00:11 #69 [Debug] > open System.Text

00:00:11 #70 [Debug] > open Microsoft.DotNet.Interactive.Formatting

00:00:12 #71 [Debug] >

00:00:12 #72 [Debug] > ── fsharp - import ─────────────────────────────────────────────────────────────

00:00:12 #73 [Debug] > #r

00:00:12 #74 [Debug] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

00:00:12 #75 [Debug] > otNet.Interactive.FSharp.dll"

00:00:12 #76 [Debug] > open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers

00:00:12 #77 [Debug] > #r

00:00:12 #78 [Debug] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D

00:00:12 #79 [Debug] > otNet.Interactive.dll"

00:00:12 #80 [Debug] > open type Microsoft.DotNet.Interactive.Kernel

00:00:13 #81 [Debug] >

00:00:13 #82 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:13 #83 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:13 #84 [Debug] > │ ## run                                                                       │

00:00:13 #85 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:13 #86 [Debug] >

00:00:13 #87 [Debug] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:13 #88 [Debug] > let run count (solutions: (string * ('TInput -> 'TExpected)) list) (input,

00:00:13 #89 [Debug] > expected) =

00:00:13 #90 [Debug] >     let inputStr =

00:00:13 #91 [Debug] >         match box input with

00:00:13 #92 [Debug] >         | :? System.Collections.ICollection as input ->

00:00:13 #93 [Debug] >             System.Linq.Enumerable.Cast<obj> input

00:00:13 #94 [Debug] >             |> Seq.map string

00:00:13 #95 [Debug] >             |> String.concat ","

00:00:13 #96 [Debug] >         | _ -> input.ToString ()

00:00:13 #97 [Debug] >

00:00:13 #98 [Debug] >     printfn ""

00:00:13 #99 [Debug] >     printfn $"Solution: {inputStr}  "

00:00:13 #100 [Debug] >

00:00:13 #101 [Debug] >     let performanceInvoke (fn: unit -> 'T) =

00:00:13 #102 [Debug] >         GC.Collect ()

00:00:13 #103 [Debug] >         let stopwatch = System.Diagnostics.Stopwatch ()

00:00:13 #104 [Debug] >         stopwatch.Start ()

00:00:13 #105 [Debug] >         let time1 = stopwatch.ElapsedMilliseconds

00:00:13 #106 [Debug] >

00:00:13 #107 [Debug] >         let result =

00:00:13 #108 [Debug] >             [[| 0 .. count |]]

00:00:13 #109 [Debug] >             |> Array.Parallel.map (fun _ ->

00:00:13 #110 [Debug] >                 fn ()

00:00:13 #111 [Debug] >             )

00:00:13 #112 [Debug] >             |> Array.last

00:00:13 #113 [Debug] >

00:00:13 #114 [Debug] >         let time2 = stopwatch.ElapsedMilliseconds - time1

00:00:13 #115 [Debug] >

00:00:13 #116 [Debug] >         result, time2

00:00:13 #117 [Debug] >

00:00:13 #118 [Debug] >     let resultsWithTime =

00:00:13 #119 [Debug] >         solutions

00:00:13 #120 [Debug] >         |> List.mapi (fun i (testName, solution) ->

00:00:13 #121 [Debug] >             let result, time = performanceInvoke (fun () -> solution input)

00:00:13 #122 [Debug] >             printfn $"Test case %d{i + 1}. %s{testName}. Time: %A{time}  "

00:00:13 #123 [Debug] >             result, time

00:00:13 #124 [Debug] >         )

00:00:13 #125 [Debug] >

00:00:13 #126 [Debug] >

00:00:13 #127 [Debug] >     match resultsWithTime |> List.map fst with

00:00:13 #128 [Debug] >     | ([[]] | [[ _ ]]) -> ()

00:00:13 #129 [Debug] >     | (head :: tail) when tail |> List.forall ((=) head) -> ()

00:00:13 #130 [Debug] >     | results -> failwithf $"Challenge error: %A{results}"

00:00:13 #131 [Debug] >

00:00:13 #132 [Debug] >     {

00:00:13 #133 [Debug] >         Input = inputStr

00:00:13 #134 [Debug] >         Expected = expected.ToString ()

00:00:13 #135 [Debug] >         Result = resultsWithTime |> Seq.map fst |> Seq.head |> fun x ->

00:00:13 #136 [Debug] > x.ToString ()

00:00:13 #137 [Debug] >         TimeList = resultsWithTime |> List.map snd

00:00:13 #138 [Debug] >     }

00:00:14 #139 [Debug] >

00:00:14 #140 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:14 #141 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:14 #142 [Debug] > │ ## runAll                                                                    │

00:00:14 #143 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:14 #144 [Debug] >

00:00:14 #145 [Debug] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:14 #146 [Debug] > let runAll testName count (solutions: (string * ('TInput -> 'TExpected)) list)

00:00:14 #147 [Debug] > testCases =

00:00:14 #148 [Debug] >     printfn ""

00:00:14 #149 [Debug] >     printfn ""

00:00:14 #150 [Debug] >     printfn $"Test: {testName}"

00:00:14 #151 [Debug] >     testCases

00:00:14 #152 [Debug] >     |> Seq.map (run count solutions)

00:00:14 #153 [Debug] >     |> Seq.toList

00:00:14 #154 [Debug] >

00:00:14 #155 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:14 #156 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:14 #157 [Debug] > │ ## sortResultList                                                            │

00:00:14 #158 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:14 #159 [Debug] >

00:00:14 #160 [Debug] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:14 #161 [Debug] > let sortResultList resultList =

00:00:14 #162 [Debug] >     let table =

00:00:14 #163 [Debug] >         let rows =

00:00:14 #164 [Debug] >             resultList

00:00:14 #165 [Debug] >             |> List.map (fun result ->

00:00:14 #166 [Debug] >                 let best =

00:00:14 #167 [Debug] >                     result.TimeList

00:00:14 #168 [Debug] >                     |> List.mapi (fun i time ->

00:00:14 #169 [Debug] >                         i + 1, time

00:00:14 #170 [Debug] >                     )

00:00:14 #171 [Debug] >                     |> List.sortBy snd

00:00:14 #172 [Debug] >                     |> List.head

00:00:14 #173 [Debug] >                     |> fun x -> x.ToString ()

00:00:14 #174 [Debug] >                 let row =

00:00:14 #175 [Debug] >                     [[

00:00:14 #176 [Debug] >                         result.Input

00:00:14 #177 [Debug] >                         result.Expected

00:00:14 #178 [Debug] >                         result.Result

00:00:14 #179 [Debug] >                         best

00:00:14 #180 [Debug] >                     ]]

00:00:14 #181 [Debug] >                 let color =

00:00:14 #182 [Debug] >                     match result.Expected = result.Result with

00:00:14 #183 [Debug] >                     | true -> Some ConsoleColor.DarkGreen

00:00:14 #184 [Debug] >                     | false -> Some ConsoleColor.DarkRed

00:00:14 #185 [Debug] >                 row, color

00:00:14 #186 [Debug] >             )

00:00:14 #187 [Debug] >         let header =

00:00:14 #188 [Debug] >             [[

00:00:14 #189 [Debug] >                 [[

00:00:14 #190 [Debug] >                     "Input"

00:00:14 #191 [Debug] >                     "Expected"

00:00:14 #192 [Debug] >                     "Result"

00:00:14 #193 [Debug] >                     "Best"

00:00:14 #194 [Debug] >                 ]]

00:00:14 #195 [Debug] >                 [[

00:00:14 #196 [Debug] >                     "---"

00:00:14 #197 [Debug] >                     "---"

00:00:14 #198 [Debug] >                     "---"

00:00:14 #199 [Debug] >                     "---"

00:00:14 #200 [Debug] >                 ]]

00:00:14 #201 [Debug] >             ]]

00:00:14 #202 [Debug] >             |> List.map (fun row -> row, None)

00:00:14 #203 [Debug] >         header @ rows

00:00:14 #204 [Debug] >

00:00:14 #205 [Debug] >     let formattedTable =

00:00:14 #206 [Debug] >         let lengthMap =

00:00:14 #207 [Debug] >             table

00:00:14 #208 [Debug] >             |> List.map fst

00:00:14 #209 [Debug] >             |> List.transpose

00:00:14 #210 [Debug] >             |> List.map (fun column ->

00:00:14 #211 [Debug] >                 column

00:00:14 #212 [Debug] >                 |> List.map String.length

00:00:14 #213 [Debug] >                 |> List.sortDescending

00:00:14 #214 [Debug] >                 |> List.tryHead

00:00:14 #215 [Debug] >                 |> Option.defaultValue 0

00:00:14 #216 [Debug] >             )

00:00:14 #217 [Debug] >             |> List.indexed

00:00:14 #218 [Debug] >             |> Map.ofList

00:00:14 #219 [Debug] >         table

00:00:14 #220 [Debug] >         |> List.map (fun (row, color) ->

00:00:14 #221 [Debug] >             let newRow =

00:00:14 #222 [Debug] >                 row

00:00:14 #223 [Debug] >                 |> List.mapi (fun i cell ->

00:00:14 #224 [Debug] >                     cell.PadRight lengthMap.[[i]]

00:00:14 #225 [Debug] >                 )

00:00:14 #226 [Debug] >             newRow, color

00:00:14 #227 [Debug] >         )

00:00:14 #228 [Debug] >

00:00:14 #229 [Debug] >     printfn ""

00:00:14 #230 [Debug] >     formattedTable

00:00:14 #231 [Debug] >     |> List.iter (fun (row, color) ->

00:00:14 #232 [Debug] >         match color with

00:00:14 #233 [Debug] >         | Some color -> Console.ForegroundColor <- color

00:00:14 #234 [Debug] >         | None -> Console.ResetColor ()

00:00:14 #235 [Debug] >

00:00:14 #236 [Debug] >         printfn "%s" (String.Join ("\t| ", row))

00:00:14 #237 [Debug] >

00:00:14 #238 [Debug] >         Console.ResetColor ()

00:00:14 #239 [Debug] >     )

00:00:14 #240 [Debug] >

00:00:14 #241 [Debug] >     let averages =

00:00:14 #242 [Debug] >         resultList

00:00:14 #243 [Debug] >         |> List.map (fun result -> result.TimeList |> List.map float)

00:00:14 #244 [Debug] >         |> List.transpose

00:00:14 #245 [Debug] >         |> List.map List.average

00:00:14 #246 [Debug] >         |> List.map int64

00:00:14 #247 [Debug] >         |> List.indexed

00:00:14 #248 [Debug] >

00:00:14 #249 [Debug] >     printfn ""

00:00:14 #250 [Debug] >     printfn "Average Ranking  "

00:00:14 #251 [Debug] >     averages

00:00:14 #252 [Debug] >     |> List.sortBy snd

00:00:14 #253 [Debug] >     |> List.iter (fun (i, avg) ->

00:00:14 #254 [Debug] >         printfn $"Test case %d{i + 1}. Average Time: %A{avg}  "

00:00:14 #255 [Debug] >     )

00:00:14 #256 [Debug] >

00:00:14 #257 [Debug] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:14 #258 [Debug] > let mutable _count =

00:00:14 #259 [Debug] >     if ("CI" |> System.Environment.GetEnvironmentVariable |> fun x -> $"%A{x}")

00:00:14 #260 [Debug] > <> "<null>"

00:00:14 #261 [Debug] >     then 2000000

00:00:14 #262 [Debug] >     else 2000

00:00:14 #263 [Debug] >

00:00:14 #264 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:14 #265 [Debug] > inl is_fast () =

00:00:14 #266 [Debug] >     false

00:00:14 #267 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1417-4053-5346-59360ffb4180\main.spi

00:00:14 #268 [Debug] >

00:00:14 #269 [Debug] > ╭─[ 206.65ms - stdout ]────────────────────────────────────────────────────────╮

00:00:14 #270 [Debug] > │ ()                                                                           │

00:00:14 #271 [Debug] > │                                                                              │

00:00:14 #272 [Debug] > │                                                                              │

00:00:14 #273 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:14 #274 [Debug] >

00:00:14 #275 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:14 #276 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:14 #277 [Debug] > │ ## empty3Tests                                                               │

00:00:14 #278 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:14 #279 [Debug] >

00:00:14 #280 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:14 #281 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:14 #282 [Debug] > │ Test: Empty3                                                                 │

00:00:14 #283 [Debug] > │                                                                              │

00:00:14 #284 [Debug] > │ Solution: (a, a)                                                             │

00:00:14 #285 [Debug] > │ Test case 1. A. Time: 91L                                                    │

00:00:14 #286 [Debug] > │                                                                              │

00:00:14 #287 [Debug] > │ Solution: (a, a)                                                             │

00:00:14 #288 [Debug] > │ Test case 1. A. Time: 56L                                                    │

00:00:14 #289 [Debug] > │                                                                              │

00:00:14 #290 [Debug] > │ Input  | Expected      | Result | Best                                       │

00:00:14 #291 [Debug] > │ ---    | ---           | ---    | ---                                        │

00:00:14 #292 [Debug] > │ (a, a) | a             | a      | (1, 91)                                    │

00:00:14 #293 [Debug] > │ (a, a) | a             | a      | (1, 56)                                    │

00:00:14 #294 [Debug] > │                                                                              │

00:00:14 #295 [Debug] > │ Averages                                                                     │

00:00:14 #296 [Debug] > │ Test case 1. Average Time: 73L                                               │

00:00:14 #297 [Debug] > │                                                                              │

00:00:14 #298 [Debug] > │ Ranking                                                                      │

00:00:14 #299 [Debug] > │ Test case 1. Average Time: 73L                                               │

00:00:14 #300 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:14 #301 [Debug] >

00:00:14 #302 [Debug] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:14 #303 [Debug] > //// test

00:00:14 #304 [Debug] >

00:00:14 #305 [Debug] > let solutions = [[

00:00:14 #306 [Debug] >     "A",

00:00:14 #307 [Debug] >     fun (a, _b) ->

00:00:14 #308 [Debug] >         a

00:00:14 #309 [Debug] > ]]

00:00:14 #310 [Debug] > let testCases = seq {

00:00:14 #311 [Debug] >     ("a", "a"), "a"

00:00:14 #312 [Debug] >     ("a", "a"), "a"

00:00:14 #313 [Debug] > }

00:00:14 #314 [Debug] > let rec empty3Tests = runAll (nameof empty3Tests) _count solutions testCases

00:00:14 #315 [Debug] > empty3Tests

00:00:14 #316 [Debug] > |> sortResultList

00:00:15 #317 [Debug] >

00:00:15 #318 [Debug] > ╭─[ 356.25ms - stdout ]────────────────────────────────────────────────────────╮

00:00:15 #319 [Debug] > │                                                                              │

00:00:15 #320 [Debug] > │                                                                              │

00:00:15 #321 [Debug] > │ Test: empty3Tests                                                            │

00:00:15 #322 [Debug] > │                                                                              │

00:00:15 #323 [Debug] > │ Solution: (a, a)                                                             │

00:00:15 #324 [Debug] > │ Test case 1. A. Time: 1L                                                     │

00:00:15 #325 [Debug] > │                                                                              │

00:00:15 #326 [Debug] > │ Solution: (a, a)                                                             │

00:00:15 #327 [Debug] > │ Test case 1. A. Time: 0L                                                     │

00:00:15 #328 [Debug] > │                                                                              │

00:00:15 #329 [Debug] > │ Input 	| Expected	| Result	| Best                                                  │

00:00:15 #330 [Debug] > │ ---   	| ---     	| ---   	| ---                                                   │

00:00:15 #331 [Debug] > │ (a, a)	| a       	| a     	| (1, 1)                                                │

00:00:15 #332 [Debug] > │ (a, a)	| a       	| a     	| (1, 0)                                                │

00:00:15 #333 [Debug] > │                                                                              │

00:00:15 #334 [Debug] > │ Average Ranking                                                              │

00:00:15 #335 [Debug] > │ Test case 1. Average Time: 0L                                                │

00:00:15 #336 [Debug] > │                                                                              │

00:00:15 #337 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #338 [Debug] >

00:00:15 #339 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:15 #340 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:15 #341 [Debug] > │ ## empty2Tests                                                               │

00:00:15 #342 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #343 [Debug] >

00:00:15 #344 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:15 #345 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:15 #346 [Debug] > │ Test: Empty2                                                                 │

00:00:15 #347 [Debug] > │                                                                              │

00:00:15 #348 [Debug] > │ Solution: (a, a)                                                             │

00:00:15 #349 [Debug] > │ Test case 1. A. Time: 59L                                                    │

00:00:15 #350 [Debug] > │                                                                              │

00:00:15 #351 [Debug] > │ Solution: (a, a)                                                             │

00:00:15 #352 [Debug] > │ Test case 1. A. Time: 53L                                                    │

00:00:15 #353 [Debug] > │                                                                              │

00:00:15 #354 [Debug] > │ Input   | Expected        | Result  | Best                                   │

00:00:15 #355 [Debug] > │ ---     | ---             | ---     | ---                                    │

00:00:15 #356 [Debug] > │ (a, a)  | a               | a       | (1, 59)                                │

00:00:15 #357 [Debug] > │ (a, a)  | a               | a       | (1, 53)                                │

00:00:15 #358 [Debug] > │                                                                              │

00:00:15 #359 [Debug] > │ Averages                                                                     │

00:00:15 #360 [Debug] > │ Test case 1. Average Time: 56L                                               │

00:00:15 #361 [Debug] > │                                                                              │

00:00:15 #362 [Debug] > │ Ranking                                                                      │

00:00:15 #363 [Debug] > │ Test case 1. Average Time: 56L                                               │

00:00:15 #364 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #365 [Debug] >

00:00:15 #366 [Debug] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:15 #367 [Debug] > //// test

00:00:15 #368 [Debug] >

00:00:15 #369 [Debug] > let solutions = [[

00:00:15 #370 [Debug] >     "A",

00:00:15 #371 [Debug] >     fun (a, _b) ->

00:00:15 #372 [Debug] >         a

00:00:15 #373 [Debug] > ]]

00:00:15 #374 [Debug] > let testCases = seq {

00:00:15 #375 [Debug] >     ("a", "a"), "a"

00:00:15 #376 [Debug] >     ("a", "a"), "a"

00:00:15 #377 [Debug] > }

00:00:15 #378 [Debug] > let rec empty2Tests = runAll (nameof empty2Tests) _count solutions testCases

00:00:15 #379 [Debug] > empty2Tests

00:00:15 #380 [Debug] > |> sortResultList

00:00:15 #381 [Debug] >

00:00:15 #382 [Debug] > ╭─[ 287.89ms - stdout ]────────────────────────────────────────────────────────╮

00:00:15 #383 [Debug] > │                                                                              │

00:00:15 #384 [Debug] > │                                                                              │

00:00:15 #385 [Debug] > │ Test: empty2Tests                                                            │

00:00:15 #386 [Debug] > │                                                                              │

00:00:15 #387 [Debug] > │ Solution: (a, a)                                                             │

00:00:15 #388 [Debug] > │ Test case 1. A. Time: 0L                                                     │

00:00:15 #389 [Debug] > │                                                                              │

00:00:15 #390 [Debug] > │ Solution: (a, a)                                                             │

00:00:15 #391 [Debug] > │ Test case 1. A. Time: 0L                                                     │

00:00:15 #392 [Debug] > │                                                                              │

00:00:15 #393 [Debug] > │ Input 	| Expected	| Result	| Best                                                  │

00:00:15 #394 [Debug] > │ ---   	| ---     	| ---   	| ---                                                   │

00:00:15 #395 [Debug] > │ (a, a)	| a       	| a     	| (1, 0)                                                │

00:00:15 #396 [Debug] > │ (a, a)	| a       	| a     	| (1, 0)                                                │

00:00:15 #397 [Debug] > │                                                                              │

00:00:15 #398 [Debug] > │ Average Ranking                                                              │

00:00:15 #399 [Debug] > │ Test case 1. Average Time: 0L                                                │

00:00:15 #400 [Debug] > │                                                                              │

00:00:15 #401 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #402 [Debug] >

00:00:15 #403 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:15 #404 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:15 #405 [Debug] > │ ## emptyTests                                                                │

00:00:15 #406 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #407 [Debug] >

00:00:15 #408 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:15 #409 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:15 #410 [Debug] > │ Test: Empty                                                                  │

00:00:15 #411 [Debug] > │                                                                              │

00:00:15 #412 [Debug] > │ Solution: 0                                                                  │

00:00:15 #413 [Debug] > │ Test case 1. A. Time: 61L                                                    │

00:00:15 #414 [Debug] > │                                                                              │

00:00:15 #415 [Debug] > │ Solution: 2                                                                  │

00:00:15 #416 [Debug] > │ Test case 1. A. Time: 62L                                                    │

00:00:15 #417 [Debug] > │                                                                              │

00:00:15 #418 [Debug] > │ Solution: 5                                                                  │

00:00:15 #419 [Debug] > │ Test case 1. A. Time: 70L                                                    │

00:00:15 #420 [Debug] > │                                                                              │

00:00:15 #421 [Debug] > │ Input   | Expected        | Result  | Best                                   │

00:00:15 #422 [Debug] > │ ---     | ---             | ---     | ---                                    │

00:00:15 #423 [Debug] > │ 0       | 0               | 0       | (1, 61)                                │

00:00:15 #424 [Debug] > │ 2       | 2               | 2       | (1, 62)                                │

00:00:15 #425 [Debug] > │ 5       | 5               | 5       | (1, 70)                                │

00:00:15 #426 [Debug] > │                                                                              │

00:00:15 #427 [Debug] > │ Averages                                                                     │

00:00:15 #428 [Debug] > │ Test case 1. Average Time: 64L                                               │

00:00:15 #429 [Debug] > │                                                                              │

00:00:15 #430 [Debug] > │ Ranking                                                                      │

00:00:15 #431 [Debug] > │ Test case 1. Average Time: 64L                                               │

00:00:15 #432 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #433 [Debug] >

00:00:15 #434 [Debug] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:15 #435 [Debug] > //// test

00:00:15 #436 [Debug] >

00:00:15 #437 [Debug] > let solutions = [[

00:00:15 #438 [Debug] >     "A",

00:00:15 #439 [Debug] >     fun n ->

00:00:15 #440 [Debug] >         n + 0

00:00:15 #441 [Debug] > ]]

00:00:15 #442 [Debug] > let testCases = seq {

00:00:15 #443 [Debug] >     0, 0

00:00:15 #444 [Debug] >     2, 2

00:00:15 #445 [Debug] >     5, 5

00:00:15 #446 [Debug] > }

00:00:15 #447 [Debug] > let rec emptyTests = runAll (nameof emptyTests) _count solutions testCases

00:00:15 #448 [Debug] > emptyTests

00:00:15 #449 [Debug] > |> sortResultList

00:00:15 #450 [Debug] >

00:00:15 #451 [Debug] > ╭─[ 410.92ms - stdout ]────────────────────────────────────────────────────────╮

00:00:15 #452 [Debug] > │                                                                              │

00:00:15 #453 [Debug] > │                                                                              │

00:00:15 #454 [Debug] > │ Test: emptyTests                                                             │

00:00:15 #455 [Debug] > │                                                                              │

00:00:15 #456 [Debug] > │ Solution: 0                                                                  │

00:00:15 #457 [Debug] > │ Test case 1. A. Time: 2L                                                     │

00:00:15 #458 [Debug] > │                                                                              │

00:00:15 #459 [Debug] > │ Solution: 2                                                                  │

00:00:15 #460 [Debug] > │ Test case 1. A. Time: 0L                                                     │

00:00:15 #461 [Debug] > │                                                                              │

00:00:15 #462 [Debug] > │ Solution: 5                                                                  │

00:00:15 #463 [Debug] > │ Test case 1. A. Time: 0L                                                     │

00:00:15 #464 [Debug] > │                                                                              │

00:00:15 #465 [Debug] > │ Input	| Expected	| Result	| Best                                                   │

00:00:15 #466 [Debug] > │ ---  	| ---     	| ---   	| ---                                                    │

00:00:15 #467 [Debug] > │ 0    	| 0       	| 0     	| (1, 2)                                                 │

00:00:15 #468 [Debug] > │ 2    	| 2       	| 2     	| (1, 0)                                                 │

00:00:15 #469 [Debug] > │ 5    	| 5       	| 5     	| (1, 0)                                                 │

00:00:15 #470 [Debug] > │                                                                              │

00:00:15 #471 [Debug] > │ Average Ranking                                                              │

00:00:15 #472 [Debug] > │ Test case 1. Average Time: 0L                                                │

00:00:15 #473 [Debug] > │                                                                              │

00:00:15 #474 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #475 [Debug] >

00:00:15 #476 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:15 #477 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:15 #478 [Debug] > │ ## uniqueLettersTests                                                        │

00:00:15 #479 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:15 #480 [Debug] >

00:00:15 #481 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:15 #482 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:15 #483 [Debug] > │ Test: UniqueLetters                                                          │

00:00:15 #484 [Debug] > │                                                                              │

00:00:15 #485 [Debug] > │ Solution: abc                                                                │

00:00:15 #486 [Debug] > │ Test case 1. A. Time: 1512L                                                  │

00:00:15 #487 [Debug] > │ Test case 2. B. Time: 1947L                                                  │

00:00:15 #488 [Debug] > │ Test case 3. C. Time: 2023L                                                  │

00:00:15 #489 [Debug] > │ Test case 4. D. Time: 1358L                                                  │

00:00:15 #490 [Debug] > │ Test case 5. E. Time: 1321L                                                  │

00:00:15 #491 [Debug] > │ Test case 6. F. Time: 1346L                                                  │

00:00:15 #492 [Debug] > │ Test case 7. G. Time: 1304L                                                  │

00:00:15 #493 [Debug] > │ Test case 8. H. Time: 1383L                                                  │

00:00:15 #494 [Debug] > │ Test case 9. I. Time: 1495L                                                  │

00:00:15 #495 [Debug] > │ Test case 10. J. Time: 1245L                                                 │

00:00:15 #496 [Debug] > │ Test case 11. K. Time: 1219L                                                 │

00:00:15 #497 [Debug] > │                                                                              │

00:00:15 #498 [Debug] > │ Solution: accabb                                                             │

00:00:15 #499 [Debug] > │ Test case 1. A. Time: 1648L                                                  │

00:00:15 #500 [Debug] > │ Test case 2. B. Time: 2061L                                                  │

00:00:15 #501 [Debug] > │ Test case 3. C. Time: 2413L                                                  │

00:00:15 #502 [Debug] > │ Test case 4. D. Time: 1561L                                                  │

00:00:15 #503 [Debug] > │ Test case 5. E. Time: 1593L                                                  │

00:00:15 #504 [Debug] > │ Test case 6. F. Time: 1518L                                                  │

00:00:15 #505 [Debug] > │ Test case 7. G. Time: 1415L                                                  │

00:00:15 #506 [Debug] > │ Test case 8. H. Time: 1510L                                                  │

00:00:15 #507 [Debug] > │ Test case 9. I. Time: 1445L                                                  │

00:00:15 #508 [Debug] > │ Test case 10. J. Time: 1636L                                                 │

00:00:15 #509 [Debug] > │ Test case 11. K. Time: 1317L                                                 │

00:00:15 #510 [Debug] > │                                                                              │

00:00:15 #511 [Debug] > │ Solution: pprrqqpp                                                           │

00:00:15 #512 [Debug] > │ Test case 1. A. Time: 2255L                                                  │

00:00:15 #513 [Debug] > │ Test case 2. B. Time: 2408L                                                  │

00:00:15 #514 [Debug] > │ Test case 3. C. Time: 2393L                                                  │

00:00:15 #515 [Debug] > │ Test case 4. D. Time: 1675L                                                  │

00:00:15 #516 [Debug] > │ Test case 5. E. Time: 1911L                                                  │

00:00:15 #517 [Debug] > │ Test case 6. F. Time: 2126L                                                  │

00:00:15 #518 [Debug] > │ Test case 7. G. Time: 1504L                                                  │

00:00:15 #519 [Debug] > │ Test case 8. H. Time: 1715L                                                  │

00:00:15 #520 [Debug] > │ Test case 9. I. Time: 1537L                                                  │

00:00:15 #521 [Debug] > │ Test case 10. J. Time: 1522L                                                 │

00:00:15 #522 [Debug] > │ Test case 11. K. Time: 1322L                                                 │

00:00:15 #523 [Debug] > │                                                                              │

00:00:15 #524 [Debug] > │ Solution:                                                                    │

00:00:15 #525 [Debug] > │ aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbb │

00:00:15 #526 [Debug] > │ bbb                                                                          │

00:00:15 #527 [Debug] > │ Test case 1. A. Time: 13073L                                                 │

00:00:15 #528 [Debug] > │ Test case 2. B. Time: 11519L                                                 │

00:00:15 #529 [Debug] > │ Test case 3. C. Time: 8373L                                                  │

00:00:15 #530 [Debug] > │ Test case 4. D. Time: 5860L                                                  │

00:00:15 #531 [Debug] > │ Test case 5. E. Time: 6490L                                                  │

00:00:15 #532 [Debug] > │ Test case 6. F. Time: 6325L                                                  │

00:00:15 #533 [Debug] > │ Test case 7. G. Time: 5799L                                                  │

00:00:15 #534 [Debug] > │ Test case 8. H. Time: 7099L                                                  │

00:00:15 #535 [Debug] > │ Test case 9. I. Time: 6133L                                                  │

00:00:15 #536 [Debug] > │ Test case 10. J. Time: 5993L                                                 │

00:00:15 #537 [Debug] > │ Test case 11. K. Time: 2040L                                                 │

00:00:15 #538 [Debug] > │                                                                              │

00:00:15 #539 [Debug] > │ Input                                                                        │

00:00:15 #540 [Debug] > │ | Expected        | Result  | Best                                           │

00:00:16 #541 [Debug] > │ ---                                                                          │

00:00:16 #542 [Debug] > │                                                                              │

00:00:16 #543 [Debug] > │ | ---             | ---     | ---                                            │

00:00:16 #544 [Debug] > │ abc                                                                          │

00:00:16 #545 [Debug] > │                                                                              │

00:00:16 #546 [Debug] > │ | abc             | abc     | (11, 1219)                                     │

00:00:16 #547 [Debug] > │ accabb                                                                       │

00:00:16 #548 [Debug] > │ | acb             | acb     | (11, 1317)                                     │

00:00:16 #549 [Debug] > │ pprrqqpp                                                                     │

00:00:16 #550 [Debug] > │ | prq             | prq     | (11, 1322)                                     │

00:00:16 #551 [Debug] > │ aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbb │

00:00:16 #552 [Debug] > │ bbb | acb             | acb     | (11, 2040)                                 │

00:00:16 #553 [Debug] > │                                                                              │

00:00:16 #554 [Debug] > │ Averages                                                                     │

00:00:16 #555 [Debug] > │ Test case 1. Average Time: 4622L                                             │

00:00:16 #556 [Debug] > │ Test case 2. Average Time: 4483L                                             │

00:00:16 #557 [Debug] > │ Test case 3. Average Time: 3800L                                             │

00:00:16 #558 [Debug] > │ Test case 4. Average Time: 2613L                                             │

00:00:16 #559 [Debug] > │ Test case 5. Average Time: 2828L                                             │

00:00:16 #560 [Debug] > │ Test case 6. Average Time: 2828L                                             │

00:00:16 #561 [Debug] > │ Test case 7. Average Time: 2505L                                             │

00:00:16 #562 [Debug] > │ Test case 8. Average Time: 2926L                                             │

00:00:16 #563 [Debug] > │ Test case 9. Average Time: 2652L                                             │

00:00:16 #564 [Debug] > │ Test case 10. Average Time: 2599L                                            │

00:00:16 #565 [Debug] > │ Test case 11. Average Time: 1474L                                            │

00:00:16 #566 [Debug] > │                                                                              │

00:00:16 #567 [Debug] > │ Ranking                                                                      │

00:00:16 #568 [Debug] > │ Test case 1. Average Time: 4622L                                             │

00:00:16 #569 [Debug] > │ Test case 2. Average Time: 4483L                                             │

00:00:16 #570 [Debug] > │ Test case 3. Average Time: 3800L                                             │

00:00:16 #571 [Debug] > │ Test case 8. Average Time: 2926L                                             │

00:00:16 #572 [Debug] > │ Test case 5. Average Time: 2828L                                             │

00:00:16 #573 [Debug] > │ Test case 6. Average Time: 2828L                                             │

00:00:16 #574 [Debug] > │ Test case 9. Average Time: 2652L                                             │

00:00:16 #575 [Debug] > │ Test case 4. Average Time: 2613L                                             │

00:00:16 #576 [Debug] > │ Test case 10. Average Time: 2599L                                            │

00:00:16 #577 [Debug] > │ Test case 7. Average Time: 2505L                                             │

00:00:16 #578 [Debug] > │ Test case 11. Average Time: 1474L                                            │

00:00:16 #579 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:16 #580 [Debug] >

00:00:16 #581 [Debug] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:16 #582 [Debug] > //// test

00:00:16 #583 [Debug] >

00:00:16 #584 [Debug] > let solutions = [[

00:00:16 #585 [Debug] >     "A",

00:00:16 #586 [Debug] >     fun input ->

00:00:16 #587 [Debug] >         input

00:00:16 #588 [Debug] >         |> Seq.toList

00:00:16 #589 [Debug] >         |> List.fold (fun acc x -> if List.contains x acc then acc else acc @ [[

00:00:16 #590 [Debug] > x ]]) [[]]

00:00:16 #591 [Debug] >         |> Seq.toArray

00:00:16 #592 [Debug] >         |> String

00:00:16 #593 [Debug] >

00:00:16 #594 [Debug] >     "B",

00:00:16 #595 [Debug] >     fun input ->

00:00:16 #596 [Debug] >         input

00:00:16 #597 [Debug] >         |> Seq.rev

00:00:16 #598 [Debug] >         |> fun list -> Seq.foldBack (fun x acc -> if List.contains x acc then

00:00:16 #599 [Debug] > acc else x :: acc) list [[]]

00:00:16 #600 [Debug] >         |> Seq.rev

00:00:16 #601 [Debug] >         |> Seq.toArray

00:00:16 #602 [Debug] >         |> String

00:00:16 #603 [Debug] >

00:00:16 #604 [Debug] >     "C",

00:00:16 #605 [Debug] >     fun input ->

00:00:16 #606 [Debug] >         input

00:00:16 #607 [Debug] >         |> Seq.rev

00:00:16 #608 [Debug] >         |> fun list -> Seq.foldBack (fun x (set, acc) -> if Set.contains x set

00:00:16 #609 [Debug] > then set, acc else set.Add x, x :: acc) list (Set.empty, [[]])

00:00:16 #610 [Debug] >         |> snd

00:00:16 #611 [Debug] >         |> Seq.rev

00:00:16 #612 [Debug] >         |> Seq.toArray

00:00:16 #613 [Debug] >         |> String

00:00:16 #614 [Debug] >

00:00:16 #615 [Debug] >     "D",

00:00:16 #616 [Debug] >     fun input ->

00:00:16 #617 [Debug] >         input

00:00:16 #618 [Debug] >         |> Seq.fold (fun (set, acc) x -> if Set.contains x set then set, acc

00:00:16 #619 [Debug] > else set.Add x, Array.append acc [[| x |]]) (Set.empty, [[||]])

00:00:16 #620 [Debug] >         |> snd

00:00:16 #621 [Debug] >         |> String

00:00:16 #622 [Debug] >

00:00:16 #623 [Debug] >     "E",

00:00:16 #624 [Debug] >     fun input ->

00:00:16 #625 [Debug] >         input

00:00:16 #626 [Debug] >         |> Seq.fold (fun (set, acc) x -> if Set.contains x set then set, acc

00:00:16 #627 [Debug] > else set.Add x, x :: acc) (Set.empty, [[]])

00:00:16 #628 [Debug] >         |> snd

00:00:16 #629 [Debug] >         |> List.rev

00:00:16 #630 [Debug] >         |> List.toArray

00:00:16 #631 [Debug] >         |> String

00:00:16 #632 [Debug] >

00:00:16 #633 [Debug] >     "F",

00:00:16 #634 [Debug] >     fun input ->

00:00:16 #635 [Debug] >         input

00:00:16 #636 [Debug] >         |> Seq.fold (fun (set, acc) x -> if Set.contains x set then set, acc

00:00:16 #637 [Debug] > else set.Add x, acc @ [[ x ]]) (Set.empty, [[]])

00:00:16 #638 [Debug] >         |> snd

00:00:16 #639 [Debug] >         |> List.toArray

00:00:16 #640 [Debug] >         |> String

00:00:16 #641 [Debug] >

00:00:16 #642 [Debug] >     "G",

00:00:16 #643 [Debug] >     fun input ->

00:00:16 #644 [Debug] >         input

00:00:16 #645 [Debug] >         |> Seq.fold (fun (set, acc) x -> if Set.contains x set then set, acc

00:00:16 #646 [Debug] > else set.Add x, x :: acc) (Set.empty, [[]])

00:00:16 #647 [Debug] >         |> snd

00:00:16 #648 [Debug] >         |> List.toArray

00:00:16 #649 [Debug] >         |> Array.rev

00:00:16 #650 [Debug] >         |> String

00:00:16 #651 [Debug] >

00:00:16 #652 [Debug] >     "H",

00:00:16 #653 [Debug] >     fun input ->

00:00:16 #654 [Debug] >         input

00:00:16 #655 [Debug] >         |> Seq.toList

00:00:16 #656 [Debug] >         |> fun list ->

00:00:16 #657 [Debug] >             let rec loop set = function

00:00:16 #658 [Debug] >                 | head :: tail when Set.contains head set -> loop set tail

00:00:16 #659 [Debug] >                 | head :: tail -> (loop (set.Add head) tail) @ [[ head ]]

00:00:16 #660 [Debug] >                 | [[]] -> [[]]

00:00:16 #661 [Debug] >             loop Set.empty list

00:00:16 #662 [Debug] >             |> List.rev

00:00:16 #663 [Debug] >         |> List.toArray

00:00:16 #664 [Debug] >         |> String

00:00:16 #665 [Debug] >

00:00:16 #666 [Debug] >     "I",

00:00:16 #667 [Debug] >     fun input ->

00:00:16 #668 [Debug] >         input

00:00:16 #669 [Debug] >         |> Seq.toList

00:00:16 #670 [Debug] >         |> fun list ->

00:00:16 #671 [Debug] >             let rec loop set = function

00:00:16 #672 [Debug] >                 | head :: tail when Set.contains head set -> loop set tail

00:00:16 #673 [Debug] >                 | head :: tail -> loop (set.Add head) tail |> Array.append [[|

00:00:16 #674 [Debug] > head |]]

00:00:16 #675 [Debug] >                 | [[]] -> [[||]]

00:00:16 #676 [Debug] >             loop Set.empty list

00:00:16 #677 [Debug] >         |> String

00:00:16 #678 [Debug] >

00:00:16 #679 [Debug] >     "J",

00:00:16 #680 [Debug] >     fun input ->

00:00:16 #681 [Debug] >         input

00:00:16 #682 [Debug] >         |> Seq.toList

00:00:16 #683 [Debug] >         |> fun list ->

00:00:16 #684 [Debug] >             let rec loop set = function

00:00:16 #685 [Debug] >                 | head :: tail when Set.contains head set -> loop set tail

00:00:16 #686 [Debug] >                 | head :: tail -> head :: loop (set.Add head) tail

00:00:16 #687 [Debug] >                 | [[]] -> [[]]

00:00:16 #688 [Debug] >             loop Set.empty list

00:00:16 #689 [Debug] >         |> List.toArray

00:00:16 #690 [Debug] >         |> String

00:00:16 #691 [Debug] >

00:00:16 #692 [Debug] >     "K",

00:00:16 #693 [Debug] >     fun input ->

00:00:16 #694 [Debug] >         input

00:00:16 #695 [Debug] >         |> Seq.distinct

00:00:16 #696 [Debug] >         |> Seq.toArray

00:00:16 #697 [Debug] >         |> String

00:00:16 #698 [Debug] > ]]

00:00:16 #699 [Debug] > let testCases = seq {

00:00:16 #700 [Debug] >     "abc", "abc"

00:00:16 #701 [Debug] >     "accabb", "acb"

00:00:16 #702 [Debug] >     "pprrqqpp", "prq"

00:00:16 #703 [Debug] >

00:00:16 #704 [Debug] > "aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbbbbb

00:00:16 #705 [Debug] > ", "acb"

00:00:16 #706 [Debug] > }

00:00:16 #707 [Debug] > let rec uniqueLettersTests = runAll (nameof uniqueLettersTests) _count solutions

00:00:16 #708 [Debug] > testCases

00:00:16 #709 [Debug] > uniqueLettersTests

00:00:16 #710 [Debug] > |> sortResultList

00:00:21 #711 [Debug] >

00:00:21 #712 [Debug] > ╭─[ 5.74s - stdout ]───────────────────────────────────────────────────────────╮

00:00:21 #713 [Debug] > │                                                                              │

00:00:21 #714 [Debug] > │                                                                              │

00:00:21 #715 [Debug] > │ Test: uniqueLettersTests                                                     │

00:00:21 #716 [Debug] > │                                                                              │

00:00:21 #717 [Debug] > │ Solution: abc                                                                │

00:00:21 #718 [Debug] > │ Test case 1. A. Time: 4L                                                     │

00:00:21 #719 [Debug] > │ Test case 2. B. Time: 4L                                                     │

00:00:21 #720 [Debug] > │ Test case 3. C. Time: 3L                                                     │

00:00:21 #721 [Debug] > │ Test case 4. D. Time: 2L                                                     │

00:00:21 #722 [Debug] > │ Test case 5. E. Time: 2L                                                     │

00:00:21 #723 [Debug] > │ Test case 6. F. Time: 2L                                                     │

00:00:21 #724 [Debug] > │ Test case 7. G. Time: 2L                                                     │

00:00:21 #725 [Debug] > │ Test case 8. H. Time: 3L                                                     │

00:00:21 #726 [Debug] > │ Test case 9. I. Time: 2L                                                     │

00:00:21 #727 [Debug] > │ Test case 10. J. Time: 2L                                                    │

00:00:21 #728 [Debug] > │ Test case 11. K. Time: 3L                                                    │

00:00:21 #729 [Debug] > │                                                                              │

00:00:21 #730 [Debug] > │ Solution: accabb                                                             │

00:00:21 #731 [Debug] > │ Test case 1. A. Time: 1L                                                     │

00:00:21 #732 [Debug] > │ Test case 2. B. Time: 2L                                                     │

00:00:21 #733 [Debug] > │ Test case 3. C. Time: 2L                                                     │

00:00:21 #734 [Debug] > │ Test case 4. D. Time: 1L                                                     │

00:00:21 #735 [Debug] > │ Test case 5. E. Time: 1L                                                     │

00:00:21 #736 [Debug] > │ Test case 6. F. Time: 1L                                                     │

00:00:21 #737 [Debug] > │ Test case 7. G. Time: 1L                                                     │

00:00:21 #738 [Debug] > │ Test case 8. H. Time: 0L                                                     │

00:00:21 #739 [Debug] > │ Test case 9. I. Time: 0L                                                     │

00:00:21 #740 [Debug] > │ Test case 10. J. Time: 0L                                                    │

00:00:21 #741 [Debug] > │ Test case 11. K. Time: 1L                                                    │

00:00:21 #742 [Debug] > │                                                                              │

00:00:21 #743 [Debug] > │ Solution: pprrqqpp                                                           │

00:00:21 #744 [Debug] > │ Test case 1. A. Time: 1L                                                     │

00:00:21 #745 [Debug] > │ Test case 2. B. Time: 1L                                                     │

00:00:21 #746 [Debug] > │ Test case 3. C. Time: 1L                                                     │

00:00:21 #747 [Debug] > │ Test case 4. D. Time: 1L                                                     │

00:00:21 #748 [Debug] > │ Test case 5. E. Time: 1L                                                     │

00:00:21 #749 [Debug] > │ Test case 6. F. Time: 1L                                                     │

00:00:21 #750 [Debug] > │ Test case 7. G. Time: 1L                                                     │

00:00:21 #751 [Debug] > │ Test case 8. H. Time: 1L                                                     │

00:00:21 #752 [Debug] > │ Test case 9. I. Time: 0L                                                     │

00:00:21 #753 [Debug] > │ Test case 10. J. Time: 1L                                                    │

00:00:21 #754 [Debug] > │ Test case 11. K. Time: 1L                                                    │

00:00:21 #755 [Debug] > │                                                                              │

00:00:21 #756 [Debug] > │ Solution:                                                                    │

00:00:21 #757 [Debug] > │ aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbb │

00:00:21 #758 [Debug] > │ bbb                                                                          │

00:00:21 #759 [Debug] > │ Test case 1. A. Time: 10L                                                    │

00:00:21 #760 [Debug] > │ Test case 2. B. Time: 10L                                                    │

00:00:21 #761 [Debug] > │ Test case 3. C. Time: 14L                                                    │

00:00:21 #762 [Debug] > │ Test case 4. D. Time: 9L                                                     │

00:00:21 #763 [Debug] > │ Test case 5. E. Time: 9L                                                     │

00:00:21 #764 [Debug] > │ Test case 6. F. Time: 10L                                                    │

00:00:21 #765 [Debug] > │ Test case 7. G. Time: 8L                                                     │

00:00:21 #766 [Debug] > │ Test case 8. H. Time: 8L                                                     │

00:00:21 #767 [Debug] > │ Test case 9. I. Time: 7L                                                     │

00:00:21 #768 [Debug] > │ Test case 10. J. Time: 9L                                                    │

00:00:21 #769 [Debug] > │ Test case 11. K. Time: 3L                                                    │

00:00:21 #770 [Debug] > │                                                                              │

00:00:21 #771 [Debug] > │ Input                                                                        │

00:00:21 #772 [Debug] > │ | Expected	| Result	| Best                                                       │

00:00:21 #773 [Debug] > │ ---                                                                          │

00:00:21 #774 [Debug] > │ | ---     	| ---   	| ---                                                        │

00:00:21 #775 [Debug] > │ abc                                                                          │

00:00:21 #776 [Debug] > │ | abc     	| abc   	| (4, 2)                                                     │

00:00:21 #777 [Debug] > │ accabb                                                                       │

00:00:21 #778 [Debug] > │ | acb     	| acb   	| (8, 0)                                                     │

00:00:21 #779 [Debug] > │ pprrqqpp                                                                     │

00:00:21 #780 [Debug] > │ | prq     	| prq   	| (9, 0)                                                     │

00:00:21 #781 [Debug] > │ aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbb │

00:00:21 #782 [Debug] > │ bbb	| acb     	| acb   	| (11, 3)                                                  │

00:00:21 #783 [Debug] > │                                                                              │

00:00:21 #784 [Debug] > │ Average Ranking                                                              │

00:00:21 #785 [Debug] > │ Test case 9. Average Time: 2L                                                │

00:00:21 #786 [Debug] > │ Test case 11. Average Time: 2L                                               │

00:00:21 #787 [Debug] > │ Test case 4. Average Time: 3L                                                │

00:00:21 #788 [Debug] > │ Test case 5. Average Time: 3L                                                │

00:00:21 #789 [Debug] > │ Test case 6. Average Time: 3L                                                │

00:00:21 #790 [Debug] > │ Test case 7. Average Time: 3L                                                │

00:00:21 #791 [Debug] > │ Test case 8. Average Time: 3L                                                │

00:00:21 #792 [Debug] > │ Test case 10. Average Time: 3L                                               │

00:00:21 #793 [Debug] > │ Test case 1. Average Time: 4L                                                │

00:00:21 #794 [Debug] > │ Test case 2. Average Time: 4L                                                │

00:00:21 #795 [Debug] > │ Test case 3. Average Time: 5L                                                │

00:00:21 #796 [Debug] > │                                                                              │

00:00:21 #797 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:21 #798 [Debug] >

00:00:21 #799 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:21 #800 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:21 #801 [Debug] > │ ## rotateStringsTests                                                        │

00:00:21 #802 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:21 #803 [Debug] >

00:00:21 #804 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:21 #805 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:21 #806 [Debug] > │ https://www.hackerrank.com/challenges/rotate-string/forum                    │

00:00:21 #807 [Debug] > │                                                                              │

00:00:21 #808 [Debug] > │ Test: RotateStrings                                                          │

00:00:21 #809 [Debug] > │                                                                              │

00:00:21 #810 [Debug] > │ Solution: abc                                                                │

00:00:21 #811 [Debug] > │ Test case 1. A. Time: 1842L                                                  │

00:00:21 #812 [Debug] > │ Test case 2. B. Time: 1846L                                                  │

00:00:21 #813 [Debug] > │ Test case 3. C. Time: 1936L                                                  │

00:00:21 #814 [Debug] > │ Test case 4. CA. Time: 2224L                                                 │

00:00:21 #815 [Debug] > │ Test case 5. CB. Time: 2329L                                                 │

00:00:21 #816 [Debug] > │ Test case 6. D. Time: 2474L                                                  │

00:00:21 #817 [Debug] > │ Test case 7. E. Time: 1664L                                                  │

00:00:21 #818 [Debug] > │ Test case 8. F. Time: 1517L                                                  │

00:00:21 #819 [Debug] > │ Test case 9. FA. Time: 1651L                                                 │

00:00:21 #820 [Debug] > │ Test case 10. FB. Time: 3764L                                                │

00:00:21 #821 [Debug] > │ Test case 11. FC. Time: 5415L                                                │

00:00:21 #822 [Debug] > │                                                                              │

00:00:21 #823 [Debug] > │ Solution: abcde                                                              │

00:00:21 #824 [Debug] > │ Test case 1. A. Time: 3356L                                                  │

00:00:21 #825 [Debug] > │ Test case 2. B. Time: 2592L                                                  │

00:00:21 #826 [Debug] > │ Test case 3. C. Time: 2346L                                                  │

00:00:21 #827 [Debug] > │ Test case 4. CA. Time: 2997L                                                 │

00:00:21 #828 [Debug] > │ Test case 5. CB. Time: 3061L                                                 │

00:00:21 #829 [Debug] > │ Test case 6. D. Time: 4051L                                                  │

00:00:21 #830 [Debug] > │ Test case 7. E. Time: 1905L                                                  │

00:00:21 #831 [Debug] > │ Test case 8. F. Time: 1771L                                                  │

00:00:21 #832 [Debug] > │ Test case 9. FA. Time: 2175L                                                 │

00:00:21 #833 [Debug] > │ Test case 10. FB. Time: 3275L                                                │

00:00:21 #834 [Debug] > │ Test case 11. FC. Time: 5266L                                                │

00:00:21 #835 [Debug] > │                                                                              │

00:00:21 #836 [Debug] > │ Solution: abcdefghi                                                          │

00:00:21 #837 [Debug] > │ Test case 1. A. Time: 4492L                                                  │

00:00:21 #838 [Debug] > │ Test case 2. B. Time: 3526L                                                  │

00:00:21 #839 [Debug] > │ Test case 3. C. Time: 3583L                                                  │

00:00:21 #840 [Debug] > │ Test case 4. CA. Time: 3711L                                                 │

00:00:21 #841 [Debug] > │ Test case 5. CB. Time: 4783L                                                 │

00:00:21 #842 [Debug] > │ Test case 6. D. Time: 7557L                                                  │

00:00:21 #843 [Debug] > │ Test case 7. E. Time: 3452L                                                  │

00:00:21 #844 [Debug] > │ Test case 8. F. Time: 3050L                                                  │

00:00:21 #845 [Debug] > │ Test case 9. FA. Time: 3275L                                                 │

00:00:21 #846 [Debug] > │ Test case 10. FB. Time: 4635L                                                │

00:00:21 #847 [Debug] > │ Test case 11. FC. Time: 5616L                                                │

00:00:21 #848 [Debug] > │                                                                              │

00:00:21 #849 [Debug] > │ Solution: abab                                                               │

00:00:21 #850 [Debug] > │ Test case 1. A. Time: 2093L                                                  │

00:00:21 #851 [Debug] > │ Test case 2. B. Time: 1843L                                                  │

00:00:21 #852 [Debug] > │ Test case 3. C. Time: 1746L                                                  │

00:00:21 #853 [Debug] > │ Test case 4. CA. Time: 2085L                                                 │

00:00:21 #854 [Debug] > │ Test case 5. CB. Time: 2139L                                                 │

00:00:21 #855 [Debug] > │ Test case 6. D. Time: 2095L                                                  │

00:00:21 #856 [Debug] > │ Test case 7. E. Time: 1723L                                                  │

00:00:21 #857 [Debug] > │ Test case 8. F. Time: 1558L                                                  │

00:00:21 #858 [Debug] > │ Test case 9. FA. Time: 1620L                                                 │

00:00:21 #859 [Debug] > │ Test case 10. FB. Time: 2319L                                                │

00:00:21 #860 [Debug] > │ Test case 11. FC. Time: 3918L                                                │

00:00:21 #861 [Debug] > │                                                                              │

00:00:21 #862 [Debug] > │ Solution: aa                                                                 │

00:00:21 #863 [Debug] > │ Test case 1. A. Time: 1107L                                                  │

00:00:21 #864 [Debug] > │ Test case 2. B. Time: 1241L                                                  │

00:00:21 #865 [Debug] > │ Test case 3. C. Time: 1183L                                                  │

00:00:21 #866 [Debug] > │ Test case 4. CA. Time: 1563L                                                 │

00:00:21 #867 [Debug] > │ Test case 5. CB. Time: 1525L                                                 │

00:00:21 #868 [Debug] > │ Test case 6. D. Time: 1591L                                                  │

00:00:21 #869 [Debug] > │ Test case 7. E. Time: 1327L                                                  │

00:00:21 #870 [Debug] > │ Test case 8. F. Time: 1151L                                                  │

00:00:21 #871 [Debug] > │ Test case 9. FA. Time: 1180L                                                 │

00:00:21 #872 [Debug] > │ Test case 10. FB. Time: 1733L                                                │

00:00:21 #873 [Debug] > │ Test case 11. FC. Time: 2817L                                                │

00:00:21 #874 [Debug] > │                                                                              │

00:00:21 #875 [Debug] > │ Solution: z                                                                  │

00:00:21 #876 [Debug] > │ Test case 1. A. Time: 816L                                                   │

00:00:21 #877 [Debug] > │ Test case 2. B. Time: 745L                                                   │

00:00:21 #878 [Debug] > │ Test case 3. C. Time: 928L                                                   │

00:00:21 #879 [Debug] > │ Test case 4. CA. Time: 1375L                                                 │

00:00:21 #880 [Debug] > │ Test case 5. CB. Time: 1029L                                                 │

00:00:21 #881 [Debug] > │ Test case 6. D. Time: 852L                                                   │

00:00:21 #882 [Debug] > │ Test case 7. E. Time: 712L                                                   │

00:00:21 #883 [Debug] > │ Test case 8. F. Time: 263L                                                   │

00:00:21 #884 [Debug] > │ Test case 9. FA. Time: 232L                                                  │

00:00:21 #885 [Debug] > │ Test case 10. FB. Time: 773L                                                 │

00:00:21 #886 [Debug] > │ Test case 11. FC. Time: 1789L                                                │

00:00:21 #887 [Debug] > │                                                                              │

00:00:21 #888 [Debug] > │ Input           | Expected                                                   │

00:00:21 #889 [Debug] > │                                                                              │

00:00:21 #890 [Debug] > │ | Result                                                                     │

00:00:21 #891 [Debug] > │                                                                              │

00:00:21 #892 [Debug] > │ | Best                                                                       │

00:00:21 #893 [Debug] > │ ---             | ---                                                        │

00:00:21 #894 [Debug] > │                                                                              │

00:00:21 #895 [Debug] > │ | ---                                                                        │

00:00:21 #896 [Debug] > │                                                                              │

00:00:21 #897 [Debug] > │ | ---                                                                        │

00:00:21 #898 [Debug] > │ abc             | bca cab abc                                                │

00:00:21 #899 [Debug] > │                                                                              │

00:00:21 #900 [Debug] > │ | bca cab abc                                                                │

00:00:21 #901 [Debug] > │                                                                              │

00:00:21 #902 [Debug] > │ | (8, 1517)                                                                  │

00:00:21 #903 [Debug] > │ abcde           | bcdea cdeab deabc eabcd abcde                              │

00:00:21 #904 [Debug] > │ | bcdea cdeab deabc eabcd abcde                                              │

00:00:21 #905 [Debug] > │ | (8, 1771)                                                                  │

00:00:21 #906 [Debug] > │ abcdefghi       | bcdefghia cdefghiab defghiabc efghiabcd fghiabcde          │

00:00:21 #907 [Debug] > │ ghiabcdef hiabcdefg iabcdefgh abcdefghi       | bcdefghia cdefghiab          │

00:00:21 #908 [Debug] > │ defghiabc efghiabcd fghiabcde ghiabcdef hiabcdefg iabcdefgh abcdefghi        │

00:00:21 #909 [Debug] > │ | (8, 3050)                                                                  │

00:00:21 #910 [Debug] > │ abab            | baba abab baba abab                                        │

00:00:21 #911 [Debug] > │                                                                              │

00:00:21 #912 [Debug] > │ | baba abab baba abab                                                        │

00:00:21 #913 [Debug] > │                                                                              │

00:00:21 #914 [Debug] > │ | (8, 1558)                                                                  │

00:00:21 #915 [Debug] > │ aa              | aa aa                                                      │

00:00:21 #916 [Debug] > │                                                                              │

00:00:21 #917 [Debug] > │ | aa aa                                                                      │

00:00:21 #918 [Debug] > │                                                                              │

00:00:21 #919 [Debug] > │ | (1, 1107)                                                                  │

00:00:21 #920 [Debug] > │ z               | z                                                          │

00:00:21 #921 [Debug] > │                                                                              │

00:00:21 #922 [Debug] > │ | z                                                                          │

00:00:21 #923 [Debug] > │                                                                              │

00:00:21 #924 [Debug] > │ | (9, 232)                                                                   │

00:00:21 #925 [Debug] > │                                                                              │

00:00:21 #926 [Debug] > │ Averages                                                                     │

00:00:21 #927 [Debug] > │ Test case 1. Average Time: 2284L                                             │

00:00:21 #928 [Debug] > │ Test case 2. Average Time: 1965L                                             │

00:00:21 #929 [Debug] > │ Test case 3. Average Time: 1953L                                             │

00:00:21 #930 [Debug] > │ Test case 4. Average Time: 2325L                                             │

00:00:21 #931 [Debug] > │ Test case 5. Average Time: 2477L                                             │

00:00:21 #932 [Debug] > │ Test case 6. Average Time: 3103L                                             │

00:00:21 #933 [Debug] > │ Test case 7. Average Time: 1797L                                             │

00:00:21 #934 [Debug] > │ Test case 8. Average Time: 1551L                                             │

00:00:21 #935 [Debug] > │ Test case 9. Average Time: 1688L                                             │

00:00:21 #936 [Debug] > │ Test case 10. Average Time: 2749L                                            │

00:00:21 #937 [Debug] > │ Test case 11. Average Time: 4136L                                            │

00:00:21 #938 [Debug] > │                                                                              │

00:00:21 #939 [Debug] > │ Ranking                                                                      │

00:00:21 #940 [Debug] > │ Test case 11. Average Time: 4136L                                            │

00:00:21 #941 [Debug] > │ Test case 6. Average Time: 3103L                                             │

00:00:21 #942 [Debug] > │ Test case 10. Average Time: 2749L                                            │

00:00:21 #943 [Debug] > │ Test case 5. Average Time: 2477L                                             │

00:00:21 #944 [Debug] > │ Test case 4. Average Time: 2325L                                             │

00:00:21 #945 [Debug] > │ Test case 1. Average Time: 2284L                                             │

00:00:21 #946 [Debug] > │ Test case 2. Average Time: 1965L                                             │

00:00:21 #947 [Debug] > │ Test case 3. Average Time: 1953L                                             │

00:00:21 #948 [Debug] > │ Test case 7. Average Time: 1797L                                             │

00:00:21 #949 [Debug] > │ Test case 9. Average Time: 1688L                                             │

00:00:21 #950 [Debug] > │ Test case 8. Average Time: 1551L                                             │

00:00:21 #951 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:21 #952 [Debug] >

00:00:21 #953 [Debug] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:00:21 #954 [Debug] > //// test

00:00:21 #955 [Debug] >

00:00:21 #956 [Debug] > let solutions = [[

00:00:21 #957 [Debug] >     "A",

00:00:21 #958 [Debug] >     fun (input: string) ->

00:00:21 #959 [Debug] >         let resultList =

00:00:21 #960 [Debug] >             List.fold (fun acc x ->

00:00:21 #961 [Debug] >                 let rotate (text: string) (letter: string) = text.Substring (1,

00:00:21 #962 [Debug] > input.Length - 1) + letter

00:00:21 #963 [Debug] >                 [[ rotate (if acc.IsEmpty then input else acc.Head) (string x)

00:00:21 #964 [Debug] > ]] @ acc

00:00:21 #965 [Debug] >             ) [[]] (Seq.toList input)

00:00:21 #966 [Debug] >

00:00:21 #967 [Debug] >         List.foldBack (fun acc x -> x + acc + " ") resultList ""

00:00:21 #968 [Debug] >         |> fun x -> x.TrimEnd ()

00:00:21 #969 [Debug] >

00:00:21 #970 [Debug] >     "B",

00:00:21 #971 [Debug] >     fun input ->

00:00:21 #972 [Debug] >         input

00:00:21 #973 [Debug] >         |> Seq.toList

00:00:21 #974 [Debug] >         |> List.fold (fun (acc: string list) letter ->

00:00:21 #975 [Debug] >             let last =

00:00:21 #976 [Debug] >                 if acc.IsEmpty

00:00:21 #977 [Debug] >                 then input

00:00:21 #978 [Debug] >                 else acc.Head

00:00:21 #979 [Debug] >

00:00:21 #980 [Debug] >             let item = last.[[1 .. input.Length - 1]] + string letter

00:00:21 #981 [Debug] >

00:00:21 #982 [Debug] >             item :: acc

00:00:21 #983 [Debug] >         ) [[]]

00:00:21 #984 [Debug] >         |> List.rev

00:00:21 #985 [Debug] >         |> String.concat " "

00:00:21 #986 [Debug] >

00:00:21 #987 [Debug] >     "C",

00:00:21 #988 [Debug] >     fun input ->

00:00:21 #989 [Debug] >         input

00:00:21 #990 [Debug] >         |> Seq.toList

00:00:21 #991 [Debug] >         |> List.fold (fun (acc: string list) letter -> acc.Head.[[ 1 ..

00:00:21 #992 [Debug] > input.Length - 1 ]] + string letter :: acc) [[ input ]]

00:00:21 #993 [Debug] >         |> List.rev

00:00:21 #994 [Debug] >         |> List.skip 1

00:00:21 #995 [Debug] >         |> String.concat " "

00:00:21 #996 [Debug] >

00:00:21 #997 [Debug] >     "CA",

00:00:21 #998 [Debug] >     fun input ->

00:00:21 #999 [Debug] >         input

00:00:21 #1000 [Debug] >         |> Seq.fold (fun (acc: string list) letter -> acc.Head.[[ 1 ..

00:00:21 #1001 [Debug] > input.Length - 1 ]] + string letter :: acc) [[ input ]]

00:00:21 #1002 [Debug] >         |> Seq.rev

00:00:21 #1003 [Debug] >         |> Seq.skip 1

00:00:21 #1004 [Debug] >         |> String.concat " "

00:00:21 #1005 [Debug] >

00:00:21 #1006 [Debug] >     "CB",

00:00:21 #1007 [Debug] >     fun input ->

00:00:21 #1008 [Debug] >         input

00:00:21 #1009 [Debug] >         |> Seq.toArray

00:00:21 #1010 [Debug] >         |> Array.fold (fun (acc: string[[]]) letter -> acc |> Array.append [[|

00:00:21 #1011 [Debug] > acc.[[0]].[[ 1 .. input.Length - 1 ]] + string letter |]]) [[| input |]]

00:00:21 #1012 [Debug] >         |> Array.rev

00:00:21 #1013 [Debug] >         |> Array.skip 1

00:00:21 #1014 [Debug] >         |> String.concat " "

00:00:21 #1015 [Debug] >

00:00:21 #1016 [Debug] >     "D",

00:00:21 #1017 [Debug] >     fun input ->

00:00:21 #1018 [Debug] >         input

00:00:21 #1019 [Debug] >         |> Seq.toList

00:00:21 #1020 [Debug] >         |> fun list ->

00:00:21 #1021 [Debug] >             let rec loop (acc: char list list) = function

00:00:21 #1022 [Debug] >                 | _ when acc.Length = list.Length -> acc

00:00:21 #1023 [Debug] >                 | head :: tail ->

00:00:21 #1024 [Debug] >                     let item = tail @ [[ head ]]

00:00:21 #1025 [Debug] >                     loop (item :: acc) item

00:00:21 #1026 [Debug] >                 | [[]] -> [[]]

00:00:21 #1027 [Debug] >             loop [[]] list

00:00:21 #1028 [Debug] >         |> List.rev

00:00:21 #1029 [Debug] >         |> List.map (List.toArray >> String)

00:00:21 #1030 [Debug] >         |> String.concat " "

00:00:21 #1031 [Debug] >

00:00:21 #1032 [Debug] >     "E",

00:00:21 #1033 [Debug] >     fun input ->

00:00:21 #1034 [Debug] >         input

00:00:21 #1035 [Debug] >         |> Seq.toList

00:00:21 #1036 [Debug] >         |> fun list ->

00:00:21 #1037 [Debug] >             let rec loop (last: string) = function

00:00:21 #1038 [Debug] >                 | head :: tail ->

00:00:21 #1039 [Debug] >                     let item = last.[[1 .. input.Length - 1]] + string head

00:00:21 #1040 [Debug] >                     item :: loop item tail

00:00:21 #1041 [Debug] >                 | [[]] -> [[]]

00:00:21 #1042 [Debug] >             loop input list

00:00:21 #1043 [Debug] >         |> String.concat " "

00:00:21 #1044 [Debug] >

00:00:21 #1045 [Debug] >     "F",

00:00:21 #1046 [Debug] >     fun input ->

00:00:21 #1047 [Debug] >         Array.singleton 0

00:00:21 #1048 [Debug] >         |> Array.append [[| 1 .. input.Length - 1 |]]

00:00:21 #1049 [Debug] >         |> Array.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])

00:00:21 #1050 [Debug] >         |> String.concat " "

00:00:21 #1051 [Debug] >

00:00:21 #1052 [Debug] >     "FA",

00:00:21 #1053 [Debug] >     fun input ->

00:00:21 #1054 [Debug] >         List.singleton 0

00:00:21 #1055 [Debug] >         |> List.append [[ 1 .. input.Length - 1 ]]

00:00:21 #1056 [Debug] >         |> List.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])

00:00:21 #1057 [Debug] >         |> String.concat " "

00:00:21 #1058 [Debug] >

00:00:21 #1059 [Debug] >     "FB",

00:00:21 #1060 [Debug] >     fun input ->

00:00:21 #1061 [Debug] >         Seq.singleton 0

00:00:21 #1062 [Debug] >         |> Seq.append (seq { 1 .. input.Length - 1 })

00:00:21 #1063 [Debug] >         |> Seq.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])

00:00:21 #1064 [Debug] >         |> String.concat " "

00:00:21 #1065 [Debug] >

00:00:21 #1066 [Debug] >     "FC",

00:00:21 #1067 [Debug] >     fun input ->

00:00:21 #1068 [Debug] >         Array.singleton 0

00:00:21 #1069 [Debug] >         |> Array.append [[| 1 .. input.Length - 1 |]]

00:00:21 #1070 [Debug] >         |> Array.Parallel.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])

00:00:21 #1071 [Debug] >         |> String.concat " "

00:00:21 #1072 [Debug] > ]]

00:00:21 #1073 [Debug] > let testCases = seq {

00:00:21 #1074 [Debug] >     "abc", "bca cab abc"

00:00:21 #1075 [Debug] >     "abcde", "bcdea cdeab deabc eabcd abcde"

00:00:21 #1076 [Debug] >     "abcdefghi", "bcdefghia cdefghiab defghiabc efghiabcd fghiabcde ghiabcdef

00:00:21 #1077 [Debug] > hiabcdefg iabcdefgh abcdefghi"

00:00:21 #1078 [Debug] >     "abab", "baba abab baba abab"

00:00:21 #1079 [Debug] >     "aa", "aa aa"

00:00:21 #1080 [Debug] >     "z", "z"

00:00:21 #1081 [Debug] > }

00:00:21 #1082 [Debug] > let rec rotateStringsTests = runAll (nameof rotateStringsTests) _count solutions

00:00:21 #1083 [Debug] > testCases

00:00:21 #1084 [Debug] > rotateStringsTests

00:00:21 #1085 [Debug] > |> sortResultList

00:00:30 #1086 [Debug] >

00:00:30 #1087 [Debug] > ╭─[ 8.71s - stdout ]───────────────────────────────────────────────────────────╮

00:00:30 #1088 [Debug] > │                                                                              │

00:00:30 #1089 [Debug] > │                                                                              │

00:00:30 #1090 [Debug] > │ Test: rotateStringsTests                                                     │

00:00:30 #1091 [Debug] > │                                                                              │

00:00:30 #1092 [Debug] > │ Solution: abc                                                                │

00:00:30 #1093 [Debug] > │ Test case 1. A. Time: 2L                                                     │

00:00:30 #1094 [Debug] > │ Test case 2. B. Time: 2L                                                     │

00:00:30 #1095 [Debug] > │ Test case 3. C. Time: 1L                                                     │

00:00:30 #1096 [Debug] > │ Test case 4. CA. Time: 3L                                                    │

00:00:30 #1097 [Debug] > │ Test case 5. CB. Time: 2L                                                    │

00:00:30 #1098 [Debug] > │ Test case 6. D. Time: 2L                                                     │

00:00:30 #1099 [Debug] > │ Test case 7. E. Time: 1L                                                     │

00:00:30 #1100 [Debug] > │ Test case 8. F. Time: 2L                                                     │

00:00:30 #1101 [Debug] > │ Test case 9. FA. Time: 2L                                                    │

00:00:30 #1102 [Debug] > │ Test case 10. FB. Time: 9L                                                   │

00:00:30 #1103 [Debug] > │ Test case 11. FC. Time: 9L                                                   │

00:00:30 #1104 [Debug] > │                                                                              │

00:00:30 #1105 [Debug] > │ Solution: abcde                                                              │

00:00:30 #1106 [Debug] > │ Test case 1. A. Time: 1L                                                     │

00:00:30 #1107 [Debug] > │ Test case 2. B. Time: 1L                                                     │

00:00:30 #1108 [Debug] > │ Test case 3. C. Time: 1L                                                     │

00:00:30 #1109 [Debug] > │ Test case 4. CA. Time: 1L                                                    │

00:00:30 #1110 [Debug] > │ Test case 5. CB. Time: 1L                                                    │

00:00:30 #1111 [Debug] > │ Test case 6. D. Time: 4L                                                     │

00:00:30 #1112 [Debug] > │ Test case 7. E. Time: 1L                                                     │

00:00:30 #1113 [Debug] > │ Test case 8. F. Time: 0L                                                     │

00:00:30 #1114 [Debug] > │ Test case 9. FA. Time: 1L                                                    │

00:00:30 #1115 [Debug] > │ Test case 10. FB. Time: 4L                                                   │

00:00:30 #1116 [Debug] > │ Test case 11. FC. Time: 5L                                                   │

00:00:30 #1117 [Debug] > │                                                                              │

00:00:30 #1118 [Debug] > │ Solution: abcdefghi                                                          │

00:00:30 #1119 [Debug] > │ Test case 1. A. Time: 4L                                                     │

00:00:30 #1120 [Debug] > │ Test case 2. B. Time: 3L                                                     │

00:00:30 #1121 [Debug] > │ Test case 3. C. Time: 1L                                                     │

00:00:30 #1122 [Debug] > │ Test case 4. CA. Time: 5L                                                    │

00:00:30 #1123 [Debug] > │ Test case 5. CB. Time: 1L                                                    │

00:00:30 #1124 [Debug] > │ Test case 6. D. Time: 8L                                                     │

00:00:30 #1125 [Debug] > │ Test case 7. E. Time: 1L                                                     │

00:00:30 #1126 [Debug] > │ Test case 8. F. Time: 1L                                                     │

00:00:30 #1127 [Debug] > │ Test case 9. FA. Time: 3L                                                    │

00:00:30 #1128 [Debug] > │ Test case 10. FB. Time: 2L                                                   │

00:00:30 #1129 [Debug] > │ Test case 11. FC. Time: 7L                                                   │

00:00:30 #1130 [Debug] > │                                                                              │

00:00:30 #1131 [Debug] > │ Solution: abab                                                               │

00:00:30 #1132 [Debug] > │ Test case 1. A. Time: 6L                                                     │

00:00:30 #1133 [Debug] > │ Test case 2. B. Time: 2L                                                     │

00:00:30 #1134 [Debug] > │ Test case 3. C. Time: 1L                                                     │

00:00:30 #1135 [Debug] > │ Test case 4. CA. Time: 2L                                                    │

00:00:30 #1136 [Debug] > │ Test case 5. CB. Time: 1L                                                    │

00:00:30 #1137 [Debug] > │ Test case 6. D. Time: 1L                                                     │

00:00:30 #1138 [Debug] > │ Test case 7. E. Time: 0L                                                     │

00:00:30 #1139 [Debug] > │ Test case 8. F. Time: 0L                                                     │

00:00:30 #1140 [Debug] > │ Test case 9. FA. Time: 1L                                                    │

00:00:30 #1141 [Debug] > │ Test case 10. FB. Time: 4L                                                   │

00:00:30 #1142 [Debug] > │ Test case 11. FC. Time: 6L                                                   │

00:00:30 #1143 [Debug] > │                                                                              │

00:00:30 #1144 [Debug] > │ Solution: aa                                                                 │

00:00:30 #1145 [Debug] > │ Test case 1. A. Time: 1L                                                     │

00:00:30 #1146 [Debug] > │ Test case 2. B. Time: 1L                                                     │

00:00:30 #1147 [Debug] > │ Test case 3. C. Time: 0L                                                     │

00:00:30 #1148 [Debug] > │ Test case 4. CA. Time: 1L                                                    │

00:00:30 #1149 [Debug] > │ Test case 5. CB. Time: 0L                                                    │

00:00:30 #1150 [Debug] > │ Test case 6. D. Time: 0L                                                     │

00:00:30 #1151 [Debug] > │ Test case 7. E. Time: 0L                                                     │

00:00:30 #1152 [Debug] > │ Test case 8. F. Time: 0L                                                     │

00:00:30 #1153 [Debug] > │ Test case 9. FA. Time: 0L                                                    │

00:00:30 #1154 [Debug] > │ Test case 10. FB. Time: 1L                                                   │

00:00:30 #1155 [Debug] > │ Test case 11. FC. Time: 4L                                                   │

00:00:30 #1156 [Debug] > │                                                                              │

00:00:30 #1157 [Debug] > │ Solution: z                                                                  │

00:00:30 #1158 [Debug] > │ Test case 1. A. Time: 0L                                                     │

00:00:30 #1159 [Debug] > │ Test case 2. B. Time: 0L                                                     │

00:00:30 #1160 [Debug] > │ Test case 3. C. Time: 0L                                                     │

00:00:30 #1161 [Debug] > │ Test case 4. CA. Time: 0L                                                    │

00:00:30 #1162 [Debug] > │ Test case 5. CB. Time: 0L                                                    │

00:00:30 #1163 [Debug] > │ Test case 6. D. Time: 0L                                                     │

00:00:30 #1164 [Debug] > │ Test case 7. E. Time: 0L                                                     │

00:00:30 #1165 [Debug] > │ Test case 8. F. Time: 0L                                                     │

00:00:30 #1166 [Debug] > │ Test case 9. FA. Time: 0L                                                    │

00:00:30 #1167 [Debug] > │ Test case 10. FB. Time: 0L                                                   │

00:00:30 #1168 [Debug] > │ Test case 11. FC. Time: 4L                                                   │

00:00:30 #1169 [Debug] > │                                                                              │

00:00:30 #1170 [Debug] > │ Input    	| Expected                                                           │

00:00:30 #1171 [Debug] > │                                                                              │

00:00:30 #1172 [Debug] > │ | Result                                                                     │

00:00:30 #1173 [Debug] > │                                                                              │

00:00:30 #1174 [Debug] > │ | Best                                                                       │

00:00:30 #1175 [Debug] > │ ---      	| ---                                                                │

00:00:30 #1176 [Debug] > │                                                                              │

00:00:30 #1177 [Debug] > │ | ---                                                                        │

00:00:30 #1178 [Debug] > │                                                                              │

00:00:30 #1179 [Debug] > │ | ---                                                                        │

00:00:30 #1180 [Debug] > │ abc      	| bca cab abc                                                        │

00:00:30 #1181 [Debug] > │                                                                              │

00:00:30 #1182 [Debug] > │ | bca cab abc                                                                │

00:00:30 #1183 [Debug] > │                                                                              │

00:00:30 #1184 [Debug] > │ | (3, 1)                                                                     │

00:00:30 #1185 [Debug] > │ abcde    	| bcdea cdeab deabc eabcd abcde                                      │

00:00:30 #1186 [Debug] > │ | bcdea cdeab deabc eabcd abcde                                              │

00:00:30 #1187 [Debug] > │ | (8, 0)                                                                     │

00:00:30 #1188 [Debug] > │ abcdefghi	| bcdefghia cdefghiab defghiabc efghiabcd fghiabcde ghiabcdef        │

00:00:30 #1189 [Debug] > │ hiabcdefg iabcdefgh abcdefghi	| bcdefghia cdefghiab defghiabc efghiabcd        │

00:00:30 #1190 [Debug] > │ fghiabcde ghiabcdef hiabcdefg iabcdefgh abcdefghi	| (3, 1)                     │

00:00:30 #1191 [Debug] > │ abab     	| baba abab baba abab                                                │

00:00:30 #1192 [Debug] > │ | baba abab baba abab                                                        │

00:00:30 #1193 [Debug] > │ | (7, 0)                                                                     │

00:00:30 #1194 [Debug] > │ aa       	| aa aa                                                              │

00:00:30 #1195 [Debug] > │                                                                              │

00:00:30 #1196 [Debug] > │ | aa aa                                                                      │

00:00:30 #1197 [Debug] > │                                                                              │

00:00:30 #1198 [Debug] > │ | (3, 0)                                                                     │

00:00:30 #1199 [Debug] > │ z        	| z                                                                  │

00:00:30 #1200 [Debug] > │                                                                              │

00:00:30 #1201 [Debug] > │ | z                                                                          │

00:00:30 #1202 [Debug] > │                                                                              │

00:00:30 #1203 [Debug] > │ | (1, 0)                                                                     │

00:00:30 #1204 [Debug] > │                                                                              │

00:00:30 #1205 [Debug] > │ Average Ranking                                                              │

00:00:30 #1206 [Debug] > │ Test case 3. Average Time: 0L                                                │

00:00:30 #1207 [Debug] > │ Test case 5. Average Time: 0L                                                │

00:00:30 #1208 [Debug] > │ Test case 7. Average Time: 0L                                                │

00:00:30 #1209 [Debug] > │ Test case 8. Average Time: 0L                                                │

00:00:30 #1210 [Debug] > │ Test case 2. Average Time: 1L                                                │

00:00:30 #1211 [Debug] > │ Test case 9. Average Time: 1L                                                │

00:00:30 #1212 [Debug] > │ Test case 1. Average Time: 2L                                                │

00:00:30 #1213 [Debug] > │ Test case 4. Average Time: 2L                                                │

00:00:30 #1214 [Debug] > │ Test case 6. Average Time: 2L                                                │

00:00:30 #1215 [Debug] > │ Test case 10. Average Time: 3L                                               │

00:00:30 #1216 [Debug] > │ Test case 11. Average Time: 5L                                               │

00:00:30 #1217 [Debug] > │                                                                              │

00:00:30 #1218 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:30 #1219 [Debug] >

00:00:30 #1220 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:30 #1221 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:30 #1222 [Debug] > │ ## rotate_strings_tests                                                      │

00:00:30 #1223 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:30 #1224 [Debug] >

00:00:30 #1225 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:30 #1226 [Debug] > // // test

00:00:30 #1227 [Debug] > // // timeout=60000

00:00:30 #1228 [Debug] > // // print_code=true

00:00:30 #1229 [Debug] >

00:00:30 #1230 [Debug] > inl get_solutions () =

00:00:30 #1231 [Debug] >     [[

00:00:30 #1232 [Debug] >         // "A",

00:00:30 #1233 [Debug] >         // fun (input : string) =>

00:00:30 #1234 [Debug] >         //     let resultList =

00:00:30 #1235 [Debug] >         //         List.fold (fun acc x =>

00:00:30 #1236 [Debug] >         //             let rotate (text : string) (letter : string) =

00:00:30 #1237 [Debug] > text.Substring (1, input.Length - 1) + letter

00:00:30 #1238 [Debug] >         //             [[ rotate (if acc.IsEmpty then input else acc.Head)

00:00:30 #1239 [Debug] > (string x) ]] /@ acc

00:00:30 #1240 [Debug] >         //         ) [[]] (Seq.toList input)

00:00:30 #1241 [Debug] >

00:00:30 #1242 [Debug] >         //     List.foldBack (fun acc x => x + acc + " ") resultList ""

00:00:30 #1243 [Debug] >         //     |> fun x => x.TrimEnd ()

00:00:30 #1244 [Debug] >

00:00:30 #1245 [Debug] >         // "B",

00:00:30 #1246 [Debug] >         // fun input =>

00:00:30 #1247 [Debug] >         //     input

00:00:30 #1248 [Debug] >         //     |> Seq.toList

00:00:30 #1249 [Debug] >         //     |> List.fold (fun (acc : string list) letter =>

00:00:30 #1250 [Debug] >         //         let last =

00:00:30 #1251 [Debug] >         //             if acc.IsEmpty

00:00:30 #1252 [Debug] >         //             then input

00:00:30 #1253 [Debug] >         //             else acc.Head

00:00:30 #1254 [Debug] >

00:00:30 #1255 [Debug] >         //         let item = last.[[1 .. input.Length - 1]] + string letter

00:00:30 #1256 [Debug] >

00:00:30 #1257 [Debug] >         //         item :: acc

00:00:30 #1258 [Debug] >         //     ) [[]]

00:00:30 #1259 [Debug] >         //     |> List.rev

00:00:30 #1260 [Debug] >         //     |> String.concat " "

00:00:30 #1261 [Debug] >

00:00:30 #1262 [Debug] >         // "C",

00:00:30 #1263 [Debug] >         // fun input =>

00:00:30 #1264 [Debug] >         //     input

00:00:30 #1265 [Debug] >         //     |> Seq.toList

00:00:30 #1266 [Debug] >         //     |> List.fold (fun (acc : list string) letter => acc.Head.[[ 1 ..

00:00:30 #1267 [Debug] > input.Length - 1 ]] + string letter :: acc) [[ input ]]

00:00:30 #1268 [Debug] >         //     |> List.rev

00:00:30 #1269 [Debug] >         //     |> List.skip 1

00:00:30 #1270 [Debug] >         //     |> String.concat " "

00:00:30 #1271 [Debug] >

00:00:30 #1272 [Debug] >         // "CA",

00:00:30 #1273 [Debug] >         // fun input =>

00:00:30 #1274 [Debug] >         //     input

00:00:30 #1275 [Debug] >         //     |> Seq.fold (fun (acc : list string) letter => acc.Head.[[ 1 ..

00:00:30 #1276 [Debug] > input.Length - 1 ]] + string letter :: acc) [[ input ]]

00:00:30 #1277 [Debug] >         //     |> Seq.rev

00:00:30 #1278 [Debug] >         //     |> Seq.skip 1

00:00:30 #1279 [Debug] >         //     |> String.concat " "

00:00:30 #1280 [Debug] >

00:00:30 #1281 [Debug] >         // "CB",

00:00:30 #1282 [Debug] >         // fun input =>

00:00:30 #1283 [Debug] >         //     input

00:00:30 #1284 [Debug] >         //     |> Seq.toArray

00:00:30 #1285 [Debug] >         //     |> Array.fold (fun (acc : a _ string) letter => acc |>

00:00:30 #1286 [Debug] > Array.append (a ;[[ acc.[[0]].[[ 1 .. input.Length - 1 ]] + string letter ]]))

00:00:30 #1287 [Debug] > (a ;[[ input ]])

00:00:30 #1288 [Debug] >         //     |> Array.rev

00:00:30 #1289 [Debug] >         //     |> Array.skip 1

00:00:30 #1290 [Debug] >         //     |> String.concat " "

00:00:30 #1291 [Debug] >

00:00:30 #1292 [Debug] >         // "D",

00:00:30 #1293 [Debug] >         // fun input =>

00:00:30 #1294 [Debug] >         //     input

00:00:30 #1295 [Debug] >         //     |> Seq.toList

00:00:30 #1296 [Debug] >         //     |> fun list =>

00:00:30 #1297 [Debug] >         //         let rec loop (acc : list (list char)) = function

00:00:30 #1298 [Debug] >         //             | _ when acc.Length = list.Length => acc

00:00:30 #1299 [Debug] >         //             | head :: tail =>

00:00:30 #1300 [Debug] >         //                 let item = tail /@ [[ head ]]

00:00:30 #1301 [Debug] >         //                 loop (item :: acc) item

00:00:30 #1302 [Debug] >         //             | [[]] => [[]]

00:00:30 #1303 [Debug] >         //         loop [[]] list

00:00:30 #1304 [Debug] >         //     |> List.rev

00:00:30 #1305 [Debug] >         //     |> List.map (List.toArray >> String)

00:00:30 #1306 [Debug] >         //     |> String.concat " "

00:00:30 #1307 [Debug] >

00:00:30 #1308 [Debug] >         // "E",

00:00:30 #1309 [Debug] >         // fun input =>

00:00:30 #1310 [Debug] >         //     input

00:00:30 #1311 [Debug] >         //     |> Seq.toList

00:00:30 #1312 [Debug] >         //     |> fun list =>

00:00:30 #1313 [Debug] >         //         let rec loop (last : string) = function

00:00:30 #1314 [Debug] >         //             | head :: tail =>

00:00:30 #1315 [Debug] >         //                 let item = last.[[1 .. input.Length - 1]] + string

00:00:30 #1316 [Debug] > head

00:00:30 #1317 [Debug] >         //                 item :: loop item tail

00:00:30 #1318 [Debug] >         //             | [[]] => [[]]

00:00:30 #1319 [Debug] >         //         loop input list

00:00:30 #1320 [Debug] >         //     |> String.concat " "

00:00:30 #1321 [Debug] >

00:00:30 #1322 [Debug] >         "F",

00:00:30 #1323 [Debug] >         fun input =>

00:00:30 #1324 [Debug] >         // Array.singleton 0

00:00:30 #1325 [Debug] >         // |> Array.append [[| 1 .. input.Length - 1 |]]

00:00:30 #1326 [Debug] >         // |> Array.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])

00:00:30 #1327 [Debug] >         // |> String.concat " "

00:00:30 #1328 [Debug] >             inl input_length = input |> sm.length

00:00:30 #1329 [Debug] >             am.singleton 0i32

00:00:30 #1330 [Debug] >             |> am.append (am'.init_series 1 (input_length - 1) 1)

00:00:30 #1331 [Debug] >             |> am.map (fun i =>

00:00:30 #1332 [Debug] >                 inl a = sm.slice input { from = i; to = input_length - 1 } :

00:00:30 #1333 [Debug] > string

00:00:30 #1334 [Debug] >                 inl b = sm.slice input { from = 0; to = i - 1 } : string

00:00:30 #1335 [Debug] >                 $"!a + !b" : string

00:00:30 #1336 [Debug] >             )

00:00:30 #1337 [Debug] >             |> string_concat " "

00:00:30 #1338 [Debug] >

00:00:30 #1339 [Debug] >         "FA",

00:00:30 #1340 [Debug] >         fun input =>

00:00:30 #1341 [Debug] >         //     List.singleton 0

00:00:30 #1342 [Debug] >         //     |> List.append [[ 1 .. input.Length - 1 ]]

00:00:30 #1343 [Debug] >         //   //  |> List.map (fun i => input.[[ i .. ]] + input.[[ .. i - 1 ]])

00:00:30 #1344 [Debug] >         //     |> String.concat " "

00:00:30 #1345 [Debug] >             inl input_length = input |> sm.length

00:00:30 #1346 [Debug] >             listm.singleton 0i32

00:00:30 #1347 [Debug] >             |> listm.append (listm'.init_series 1 (input_length - 1) 1)

00:00:30 #1348 [Debug] >             |> listm.map (fun i =>

00:00:30 #1349 [Debug] >                 inl a = sm.slice input { from = i; to = input_length - 1 } :

00:00:30 #1350 [Debug] > string

00:00:30 #1351 [Debug] >                 inl b = if i = 0 then "" else sm.slice input { from = 0; to = i

00:00:30 #1352 [Debug] > - 1 } : string

00:00:30 #1353 [Debug] >                 $"!a + !b" : string

00:00:30 #1354 [Debug] >             )

00:00:30 #1355 [Debug] >             |> listm.toArray

00:00:30 #1356 [Debug] >             |> fun x => x : a i32 _

00:00:30 #1357 [Debug] >             |> string_concat " "

00:00:30 #1358 [Debug] >

00:00:30 #1359 [Debug] >         // "FB",

00:00:30 #1360 [Debug] >         // fun input =>

00:00:30 #1361 [Debug] >         //     Seq.singleton 0

00:00:30 #1362 [Debug] >         //   //  |> Seq.append (seq { 1 .. input.Length - 1 })

00:00:30 #1363 [Debug] >         //   //  |> Seq.map (fun i => input.[[ i .. ]] + input.[[ .. i - 1 ]])

00:00:30 #1364 [Debug] >         //     |> String.concat " "

00:00:30 #1365 [Debug] >

00:00:30 #1366 [Debug] >         // "FC",

00:00:30 #1367 [Debug] >         // fun input =>

00:00:30 #1368 [Debug] >         //     Array.singleton 0

00:00:30 #1369 [Debug] >         //     |> Array.append (a ;[[ 1 .. input.Length - 1 ]])

00:00:30 #1370 [Debug] >         // //    |> Array.Parallel.map (fun i => input.[[ i .. ]] + input.[[ ..

00:00:30 #1371 [Debug] > i - 1 ]])

00:00:30 #1372 [Debug] >         //     |> String.concat " "

00:00:30 #1373 [Debug] >     ]]

00:00:30 #1374 [Debug] >

00:00:30 #1375 [Debug] > inl rec rotate_strings_tests () =

00:00:30 #1376 [Debug] >     inl test_cases = [[

00:00:30 #1377 [Debug] >         "abc", "bca cab abc"

00:00:30 #1378 [Debug] >         "abcde", "bcdea cdeab deabc eabcd abcde"

00:00:30 #1379 [Debug] >         "abcdefghi", "bcdefghia cdefghiab defghiabc efghiabcd fghiabcde

00:00:30 #1380 [Debug] > ghiabcdef hiabcdefg iabcdefgh abcdefghi"

00:00:30 #1381 [Debug] >         "abab", "baba abab baba abab"

00:00:30 #1382 [Debug] >         "aa", "aa aa"

00:00:30 #1383 [Debug] >         "z", "z"

00:00:30 #1384 [Debug] >     ]]

00:00:30 #1385 [Debug] >

00:00:30 #1386 [Debug] >     inl solutions = get_solutions ()

00:00:30 #1387 [Debug] >

00:00:30 #1388 [Debug] >     // inl is_fast () = true

00:00:30 #1389 [Debug] >

00:00:30 #1390 [Debug] >     inl count =

00:00:30 #1391 [Debug] >         if is_fast ()

00:00:30 #1392 [Debug] >         then 1000i32

00:00:30 #1393 [Debug] >         else 2000000i32

00:00:30 #1394 [Debug] >

00:00:30 #1395 [Debug] >     run_all (nameof rotate_strings_tests) count solutions test_cases

00:00:30 #1396 [Debug] >     |> sort_result_list

00:00:30 #1397 [Debug] >

00:00:30 #1398 [Debug] > rotate_strings_tests ()

00:00:30 #1399 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1417-5653-5358-5e9afb2d3e86\main.spi

00:00:56 #1400 [Debug] >

00:00:56 #1401 [Debug] > ╭─[ 25.68s - stdout ]──────────────────────────────────────────────────────────╮

00:00:56 #1402 [Debug] > │ type UH0 =                                                                   │

00:00:56 #1403 [Debug] > │     | UH0_0 of string * string * UH0                                         │

00:00:56 #1404 [Debug] > │     | UH0_1                                                                  │

00:00:56 #1405 [Debug] > │ and Mut0 = {mutable l0 : uint64}                                             │

00:00:56 #1406 [Debug] > │ and Mut1 = {mutable l0 : int32}                                              │

00:00:56 #1407 [Debug] > │ and UH1 =                                                                    │

00:00:56 #1408 [Debug] > │     | UH1_0 of int32 * UH1                                                   │

00:00:56 #1409 [Debug] > │     | UH1_1                                                                  │

00:00:56 #1410 [Debug] > │ and UH2 =                                                                    │

00:00:56 #1411 [Debug] > │     | UH2_0 of string * UH2                                                  │

00:00:56 #1412 [Debug] > │     | UH2_1                                                                  │

00:00:56 #1413 [Debug] > │ and UH3 =                                                                    │

00:00:56 #1414 [Debug] > │     | UH3_0 of int32 * string * (string -> string) * UH3                     │

00:00:56 #1415 [Debug] > │     | UH3_1                                                                  │

00:00:56 #1416 [Debug] > │ and [<Struct>] US0 =                                                         │

00:00:56 #1417 [Debug] > │     | US0_0                                                                  │

00:00:56 #1418 [Debug] > │     | US0_1 of f1_0 : System.ConsoleColor                                    │

00:00:56 #1419 [Debug] > │ and UH4 =                                                                    │

00:00:56 #1420 [Debug] > │     | UH4_0 of int64 * int64 * UH4                                           │

00:00:56 #1421 [Debug] > │     | UH4_1                                                                  │

00:00:56 #1422 [Debug] > │ and Mut2 = {mutable l0 : uint64; mutable l1 : UH4; mutable l2 : int64}       │

00:00:56 #1423 [Debug] > │ and UH5 =                                                                    │

00:00:56 #1424 [Debug] > │     | UH5_0 of UH2 * US0 * UH5                                               │

00:00:56 #1425 [Debug] > │     | UH5_1                                                                  │

00:00:56 #1426 [Debug] > │ and [<Struct>] US1 =                                                         │

00:00:56 #1427 [Debug] > │     | US1_0                                                                  │

00:00:56 #1428 [Debug] > │     | US1_1 of f1_0 : int64                                                  │

00:00:56 #1429 [Debug] > │ and UH6 =                                                                    │

00:00:56 #1430 [Debug] > │     | UH6_0 of int32 * int64 * UH6                                           │

00:00:56 #1431 [Debug] > │     | UH6_1                                                                  │

00:00:56 #1432 [Debug] > │ and Mut3 = {mutable l0 : uint64; mutable l1 : UH6; mutable l2 : int32}       │

00:00:56 #1433 [Debug] > │ and UH7 =                                                                    │

00:00:56 #1434 [Debug] > │     | UH7_0 of int32 * string * UH7                                          │

00:00:56 #1435 [Debug] > │     | UH7_1                                                                  │

00:00:56 #1436 [Debug] > │ let rec method2 (v0 : UH0, v1 : uint64) : uint64 =                           │

00:00:56 #1437 [Debug] > │     match v0 with                                                            │

00:00:56 #1438 [Debug] > │     | UH0_0(v2, v3, v4) -> (* Cons *)                                        │

00:00:56 #1439 [Debug] > │         let v5 : uint64 = v1 + 1UL                                           │

00:00:56 #1440 [Debug] > │         method2(v4, v5)                                                      │

00:00:56 #1441 [Debug] > │     | UH0_1 -> (* Nil *)                                                     │

00:00:56 #1442 [Debug] > │         v1                                                                   │

00:00:56 #1443 [Debug] > │ and method3 (v0 : (struct (string * string) []), v1 : UH0, v2 : uint64) :    │

00:00:56 #1444 [Debug] > │ uint64 =                                                                     │

00:00:56 #1445 [Debug] > │     match v1 with                                                            │

00:00:56 #1446 [Debug] > │     | UH0_0(v3, v4, v5) -> (* Cons *)                                        │

00:00:56 #1447 [Debug] > │         v0.[int v2] <- struct (v3, v4)                                       │

00:00:56 #1448 [Debug] > │         let v6 : uint64 = v2 + 1UL                                           │

00:00:56 #1449 [Debug] > │         method3(v0, v5, v6)                                                  │

00:00:56 #1450 [Debug] > │     | UH0_1 -> (* Nil *)                                                     │

00:00:56 #1451 [Debug] > │         v2                                                                   │

00:00:56 #1452 [Debug] > │ and method1 (v0 : UH0) : (struct (string * string) []) =                     │

00:00:56 #1453 [Debug] > │     let v1 : uint64 = 0UL                                                    │

00:00:56 #1454 [Debug] > │     let v2 : uint64 = method2(v0, v1)                                        │

00:00:56 #1455 [Debug] > │     let v3 : (struct (string * string) []) = Array.zeroCreate<struct (string │

00:00:56 #1456 [Debug] > │ * string)> (System.Convert.ToInt32(v2))                                      │

00:00:56 #1457 [Debug] > │     let v4 : uint64 = 0UL                                                    │

00:00:56 #1458 [Debug] > │     let v5 : uint64 = method3(v3, v0, v4)                                    │

00:00:56 #1459 [Debug] > │     v3                                                                       │

00:00:56 #1460 [Debug] > │ and method4 (v0 : uint64, v1 : Mut0) : bool =                                │

00:00:56 #1461 [Debug] > │     let v2 : uint64 = v1.l0                                                  │

00:00:56 #1462 [Debug] > │     let v3 : bool = v2 < v0                                                  │

00:00:56 #1463 [Debug] > │     v3                                                                       │

00:00:56 #1464 [Debug] > │ and method5 (v0 : int32, v1 : Mut1) : bool =                                 │

00:00:56 #1465 [Debug] > │     let v2 : int32 = v1.l0                                                   │

00:00:56 #1466 [Debug] > │     let v3 : bool = v2 < v0                                                  │

00:00:56 #1467 [Debug] > │     v3                                                                       │

00:00:56 #1468 [Debug] > │ and closure1 () (v0 : string) : string =                                     │

00:00:56 #1469 [Debug] > │     let v1 : int32 = v0.Length                                               │

00:00:56 #1470 [Debug] > │     let v2 : (int32 []) = Array.zeroCreate<int32> (1)                        │

00:00:56 #1471 [Debug] > │     v2.[int 0] <- 0                                                          │

00:00:56 #1472 [Debug] > │     let v3 : int32 = v1 - 1                                                  │

00:00:56 #1473 [Debug] > │     let v4 : int32 = v3 - 1                                                  │

00:00:56 #1474 [Debug] > │     let v5 : int32 = v4 + 1                                                  │

00:00:56 #1475 [Debug] > │     let v6 : (int32 []) = Array.zeroCreate<int32> (v5)                       │

00:00:56 #1476 [Debug] > │     let v7 : Mut1 = {l0 = 0} : Mut1                                          │

00:00:56 #1477 [Debug] > │     while method5(v5, v7) do                                                 │

00:00:56 #1478 [Debug] > │         let v9 : int32 = v7.l0                                               │

00:00:56 #1479 [Debug] > │         let v10 : int32 = 1 + v9                                             │

00:00:56 #1480 [Debug] > │         v6.[int v9] <- v10                                                   │

00:00:56 #1481 [Debug] > │         let v11 : int32 = v9 + 1                                             │

00:00:56 #1482 [Debug] > │         v7.l0 <- v11                                                         │

00:00:56 #1483 [Debug] > │         ()                                                                   │

00:00:56 #1484 [Debug] > │     let v12 : int32 = v6.Length                                              │

00:00:56 #1485 [Debug] > │     let v13 : int32 = v2.Length                                              │

00:00:56 #1486 [Debug] > │     let v14 : int32 = v12 + v13                                              │

00:00:56 #1487 [Debug] > │     let v15 : (int32 []) = Array.zeroCreate<int32> (v14)                     │

00:00:56 #1488 [Debug] > │     let v16 : Mut1 = {l0 = 0} : Mut1                                         │

00:00:56 #1489 [Debug] > │     while method5(v14, v16) do                                               │

00:00:56 #1490 [Debug] > │         let v18 : int32 = v16.l0                                             │

00:00:56 #1491 [Debug] > │         let v19 : bool = v18 < v12                                           │

00:00:56 #1492 [Debug] > │         let v23 : int32 =                                                    │

00:00:56 #1493 [Debug] > │             if v19 then                                                      │

00:00:56 #1494 [Debug] > │                 let v20 : int32 = v6.[int v18]                               │

00:00:56 #1495 [Debug] > │                 v20                                                          │

00:00:56 #1496 [Debug] > │             else                                                             │

00:00:56 #1497 [Debug] > │                 let v21 : int32 = v18 - v12                                  │

00:00:56 #1498 [Debug] > │                 let v22 : int32 = v2.[int v21]                               │

00:00:56 #1499 [Debug] > │                 v22                                                          │

00:00:56 #1500 [Debug] > │         v15.[int v18] <- v23                                                 │

00:00:56 #1501 [Debug] > │         let v24 : int32 = v18 + 1                                            │

00:00:56 #1502 [Debug] > │         v16.l0 <- v24                                                        │

00:00:56 #1503 [Debug] > │         ()                                                                   │

00:00:56 #1504 [Debug] > │     let v25 : int32 = v15.Length                                             │

00:00:56 #1505 [Debug] > │     let v26 : (string []) = Array.zeroCreate<string> (v25)                   │

00:00:56 #1506 [Debug] > │     let v27 : Mut1 = {l0 = 0} : Mut1                                         │

00:00:56 #1507 [Debug] > │     while method5(v25, v27) do                                               │

00:00:56 #1508 [Debug] > │         let v29 : int32 = v27.l0                                             │

00:00:56 #1509 [Debug] > │         let v30 : int32 = v15.[int v29]                                      │

00:00:56 #1510 [Debug] > │         let v31 : string = v0.[int v30..int v3]                              │

00:00:56 #1511 [Debug] > │         let v32 : int32 = v30 - 1                                            │

00:00:56 #1512 [Debug] > │         let v33 : string = v0.[int 0..int v32]                               │

00:00:56 #1513 [Debug] > │         let v34 : string = v31 + v33                                         │

00:00:56 #1514 [Debug] > │         v26.[int v29] <- v34                                                 │

00:00:56 #1515 [Debug] > │         let v35 : int32 = v29 + 1                                            │

00:00:56 #1516 [Debug] > │         v27.l0 <- v35                                                        │

00:00:56 #1517 [Debug] > │         ()                                                                   │

00:00:56 #1518 [Debug] > │     let v36 : string = " "                                                   │

00:00:56 #1519 [Debug] > │     let v37 : string = v26 |> String.concat v36                              │

00:00:56 #1520 [Debug] > │     v37                                                                      │

00:00:56 #1521 [Debug] > │ and method6 (v0 : float, v1 : float) : UH1 =                                 │

00:00:56 #1522 [Debug] > │     let v2 : bool = v1 < v0                                                  │

00:00:56 #1523 [Debug] > │     if v2 then                                                               │

00:00:56 #1524 [Debug] > │         let v3 : int32 = int32 v1                                            │

00:00:56 #1525 [Debug] > │         let v4 : int32 = 1 + v3                                              │

00:00:56 #1526 [Debug] > │         let v5 : float = v1 + 1.0                                            │

00:00:56 #1527 [Debug] > │         let v6 : UH1 = method6(v0, v5)                                       │

00:00:56 #1528 [Debug] > │         UH1_0(v4, v6)                                                        │

00:00:56 #1529 [Debug] > │     else                                                                     │

00:00:56 #1530 [Debug] > │         UH1_1                                                                │

00:00:56 #1531 [Debug] > │ and method7 (v0 : UH1, v1 : UH1) : UH1 =                                     │

00:00:56 #1532 [Debug] > │     match v0 with                                                            │

00:00:56 #1533 [Debug] > │     | UH1_0(v2, v3) -> (* Cons *)                                            │

00:00:56 #1534 [Debug] > │         let v4 : UH1 = method7(v3, v1)                                       │

00:00:56 #1535 [Debug] > │         UH1_0(v2, v4)                                                        │

00:00:56 #1536 [Debug] > │     | UH1_1 -> (* Nil *)                                                     │

00:00:56 #1537 [Debug] > │         v1                                                                   │

00:00:56 #1538 [Debug] > │ and method8 (v0 : string, v1 : int32, v2 : UH1, v3 : UH2) : UH2 =            │

00:00:56 #1539 [Debug] > │     match v2 with                                                            │

00:00:56 #1540 [Debug] > │     | UH1_0(v4, v5) -> (* Cons *)                                            │

00:00:56 #1541 [Debug] > │         let v6 : UH2 = method8(v0, v1, v5, v3)                               │

00:00:56 #1542 [Debug] > │         let v7 : int32 = v1 - 1                                              │

00:00:56 #1543 [Debug] > │         let v8 : string = v0.[int v4..int v7]                                │

00:00:56 #1544 [Debug] > │         let v9 : bool = v4 = 0                                               │

00:00:56 #1545 [Debug] > │         let v13 : string =                                                   │

00:00:56 #1546 [Debug] > │             if v9 then                                                       │

00:00:56 #1547 [Debug] > │                 let v10 : string = ""                                        │

00:00:56 #1548 [Debug] > │                 v10                                                          │

00:00:56 #1549 [Debug] > │             else                                                             │

00:00:56 #1550 [Debug] > │                 let v11 : int32 = v4 - 1                                     │

00:00:56 #1551 [Debug] > │                 let v12 : string = v0.[int 0..int v11]                       │

00:00:56 #1552 [Debug] > │                 v12                                                          │

00:00:56 #1553 [Debug] > │         let v14 : string = v8 + v13                                          │

00:00:56 #1554 [Debug] > │         UH2_0(v14, v6)                                                       │

00:00:56 #1555 [Debug] > │     | UH1_1 -> (* Nil *)                                                     │

00:00:56 #1556 [Debug] > │         v3                                                                   │

00:00:56 #1557 [Debug] > │ and method10 (v0 : UH2, v1 : int32) : int32 =                                │

00:00:56 #1558 [Debug] > │     match v0 with                                                            │

00:00:56 #1559 [Debug] > │     | UH2_0(v2, v3) -> (* Cons *)                                            │

00:00:56 #1560 [Debug] > │         let v4 : int32 = v1 + 1                                              │

00:00:56 #1561 [Debug] > │         method10(v3, v4)                                                     │

00:00:56 #1562 [Debug] > │     | UH2_1 -> (* Nil *)                                                     │

00:00:56 #1563 [Debug] > │         v1                                                                   │

00:00:56 #1564 [Debug] > │ and method11 (v0 : (string []), v1 : UH2, v2 : int32) : int32 =              │

00:00:56 #1565 [Debug] > │     match v1 with                                                            │

00:00:56 #1566 [Debug] > │     | UH2_0(v3, v4) -> (* Cons *)                                            │

00:00:56 #1567 [Debug] > │         v0.[int v2] <- v3                                                    │

00:00:56 #1568 [Debug] > │         let v5 : int32 = v2 + 1                                              │

00:00:56 #1569 [Debug] > │         method11(v0, v4, v5)                                                 │

00:00:56 #1570 [Debug] > │     | UH2_1 -> (* Nil *)                                                     │

00:00:56 #1571 [Debug] > │         v2                                                                   │

00:00:56 #1572 [Debug] > │ and method9 (v0 : UH2) : (string []) =                                       │

00:00:56 #1573 [Debug] > │     let v1 : int32 = 0                                                       │

00:00:56 #1574 [Debug] > │     let v2 : int32 = method10(v0, v1)                                        │

00:00:56 #1575 [Debug] > │     let v3 : (string []) = Array.zeroCreate<string> (v2)                     │

00:00:56 #1576 [Debug] > │     let v4 : int32 = 0                                                       │

00:00:56 #1577 [Debug] > │     let v5 : int32 = method11(v3, v0, v4)                                    │

00:00:56 #1578 [Debug] > │     v3                                                                       │

00:00:56 #1579 [Debug] > │ and closure2 () (v0 : string) : string =                                     │

00:00:56 #1580 [Debug] > │     let v1 : int32 = v0.Length                                               │

00:00:56 #1581 [Debug] > │     let v2 : int32 = v1 - 1                                                  │

00:00:56 #1582 [Debug] > │     let v3 : int32 = v2 - 1                                                  │

00:00:56 #1583 [Debug] > │     let v4 : float = float v3                                                │

00:00:56 #1584 [Debug] > │     let v5 : float = v4 + 1.0                                                │

00:00:56 #1585 [Debug] > │     let v6 : float = 0.0                                                     │

00:00:56 #1586 [Debug] > │     let v7 : UH1 = method6(v5, v6)                                           │

00:00:56 #1587 [Debug] > │     let v8 : int32 = 0                                                       │

00:00:56 #1588 [Debug] > │     let v9 : UH1 = UH1_1                                                     │

00:00:56 #1589 [Debug] > │     let v10 : UH1 = UH1_0(v8, v9)                                            │

00:00:56 #1590 [Debug] > │     let v11 : UH1 = method7(v7, v10)                                         │

00:00:56 #1591 [Debug] > │     let v12 : UH2 = UH2_1                                                    │

00:00:56 #1592 [Debug] > │     let v13 : UH2 = method8(v0, v1, v11, v12)                                │

00:00:56 #1593 [Debug] > │     let v14 : (string []) = method9(v13)                                     │

00:00:56 #1594 [Debug] > │     let v15 : string = " "                                                   │

00:00:56 #1595 [Debug] > │     let v16 : string = v14 |> String.concat v15                              │

00:00:56 #1596 [Debug] > │     v16                                                                      │

00:00:56 #1597 [Debug] > │ and method13 (v0 : UH3, v1 : uint64) : uint64 =                              │

00:00:56 #1598 [Debug] > │     match v0 with                                                            │

00:00:56 #1599 [Debug] > │     | UH3_0(v2, v3, v4, v5) -> (* Cons *)                                    │

00:00:56 #1600 [Debug] > │         let v6 : uint64 = v1 + 1UL                                           │

00:00:56 #1601 [Debug] > │         method13(v5, v6)                                                     │

00:00:56 #1602 [Debug] > │     | UH3_1 -> (* Nil *)                                                     │

00:00:56 #1603 [Debug] > │         v1                                                                   │

00:00:56 #1604 [Debug] > │ and method14 (v0 : (struct (int32 * string * (string -> string)) []), v1 :   │

00:00:56 #1605 [Debug] > │ UH3, v2 : uint64) : uint64 =                                                 │

00:00:56 #1606 [Debug] > │     match v1 with                                                            │

00:00:56 #1607 [Debug] > │     | UH3_0(v3, v4, v5, v6) -> (* Cons *)                                    │

00:00:56 #1608 [Debug] > │         v0.[int v2] <- struct (v3, v4, v5)                                   │

00:00:56 #1609 [Debug] > │         let v7 : uint64 = v2 + 1UL                                           │

00:00:56 #1610 [Debug] > │         method14(v0, v6, v7)                                                 │

00:00:56 #1611 [Debug] > │     | UH3_1 -> (* Nil *)                                                     │

00:00:56 #1612 [Debug] > │         v2                                                                   │

00:00:56 #1613 [Debug] > │ and method12 (v0 : UH3) : (struct (int32 * string * (string -> string)) [])  │

00:00:56 #1614 [Debug] > │ =                                                                            │

00:00:56 #1615 [Debug] > │     let v1 : uint64 = 0UL                                                    │

00:00:56 #1616 [Debug] > │     let v2 : uint64 = method13(v0, v1)                                       │

00:00:56 #1617 [Debug] > │     let v3 : (struct (int32 * string * (string -> string)) []) =             │

00:00:56 #1618 [Debug] > │ Array.zeroCreate<struct (int32 * string * (string -> string))>               │

00:00:56 #1619 [Debug] > │ (System.Convert.ToInt32(v2))                                                 │

00:00:56 #1620 [Debug] > │     let v4 : uint64 = 0UL                                                    │

00:00:56 #1621 [Debug] > │     let v5 : uint64 = method14(v3, v0, v4)                                   │

00:00:56 #1622 [Debug] > │     v3                                                                       │

00:00:56 #1623 [Debug] > │ and closure3 () () : unit =                                                  │

00:00:56 #1624 [Debug] > │     ()                                                                       │

00:00:56 #1625 [Debug] > │ and closure4 () () : unit =                                                  │

00:00:56 #1626 [Debug] > │     System.GC.Collect ()                                                     │

00:00:56 #1627 [Debug] > │     ()                                                                       │

00:00:56 #1628 [Debug] > │ and method15 (v0 : Mut1) : bool =                                            │

00:00:56 #1629 [Debug] > │     let v1 : int32 = v0.l0                                                   │

00:00:56 #1630 [Debug] > │     let v2 : bool = v1 < 2000001                                             │

00:00:56 #1631 [Debug] > │     v2                                                                       │

00:00:56 #1632 [Debug] > │ and closure5 (v0 : string, v1 : (string -> string)) (v2 : int32) : string =  │

00:00:56 #1633 [Debug] > │     v1 v0                                                                    │

00:00:56 #1634 [Debug] > │ and method16 (v0 : string, v1 : (string []), v2 : uint64) : bool =           │

00:00:56 #1635 [Debug] > │     let v3 : uint64 = System.Convert.ToUInt64 v1.Length                      │

00:00:56 #1636 [Debug] > │     let v4 : bool = v2 < v3                                                  │

00:00:56 #1637 [Debug] > │     if v4 then                                                               │

00:00:56 #1638 [Debug] > │         let v5 : string = v1.[int v2]                                        │

00:00:56 #1639 [Debug] > │         let v6 : bool = v0 = v5                                              │

00:00:56 #1640 [Debug] > │         if v6 then                                                           │

00:00:56 #1641 [Debug] > │             let v7 : uint64 = v2 + 1UL                                       │

00:00:56 #1642 [Debug] > │             method16(v0, v1, v7)                                             │

00:00:56 #1643 [Debug] > │         else                                                                 │

00:00:56 #1644 [Debug] > │             false                                                            │

00:00:56 #1645 [Debug] > │     else                                                                     │

00:00:56 #1646 [Debug] > │         true                                                                 │

00:00:56 #1647 [Debug] > │ and method17 (v0 : uint64, v1 : Mut2) : bool =                               │

00:00:56 #1648 [Debug] > │     let v2 : uint64 = v1.l0                                                  │

00:00:56 #1649 [Debug] > │     let v3 : bool = v2 < v0                                                  │

00:00:56 #1650 [Debug] > │     v3                                                                       │

00:00:56 #1651 [Debug] > │ and method18 (v0 : UH4, v1 : UH4) : UH4 =                                    │

00:00:56 #1652 [Debug] > │     match v0 with                                                            │

00:00:56 #1653 [Debug] > │     | UH4_0(v2, v3, v4) -> (* Cons *)                                        │

00:00:56 #1654 [Debug] > │         let v5 : UH4 = UH4_0(v2, v3, v1)                                     │

00:00:56 #1655 [Debug] > │         method18(v4, v5)                                                     │

00:00:56 #1656 [Debug] > │     | UH4_1 -> (* Nil *)                                                     │

00:00:56 #1657 [Debug] > │         v1                                                                   │

00:00:56 #1658 [Debug] > │ and method20 (v0 : UH4, v1 : int32) : int32 =                                │

00:00:56 #1659 [Debug] > │     match v0 with                                                            │

00:00:56 #1660 [Debug] > │     | UH4_0(v2, v3, v4) -> (* Cons *)                                        │

00:00:56 #1661 [Debug] > │         let v5 : int32 = v1 + 1                                              │

00:00:56 #1662 [Debug] > │         method20(v4, v5)                                                     │

00:00:56 #1663 [Debug] > │     | UH4_1 -> (* Nil *)                                                     │

00:00:56 #1664 [Debug] > │         v1                                                                   │

00:00:56 #1665 [Debug] > │ and method21 (v0 : (struct (int64 * int64) []), v1 : UH4, v2 : int32) :      │

00:00:56 #1666 [Debug] > │ int32 =                                                                      │

00:00:56 #1667 [Debug] > │     match v1 with                                                            │

00:00:56 #1668 [Debug] > │     | UH4_0(v3, v4, v5) -> (* Cons *)                                        │

00:00:56 #1669 [Debug] > │         v0.[int v2] <- struct (v3, v4)                                       │

00:00:56 #1670 [Debug] > │         let v6 : int32 = v2 + 1                                              │

00:00:56 #1671 [Debug] > │         method21(v0, v5, v6)                                                 │

00:00:56 #1672 [Debug] > │     | UH4_1 -> (* Nil *)                                                     │

00:00:56 #1673 [Debug] > │         v2                                                                   │

00:00:56 #1674 [Debug] > │ and method19 (v0 : UH4) : (struct (int64 * int64) []) =                      │

00:00:56 #1675 [Debug] > │     let v1 : int32 = 0                                                       │

00:00:56 #1676 [Debug] > │     let v2 : int32 = method20(v0, v1)                                        │

00:00:56 #1677 [Debug] > │     let v3 : (struct (int64 * int64) []) = Array.zeroCreate<struct (int64 *  │

00:00:56 #1678 [Debug] > │ int64)> (v2)                                                                 │

00:00:56 #1679 [Debug] > │     let v4 : int32 = 0                                                       │

00:00:56 #1680 [Debug] > │     let v5 : int32 = method21(v3, v0, v4)                                    │

00:00:56 #1681 [Debug] > │     v3                                                                       │

00:00:56 #1682 [Debug] > │ and closure6 () struct (v0 : int64, v1 : int64) : int64 =                    │

00:00:56 #1683 [Debug] > │     v1                                                                       │

00:00:56 #1684 [Debug] > │ and method23 (v0 : UH5, v1 : uint64) : uint64 =                              │

00:00:56 #1685 [Debug] > │     match v0 with                                                            │

00:00:56 #1686 [Debug] > │     | UH5_0(v2, v3, v4) -> (* Cons *)                                        │

00:00:56 #1687 [Debug] > │         let v5 : uint64 = v1 + 1UL                                           │

00:00:56 #1688 [Debug] > │         method23(v4, v5)                                                     │

00:00:56 #1689 [Debug] > │     | UH5_1 -> (* Nil *)                                                     │

00:00:56 #1690 [Debug] > │         v1                                                                   │

00:00:56 #1691 [Debug] > │ and method24 (v0 : (struct (UH2 * US0) []), v1 : UH5, v2 : uint64) : uint64  │

00:00:56 #1692 [Debug] > │ =                                                                            │

00:00:56 #1693 [Debug] > │     match v1 with                                                            │

00:00:56 #1694 [Debug] > │     | UH5_0(v3, v4, v5) -> (* Cons *)                                        │

00:00:56 #1695 [Debug] > │         v0.[int v2] <- struct (v3, v4)                                       │

00:00:56 #1696 [Debug] > │         let v6 : uint64 = v2 + 1UL                                           │

00:00:56 #1697 [Debug] > │         method24(v0, v5, v6)                                                 │

00:00:56 #1698 [Debug] > │     | UH5_1 -> (* Nil *)                                                     │

00:00:56 #1699 [Debug] > │         v2                                                                   │

00:00:56 #1700 [Debug] > │ and method22 (v0 : UH5) : (struct (UH2 * US0) []) =                          │

00:00:56 #1701 [Debug] > │     let v1 : uint64 = 0UL                                                    │

00:00:56 #1702 [Debug] > │     let v2 : uint64 = method23(v0, v1)                                       │

00:00:56 #1703 [Debug] > │     let v3 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * US0)>  │

00:00:56 #1704 [Debug] > │ (System.Convert.ToInt32(v2))                                                 │

00:00:56 #1705 [Debug] > │     let v4 : uint64 = 0UL                                                    │

00:00:56 #1706 [Debug] > │     let v5 : uint64 = method24(v3, v0, v4)                                   │

00:00:56 #1707 [Debug] > │     v3                                                                       │

00:00:56 #1708 [Debug] > │ and method26 (v0 : UH2, v1 : uint64) : uint64 =                              │

00:00:56 #1709 [Debug] > │     match v0 with                                                            │

00:00:56 #1710 [Debug] > │     | UH2_0(v2, v3) -> (* Cons *)                                            │

00:00:56 #1711 [Debug] > │         let v4 : uint64 = v1 + 1UL                                           │

00:00:56 #1712 [Debug] > │         method26(v3, v4)                                                     │

00:00:56 #1713 [Debug] > │     | UH2_1 -> (* Nil *)                                                     │

00:00:56 #1714 [Debug] > │         v1                                                                   │

00:00:56 #1715 [Debug] > │ and method27 (v0 : (string []), v1 : UH2, v2 : uint64) : uint64 =            │

00:00:56 #1716 [Debug] > │     match v1 with                                                            │

00:00:56 #1717 [Debug] > │     | UH2_0(v3, v4) -> (* Cons *)                                            │

00:00:56 #1718 [Debug] > │         v0.[int v2] <- v3                                                    │

00:00:56 #1719 [Debug] > │         let v5 : uint64 = v2 + 1UL                                           │

00:00:56 #1720 [Debug] > │         method27(v0, v4, v5)                                                 │

00:00:56 #1721 [Debug] > │     | UH2_1 -> (* Nil *)                                                     │

00:00:56 #1722 [Debug] > │         v2                                                                   │

00:00:56 #1723 [Debug] > │ and method25 (v0 : UH2) : (string []) =                                      │

00:00:56 #1724 [Debug] > │     let v1 : uint64 = 0UL                                                    │

00:00:56 #1725 [Debug] > │     let v2 : uint64 = method26(v0, v1)                                       │

00:00:56 #1726 [Debug] > │     let v3 : (string []) = Array.zeroCreate<string>                          │

00:00:56 #1727 [Debug] > │ (System.Convert.ToInt32(v2))                                                 │

00:00:56 #1728 [Debug] > │     let v4 : uint64 = 0UL                                                    │

00:00:56 #1729 [Debug] > │     let v5 : uint64 = method27(v3, v0, v4)                                   │

00:00:56 #1730 [Debug] > │     v3                                                                       │

00:00:56 #1731 [Debug] > │ and closure7 () (v0 : int64) : US1 =                                         │

00:00:56 #1732 [Debug] > │     US1_1(v0)                                                                │

00:00:56 #1733 [Debug] > │ and method28 (v0 : uint64, v1 : Mut3) : bool =                               │

00:00:56 #1734 [Debug] > │     let v2 : uint64 = v1.l0                                                  │

00:00:56 #1735 [Debug] > │     let v3 : bool = v2 < v0                                                  │

00:00:56 #1736 [Debug] > │     v3                                                                       │

00:00:56 #1737 [Debug] > │ and method29 (v0 : UH6, v1 : UH6) : UH6 =                                    │

00:00:56 #1738 [Debug] > │     match v0 with                                                            │

00:00:56 #1739 [Debug] > │     | UH6_0(v2, v3, v4) -> (* Cons *)                                        │

00:00:56 #1740 [Debug] > │         let v5 : UH6 = UH6_0(v2, v3, v1)                                     │

00:00:56 #1741 [Debug] > │         method29(v4, v5)                                                     │

00:00:56 #1742 [Debug] > │     | UH6_1 -> (* Nil *)                                                     │

00:00:56 #1743 [Debug] > │         v1                                                                   │

00:00:56 #1744 [Debug] > │ and method31 (v0 : UH6, v1 : int32) : int32 =                                │

00:00:56 #1745 [Debug] > │     match v0 with                                                            │

00:00:56 #1746 [Debug] > │     | UH6_0(v2, v3, v4) -> (* Cons *)                                        │

00:00:56 #1747 [Debug] > │         let v5 : int32 = v1 + 1                                              │

00:00:56 #1748 [Debug] > │         method31(v4, v5)                                                     │

00:00:56 #1749 [Debug] > │     | UH6_1 -> (* Nil *)                                                     │

00:00:56 #1750 [Debug] > │         v1                                                                   │

00:00:56 #1751 [Debug] > │ and method32 (v0 : (struct (int32 * int64) []), v1 : UH6, v2 : int32) :      │

00:00:56 #1752 [Debug] > │ int32 =                                                                      │

00:00:56 #1753 [Debug] > │     match v1 with                                                            │

00:00:56 #1754 [Debug] > │     | UH6_0(v3, v4, v5) -> (* Cons *)                                        │

00:00:56 #1755 [Debug] > │         v0.[int v2] <- struct (v3, v4)                                       │

00:00:56 #1756 [Debug] > │         let v6 : int32 = v2 + 1                                              │

00:00:56 #1757 [Debug] > │         method32(v0, v5, v6)                                                 │

00:00:56 #1758 [Debug] > │     | UH6_1 -> (* Nil *)                                                     │

00:00:56 #1759 [Debug] > │         v2                                                                   │

00:00:56 #1760 [Debug] > │ and method30 (v0 : UH6) : (struct (int32 * int64) []) =                      │

00:00:56 #1761 [Debug] > │     let v1 : int32 = 0                                                       │

00:00:56 #1762 [Debug] > │     let v2 : int32 = method31(v0, v1)                                        │

00:00:56 #1763 [Debug] > │     let v3 : (struct (int32 * int64) []) = Array.zeroCreate<struct (int32 *  │

00:00:56 #1764 [Debug] > │ int64)> (v2)                                                                 │

00:00:56 #1765 [Debug] > │     let v4 : int32 = 0                                                       │

00:00:56 #1766 [Debug] > │     let v5 : int32 = method32(v3, v0, v4)                                    │

00:00:56 #1767 [Debug] > │     v3                                                                       │

00:00:56 #1768 [Debug] > │ and method33 (v0 : UH2, v1 : UH7, v2 : int32) : struct (UH7 * int32) =       │

00:00:56 #1769 [Debug] > │     match v0 with                                                            │

00:00:56 #1770 [Debug] > │     | UH2_0(v3, v4) -> (* Cons *)                                            │

00:00:56 #1771 [Debug] > │         let v5 : int32 = v2 + 1                                              │

00:00:56 #1772 [Debug] > │         let v6 : UH7 = UH7_0(v2, v3, v1)                                     │

00:00:56 #1773 [Debug] > │         method33(v4, v6, v5)                                                 │

00:00:56 #1774 [Debug] > │     | UH2_1 -> (* Nil *)                                                     │

00:00:56 #1775 [Debug] > │         struct (v1, v2)                                                      │

00:00:56 #1776 [Debug] > │ and method34 (v0 : UH7, v1 : UH7) : UH7 =                                    │

00:00:56 #1777 [Debug] > │     match v0 with                                                            │

00:00:56 #1778 [Debug] > │     | UH7_0(v2, v3, v4) -> (* Cons *)                                        │

00:00:56 #1779 [Debug] > │         let v5 : UH7 = UH7_0(v2, v3, v1)                                     │

00:00:56 #1780 [Debug] > │         method34(v4, v5)                                                     │

00:00:56 #1781 [Debug] > │     | UH7_1 -> (* Nil *)                                                     │

00:00:56 #1782 [Debug] > │         v1                                                                   │

00:00:56 #1783 [Debug] > │ and method35 (v0 : Map<int32, int64>, v1 : UH7, v2 : UH2) : UH2 =            │

00:00:56 #1784 [Debug] > │     match v1 with                                                            │

00:00:56 #1785 [Debug] > │     | UH7_0(v3, v4, v5) -> (* Cons *)                                        │

00:00:56 #1786 [Debug] > │         let v6 : UH2 = method35(v0, v5, v2)                                  │

00:00:56 #1787 [Debug] > │         let v7 : int64 = v0.[v3]                                             │

00:00:56 #1788 [Debug] > │         let v8 : int32 = int32 v7                                            │

00:00:56 #1789 [Debug] > │         let v9 : string = v4.PadRight v8                                     │

00:00:56 #1790 [Debug] > │         UH2_0(v9, v6)                                                        │

00:00:56 #1791 [Debug] > │     | UH7_1 -> (* Nil *)                                                     │

00:00:56 #1792 [Debug] > │         v2                                                                   │

00:00:56 #1793 [Debug] > │ and closure8 () () : unit =                                                  │

00:00:56 #1794 [Debug] > │     ()                                                                       │

00:00:56 #1795 [Debug] > │ and closure9 () () : unit =                                                  │

00:00:56 #1796 [Debug] > │     System.Console.ResetColor ()                                             │

00:00:56 #1797 [Debug] > │     ()                                                                       │

00:00:56 #1798 [Debug] > │ and closure10 () () : unit =                                                 │

00:00:56 #1799 [Debug] > │     ()                                                                       │

00:00:56 #1800 [Debug] > │ and closure11 (v0 : System.ConsoleColor) () : unit =                         │

00:00:56 #1801 [Debug] > │     System.Console.ForegroundColor <- v0                                     │

00:00:56 #1802 [Debug] > │     ()                                                                       │

00:00:56 #1803 [Debug] > │ and method37 (v0 : UH6, v1 : uint64) : uint64 =                              │

00:00:56 #1804 [Debug] > │     match v0 with                                                            │

00:00:56 #1805 [Debug] > │     | UH6_0(v2, v3, v4) -> (* Cons *)                                        │

00:00:56 #1806 [Debug] > │         let v5 : uint64 = v1 + 1UL                                           │

00:00:56 #1807 [Debug] > │         method37(v4, v5)                                                     │

00:00:56 #1808 [Debug] > │     | UH6_1 -> (* Nil *)                                                     │

00:00:56 #1809 [Debug] > │         v1                                                                   │

00:00:56 #1810 [Debug] > │ and method38 (v0 : (struct (int32 * int64) []), v1 : UH6, v2 : uint64) :     │

00:00:56 #1811 [Debug] > │ uint64 =                                                                     │

00:00:56 #1812 [Debug] > │     match v1 with                                                            │

00:00:56 #1813 [Debug] > │     | UH6_0(v3, v4, v5) -> (* Cons *)                                        │

00:00:56 #1814 [Debug] > │         v0.[int v2] <- struct (v3, v4)                                       │

00:00:56 #1815 [Debug] > │         let v6 : uint64 = v2 + 1UL                                           │

00:00:56 #1816 [Debug] > │         method38(v0, v5, v6)                                                 │

00:00:56 #1817 [Debug] > │     | UH6_1 -> (* Nil *)                                                     │

00:00:56 #1818 [Debug] > │         v2                                                                   │

00:00:56 #1819 [Debug] > │ and method36 (v0 : UH6) : (struct (int32 * int64) []) =                      │

00:00:56 #1820 [Debug] > │     let v1 : uint64 = 0UL                                                    │

00:00:56 #1821 [Debug] > │     let v2 : uint64 = method37(v0, v1)                                       │

00:00:56 #1822 [Debug] > │     let v3 : (struct (int32 * int64) []) = Array.zeroCreate<struct (int32 *  │

00:00:56 #1823 [Debug] > │ int64)> (System.Convert.ToInt32(v2))                                         │

00:00:56 #1824 [Debug] > │     let v4 : uint64 = 0UL                                                    │

00:00:56 #1825 [Debug] > │     let v5 : uint64 = method38(v3, v0, v4)                                   │

00:00:56 #1826 [Debug] > │     v3                                                                       │

00:00:56 #1827 [Debug] > │ and closure12 () struct (v0 : int32, v1 : int64) : int64 =                   │

00:00:56 #1828 [Debug] > │     v1                                                                       │

00:00:56 #1829 [Debug] > │ and closure0 () () : unit =                                                  │

00:00:56 #1830 [Debug] > │     let v0 : (unit -> unit) = closure0()                                     │

00:00:56 #1831 [Debug] > │     let v1 : string = nameof v0                                              │

00:00:56 #1832 [Debug] > │     let v2 : string = ""                                                     │

00:00:56 #1833 [Debug] > │     System.Console.WriteLine v2                                              │

00:00:56 #1834 [Debug] > │     System.Console.WriteLine v2                                              │

00:00:56 #1835 [Debug] > │     let v3 : string = $"Test: {v1}"                                          │

00:00:56 #1836 [Debug] > │     System.Console.WriteLine v3                                              │

00:00:56 #1837 [Debug] > │     let v4 : string = "abc"                                                  │

00:00:56 #1838 [Debug] > │     let v5 : string = "bca cab abc"                                          │

00:00:56 #1839 [Debug] > │     let v6 : string = "abcde"                                                │

00:00:56 #1840 [Debug] > │     let v7 : string = "bcdea cdeab deabc eabcd abcde"                        │

00:00:56 #1841 [Debug] > │     let v8 : string = "abcdefghi"                                            │

00:00:56 #1842 [Debug] > │     let v9 : string = "bcdefghia cdefghiab defghiabc efghiabcd fghiabcde     │

00:00:56 #1843 [Debug] > │ ghiabcdef hiabcdefg iabcdefgh abcdefghi"                                     │

00:00:56 #1844 [Debug] > │     let v10 : string = "abab"                                                │

00:00:56 #1845 [Debug] > │     let v11 : string = "baba abab baba abab"                                 │

00:00:56 #1846 [Debug] > │     let v12 : string = "aa"                                                  │

00:00:56 #1847 [Debug] > │     let v13 : string = "aa aa"                                               │

00:00:56 #1848 [Debug] > │     let v14 : string = "z"                                                   │

00:00:56 #1849 [Debug] > │     let v15 : UH0 = UH0_1                                                    │

00:00:56 #1850 [Debug] > │     let v16 : UH0 = UH0_0(v14, v14, v15)                                     │

00:00:56 #1851 [Debug] > │     let v17 : UH0 = UH0_0(v12, v13, v16)                                     │

00:00:56 #1852 [Debug] > │     let v18 : UH0 = UH0_0(v10, v11, v17)                                     │

00:00:56 #1853 [Debug] > │     let v19 : UH0 = UH0_0(v8, v9, v18)                                       │

00:00:56 #1854 [Debug] > │     let v20 : UH0 = UH0_0(v6, v7, v19)                                       │

00:00:56 #1855 [Debug] > │     let v21 : UH0 = UH0_0(v4, v5, v20)                                       │

00:00:56 #1856 [Debug] > │     let v22 : (struct (string * string) []) = method1(v21)                   │

00:00:56 #1857 [Debug] > │     let v23 : uint64 = System.Convert.ToUInt64 v22.Length                    │

00:00:56 #1858 [Debug] > │     let v24 : (struct (string * string * string * (int64 [])) []) =          │

00:00:56 #1859 [Debug] > │ Array.zeroCreate<struct (string * string * string * (int64 []))>             │

00:00:56 #1860 [Debug] > │ (System.Convert.ToInt32(v23))                                                │

00:00:56 #1861 [Debug] > │     let v25 : Mut0 = {l0 = 0UL} : Mut0                                       │

00:00:56 #1862 [Debug] > │     while method4(v23, v25) do                                               │

00:00:56 #1863 [Debug] > │         let v27 : uint64 = v25.l0                                            │

00:00:56 #1864 [Debug] > │         let struct (v28 : string, v29 : string) = v22.[int v27]              │

00:00:56 #1865 [Debug] > │         let v30 : string = $"%A{v28}"                                        │

00:00:56 #1866 [Debug] > │         System.Console.WriteLine v2                                          │

00:00:56 #1867 [Debug] > │         let v31 : string = $"Solution: {v30}  "                              │

00:00:56 #1868 [Debug] > │         System.Console.WriteLine v31                                         │

00:00:56 #1869 [Debug] > │         let v32 : int32 = 0                                                  │

00:00:56 #1870 [Debug] > │         let v33 : string = "F"                                               │

00:00:56 #1871 [Debug] > │         let v34 : (string -> string) = closure1()                            │

00:00:56 #1872 [Debug] > │         let v35 : int32 = 1                                                  │

00:00:56 #1873 [Debug] > │         let v36 : string = "FA"                                              │

00:00:56 #1874 [Debug] > │         let v37 : (string -> string) = closure2()                            │

00:00:56 #1875 [Debug] > │         let v38 : UH3 = UH3_1                                                │

00:00:56 #1876 [Debug] > │         let v39 : UH3 = UH3_0(v35, v36, v37, v38)                            │

00:00:56 #1877 [Debug] > │         let v40 : UH3 = UH3_0(v32, v33, v34, v39)                            │

00:00:56 #1878 [Debug] > │         let v41 : (struct (int32 * string * (string -> string)) []) =        │

00:00:56 #1879 [Debug] > │ method12(v40)                                                                │

00:00:56 #1880 [Debug] > │         let v42 : uint64 = System.Convert.ToUInt64 v41.Length                │

00:00:56 #1881 [Debug] > │         let v43 : (struct (string * int64) []) = Array.zeroCreate<struct     │

00:00:56 #1882 [Debug] > │ (string * int64)> (System.Convert.ToInt32(v42))                              │

00:00:56 #1883 [Debug] > │         let v44 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:00:56 #1884 [Debug] > │         while method4(v42, v44) do                                           │

00:00:56 #1885 [Debug] > │             let v46 : uint64 = v44.l0                                        │

00:00:56 #1886 [Debug] > │             let struct (v47 : int32, v48 : string, v49 : (string -> string)) │

00:00:56 #1887 [Debug] > │ = v41.[int v46]                                                              │

00:00:56 #1888 [Debug] > │             #if FABLE_COMPILER_RUST                                          │

00:00:56 #1889 [Debug] > │             let v50 : (unit -> unit) = closure3()                            │

00:00:56 #1890 [Debug] > │             v50 ()                                                           │

00:00:56 #1891 [Debug] > │             #else                                                            │

00:00:56 #1892 [Debug] > │             let v51 : (unit -> unit) = closure4()                            │

00:00:56 #1893 [Debug] > │             v51 ()                                                           │

00:00:56 #1894 [Debug] > │             #endif                                                           │

00:00:56 #1895 [Debug] > │             let v52 : (unit -> System.Diagnostics.Stopwatch) =               │

00:00:56 #1896 [Debug] > │ System.Diagnostics.Stopwatch                                                 │

00:00:56 #1897 [Debug] > │             let v53 : System.Diagnostics.Stopwatch = v52 ()                  │

00:00:56 #1898 [Debug] > │             v53.Start ()                                                     │

00:00:56 #1899 [Debug] > │             let v54 : int64 = v53.ElapsedMilliseconds                        │

00:00:56 #1900 [Debug] > │             let v55 : (int32 []) = Array.zeroCreate<int32> (2000001)         │

00:00:56 #1901 [Debug] > │             let v56 : Mut1 = {l0 = 0} : Mut1                                 │

00:00:56 #1902 [Debug] > │             while method15(v56) do                                           │

00:00:56 #1903 [Debug] > │                 let v58 : int32 = v56.l0                                     │

00:00:56 #1904 [Debug] > │                 v55.[int v58] <- v58                                         │

00:00:56 #1905 [Debug] > │                 let v59 : int32 = v58 + 1                                    │

00:00:56 #1906 [Debug] > │                 v56.l0 <- v59                                                │

00:00:56 #1907 [Debug] > │                 ()                                                           │

00:00:56 #1908 [Debug] > │             let v60 : (int32 -> string) = closure5(v28, v49)                 │

00:00:56 #1909 [Debug] > │             let v61 : (string []) = v55 |> Array.Parallel.map v60            │

00:00:56 #1910 [Debug] > │             let v62 : int32 = v61.Length                                     │

00:00:56 #1911 [Debug] > │             let v63 : int32 = v62 - 1                                        │

00:00:56 #1912 [Debug] > │             let v64 : string = v61.[int v63]                                 │

00:00:56 #1913 [Debug] > │             let v65 : int64 = v53.ElapsedMilliseconds                        │

00:00:56 #1914 [Debug] > │             let v66 : int64 = v65 - v54                                      │

00:00:56 #1915 [Debug] > │             let v67 : string = $"Test case {v47 + 1}. {v48}. Time: {v66}  "  │

00:00:56 #1916 [Debug] > │             System.Console.WriteLine v67                                     │

00:00:56 #1917 [Debug] > │             v43.[int v46] <- struct (v64, v66)                               │

00:00:56 #1918 [Debug] > │             let v68 : uint64 = v46 + 1UL                                     │

00:00:56 #1919 [Debug] > │             v44.l0 <- v68                                                    │

00:00:56 #1920 [Debug] > │             ()                                                               │

00:00:56 #1921 [Debug] > │         let v69 : uint64 = System.Convert.ToUInt64 v43.Length                │

00:00:56 #1922 [Debug] > │         let v70 : (string []) = Array.zeroCreate<string>                     │

00:00:56 #1923 [Debug] > │ (System.Convert.ToInt32(v69))                                                │

00:00:56 #1924 [Debug] > │         let v71 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:00:56 #1925 [Debug] > │         while method4(v69, v71) do                                           │

00:00:56 #1926 [Debug] > │             let v73 : uint64 = v71.l0                                        │

00:00:56 #1927 [Debug] > │             let struct (v74 : string, v75 : int64) = v43.[int v73]           │

00:00:56 #1928 [Debug] > │             v70.[int v73] <- v74                                             │

00:00:56 #1929 [Debug] > │             let v76 : uint64 = v73 + 1UL                                     │

00:00:56 #1930 [Debug] > │             v71.l0 <- v76                                                    │

00:00:56 #1931 [Debug] > │             ()                                                               │

00:00:56 #1932 [Debug] > │         let v77 : uint64 = System.Convert.ToUInt64 v70.Length                │

00:00:56 #1933 [Debug] > │         let v78 : bool = v77 <= 1UL                                          │

00:00:56 #1934 [Debug] > │         if v78 then                                                          │

00:00:56 #1935 [Debug] > │             ()                                                               │

00:00:56 #1936 [Debug] > │         else                                                                 │

00:00:56 #1937 [Debug] > │             let v79 : string = v70.[int 0UL]                                 │

00:00:56 #1938 [Debug] > │             let v80 : uint64 = 0UL                                           │

00:00:56 #1939 [Debug] > │             let v81 : bool = method16(v79, v70, v80)                         │

00:00:56 #1940 [Debug] > │             if v81 then                                                      │

00:00:56 #1941 [Debug] > │                 ()                                                           │

00:00:56 #1942 [Debug] > │             else                                                             │

00:00:56 #1943 [Debug] > │                 let v82 : string = $"Challenge error: {v70}"                 │

00:00:56 #1944 [Debug] > │                 failwith<unit> v82                                           │

00:00:56 #1945 [Debug] > │         let v83 : string = $"%A{v29}"                                        │

00:00:56 #1946 [Debug] > │         let v84 : (string []) = Array.zeroCreate<string>                     │

00:00:56 #1947 [Debug] > │ (System.Convert.ToInt32(v69))                                                │

00:00:56 #1948 [Debug] > │         let v85 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:00:56 #1949 [Debug] > │         while method4(v69, v85) do                                           │

00:00:56 #1950 [Debug] > │             let v87 : uint64 = v85.l0                                        │

00:00:56 #1951 [Debug] > │             let struct (v88 : string, v89 : int64) = v43.[int v87]           │

00:00:56 #1952 [Debug] > │             v84.[int v87] <- v88                                             │

00:00:56 #1953 [Debug] > │             let v90 : uint64 = v87 + 1UL                                     │

00:00:56 #1954 [Debug] > │             v85.l0 <- v90                                                    │

00:00:56 #1955 [Debug] > │             ()                                                               │

00:00:56 #1956 [Debug] > │         let v91 : string = v84.[int 0UL]                                     │

00:00:56 #1957 [Debug] > │         let v92 : string = $"%A{v91}"                                        │

00:00:56 #1958 [Debug] > │         let v93 : (int64 []) = Array.zeroCreate<int64>                       │

00:00:56 #1959 [Debug] > │ (System.Convert.ToInt32(v69))                                                │

00:00:56 #1960 [Debug] > │         let v94 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:00:56 #1961 [Debug] > │         while method4(v69, v94) do                                           │

00:00:56 #1962 [Debug] > │             let v96 : uint64 = v94.l0                                        │

00:00:56 #1963 [Debug] > │             let struct (v97 : string, v98 : int64) = v43.[int v96]           │

00:00:56 #1964 [Debug] > │             v93.[int v96] <- v98                                             │

00:00:56 #1965 [Debug] > │             let v99 : uint64 = v96 + 1UL                                     │

00:00:56 #1966 [Debug] > │             v94.l0 <- v99                                                    │

00:00:56 #1967 [Debug] > │             ()                                                               │

00:00:56 #1968 [Debug] > │         v24.[int v27] <- struct (v83, v30, v92, v93)                         │

00:00:56 #1969 [Debug] > │         let v100 : uint64 = v27 + 1UL                                        │

00:00:56 #1970 [Debug] > │         v25.l0 <- v100                                                       │

00:00:56 #1971 [Debug] > │         ()                                                                   │

00:00:56 #1972 [Debug] > │     let v101 : uint64 = System.Convert.ToUInt64 v24.Length                   │

00:00:56 #1973 [Debug] > │     let v102 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 *      │

00:00:56 #1974 [Debug] > │ US0)> (System.Convert.ToInt32(v101))                                         │

00:00:56 #1975 [Debug] > │     let v103 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:56 #1976 [Debug] > │     while method4(v101, v103) do                                             │

00:00:56 #1977 [Debug] > │         let v105 : uint64 = v103.l0                                          │

00:00:56 #1978 [Debug] > │         let struct (v106 : string, v107 : string, v108 : string, v109 :      │

00:00:56 #1979 [Debug] > │ (int64 [])) = v24.[int v105]                                                 │

00:00:56 #1980 [Debug] > │         let v110 : uint64 = System.Convert.ToUInt64 v109.Length              │

00:00:56 #1981 [Debug] > │         let v111 : UH4 = UH4_1                                               │

00:00:56 #1982 [Debug] > │         let v112 : Mut2 = {l0 = 0UL; l1 = v111; l2 = 0L} : Mut2              │

00:00:56 #1983 [Debug] > │         while method17(v110, v112) do                                        │

00:00:56 #1984 [Debug] > │             let v114 : uint64 = v112.l0                                      │

00:00:56 #1985 [Debug] > │             let struct (v115 : UH4, v116 : int64) = v112.l1, v112.l2         │

00:00:56 #1986 [Debug] > │             let v117 : int64 = v109.[int v114]                               │

00:00:56 #1987 [Debug] > │             let v118 : int64 = v116 + 1L                                     │

00:00:56 #1988 [Debug] > │             let v119 : uint64 = v114 + 1UL                                   │

00:00:56 #1989 [Debug] > │             let v120 : UH4 = UH4_0(v116, v117, v115)                         │

00:00:56 #1990 [Debug] > │             v112.l0 <- v119                                                  │

00:00:56 #1991 [Debug] > │             v112.l1 <- v120                                                  │

00:00:56 #1992 [Debug] > │             v112.l2 <- v118                                                  │

00:00:56 #1993 [Debug] > │             ()                                                               │

00:00:56 #1994 [Debug] > │         let struct (v121 : UH4, v122 : int64) = v112.l1, v112.l2             │

00:00:56 #1995 [Debug] > │         let v123 : UH4 = UH4_1                                               │

00:00:56 #1996 [Debug] > │         let v124 : UH4 = method18(v121, v123)                                │

00:00:56 #1997 [Debug] > │         let v125 : (struct (int64 * int64) []) = method19(v124)              │

00:00:56 #1998 [Debug] > │         let v126 : int32 = v125.Length                                       │

00:00:56 #1999 [Debug] > │         let v127 : (struct (int64 * int64) []) = Array.zeroCreate<struct     │

00:00:56 #2000 [Debug] > │ (int64 * int64)> (v126)                                                      │

00:00:56 #2001 [Debug] > │         let v128 : Mut1 = {l0 = 0} : Mut1                                    │

00:00:56 #2002 [Debug] > │         while method5(v126, v128) do                                         │

00:00:56 #2003 [Debug] > │             let v130 : int32 = v128.l0                                       │

00:00:56 #2004 [Debug] > │             let struct (v131 : int64, v132 : int64) = v125.[int v130]        │

00:00:56 #2005 [Debug] > │             let v133 : int64 = v131 + 1L                                     │

00:00:56 #2006 [Debug] > │             v127.[int v130] <- struct (v133, v132)                           │

00:00:56 #2007 [Debug] > │             let v134 : int32 = v130 + 1                                      │

00:00:56 #2008 [Debug] > │             v128.l0 <- v134                                                  │

00:00:56 #2009 [Debug] > │             ()                                                               │

00:00:56 #2010 [Debug] > │         let v135 : (struct (int64 * int64) -> int64) = closure6()            │

00:00:56 #2011 [Debug] > │         let v136 : (struct (int64 * int64) []) = v127 |> Array.sortBy v135   │

00:00:56 #2012 [Debug] > │         let struct (v137 : int64, v138 : int64) = v136.[int 0]               │

00:00:56 #2013 [Debug] > │         let v139 : string = $"%A{struct (v137, v138)}"                       │

00:00:56 #2014 [Debug] > │         let v140 : bool = v106 = v108                                        │

00:00:56 #2015 [Debug] > │         let v145 : US0 =                                                     │

00:00:56 #2016 [Debug] > │             if v140 then                                                     │

00:00:56 #2017 [Debug] > │                 let v141 : System.ConsoleColor =                             │

00:00:56 #2018 [Debug] > │ System.ConsoleColor.DarkGreen                                                │

00:00:56 #2019 [Debug] > │                 US0_1(v141)                                                  │

00:00:56 #2020 [Debug] > │             else                                                             │

00:00:56 #2021 [Debug] > │                 let v143 : System.ConsoleColor = System.ConsoleColor.DarkRed │

00:00:56 #2022 [Debug] > │                 US0_1(v143)                                                  │

00:00:56 #2023 [Debug] > │         let v146 : UH2 = UH2_1                                               │

00:00:56 #2024 [Debug] > │         let v147 : UH2 = UH2_0(v139, v146)                                   │

00:00:56 #2025 [Debug] > │         let v148 : UH2 = UH2_0(v108, v147)                                   │

00:00:56 #2026 [Debug] > │         let v149 : UH2 = UH2_0(v106, v148)                                   │

00:00:56 #2027 [Debug] > │         let v150 : UH2 = UH2_0(v107, v149)                                   │

00:00:56 #2028 [Debug] > │         v102.[int v105] <- struct (v150, v145)                               │

00:00:56 #2029 [Debug] > │         let v151 : uint64 = v105 + 1UL                                       │

00:00:56 #2030 [Debug] > │         v103.l0 <- v151                                                      │

00:00:56 #2031 [Debug] > │         ()                                                                   │

00:00:56 #2032 [Debug] > │     let v152 : string = "Input"                                              │

00:00:56 #2033 [Debug] > │     let v153 : string = "Expected"                                           │

00:00:56 #2034 [Debug] > │     let v154 : string = "Result"                                             │

00:00:56 #2035 [Debug] > │     let v155 : string = "Best"                                               │

00:00:56 #2036 [Debug] > │     let v156 : UH2 = UH2_1                                                   │

00:00:56 #2037 [Debug] > │     let v157 : UH2 = UH2_0(v155, v156)                                       │

00:00:56 #2038 [Debug] > │     let v158 : UH2 = UH2_0(v154, v157)                                       │

00:00:56 #2039 [Debug] > │     let v159 : UH2 = UH2_0(v153, v158)                                       │

00:00:56 #2040 [Debug] > │     let v160 : UH2 = UH2_0(v152, v159)                                       │

00:00:56 #2041 [Debug] > │     let v161 : US0 = US0_0                                                   │

00:00:56 #2042 [Debug] > │     let v162 : string = "---"                                                │

00:00:56 #2043 [Debug] > │     let v163 : UH2 = UH2_1                                                   │

00:00:56 #2044 [Debug] > │     let v164 : UH2 = UH2_0(v162, v163)                                       │

00:00:56 #2045 [Debug] > │     let v165 : UH2 = UH2_0(v162, v164)                                       │

00:00:56 #2046 [Debug] > │     let v166 : UH2 = UH2_0(v162, v165)                                       │

00:00:56 #2047 [Debug] > │     let v167 : UH2 = UH2_0(v162, v166)                                       │

00:00:56 #2048 [Debug] > │     let v168 : US0 = US0_0                                                   │

00:00:56 #2049 [Debug] > │     let v169 : UH5 = UH5_1                                                   │

00:00:56 #2050 [Debug] > │     let v170 : UH5 = UH5_0(v167, v168, v169)                                 │

00:00:56 #2051 [Debug] > │     let v171 : UH5 = UH5_0(v160, v161, v170)                                 │

00:00:56 #2052 [Debug] > │     let v172 : (struct (UH2 * US0) []) = method22(v171)                      │

00:00:56 #2053 [Debug] > │     let v173 : uint64 = System.Convert.ToUInt64 v172.Length                  │

00:00:56 #2054 [Debug] > │     let v174 : uint64 = System.Convert.ToUInt64 v102.Length                  │

00:00:56 #2055 [Debug] > │     let v175 : uint64 = v173 + v174                                          │

00:00:56 #2056 [Debug] > │     let v176 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 *      │

00:00:56 #2057 [Debug] > │ US0)> (System.Convert.ToInt32(v175))                                         │

00:00:56 #2058 [Debug] > │     let v177 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:56 #2059 [Debug] > │     while method4(v175, v177) do                                             │

00:00:56 #2060 [Debug] > │         let v179 : uint64 = v177.l0                                          │

00:00:56 #2061 [Debug] > │         let v180 : bool = v179 < v173                                        │

00:00:56 #2062 [Debug] > │         let struct (v186 : UH2, v187 : US0) =                                │

00:00:56 #2063 [Debug] > │             if v180 then                                                     │

00:00:56 #2064 [Debug] > │                 let struct (v181 : UH2, v182 : US0) = v172.[int v179]        │

00:00:56 #2065 [Debug] > │                 struct (v181, v182)                                          │

00:00:56 #2066 [Debug] > │             else                                                             │

00:00:56 #2067 [Debug] > │                 let v183 : uint64 = v179 - v173                              │

00:00:56 #2068 [Debug] > │                 let struct (v184 : UH2, v185 : US0) = v102.[int v183]        │

00:00:56 #2069 [Debug] > │                 struct (v184, v185)                                          │

00:00:56 #2070 [Debug] > │         v176.[int v179] <- struct (v186, v187)                               │

00:00:56 #2071 [Debug] > │         let v188 : uint64 = v179 + 1UL                                       │

00:00:56 #2072 [Debug] > │         v177.l0 <- v188                                                      │

00:00:56 #2073 [Debug] > │         ()                                                                   │

00:00:56 #2074 [Debug] > │     let v189 : uint64 = System.Convert.ToUInt64 v176.Length                  │

00:00:56 #2075 [Debug] > │     let v190 : ((string []) []) = Array.zeroCreate<(string [])>              │

00:00:56 #2076 [Debug] > │ (System.Convert.ToInt32(v189))                                               │

00:00:56 #2077 [Debug] > │     let v191 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:56 #2078 [Debug] > │     while method4(v189, v191) do                                             │

00:00:56 #2079 [Debug] > │         let v193 : uint64 = v191.l0                                          │

00:00:56 #2080 [Debug] > │         let struct (v194 : UH2, v195 : US0) = v176.[int v193]                │

00:00:56 #2081 [Debug] > │         let v196 : (string []) = method25(v194)                              │

00:00:56 #2082 [Debug] > │         v190.[int v193] <- v196                                              │

00:00:56 #2083 [Debug] > │         let v197 : uint64 = v193 + 1UL                                       │

00:00:56 #2084 [Debug] > │         v191.l0 <- v197                                                      │

00:00:56 #2085 [Debug] > │         ()                                                                   │

00:00:56 #2086 [Debug] > │     let v198 : ((string []) []) = v190 |> Array.transpose                    │

00:00:56 #2087 [Debug] > │     let v199 : uint64 = System.Convert.ToUInt64 v198.Length                  │

00:00:56 #2088 [Debug] > │     let v200 : (int64 []) = Array.zeroCreate<int64>                          │

00:00:56 #2089 [Debug] > │ (System.Convert.ToInt32(v199))                                               │

00:00:56 #2090 [Debug] > │     let v201 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:56 #2091 [Debug] > │     while method4(v199, v201) do                                             │

00:00:56 #2092 [Debug] > │         let v203 : uint64 = v201.l0                                          │

00:00:56 #2093 [Debug] > │         let v204 : (string []) = v198.[int v203]                             │

00:00:56 #2094 [Debug] > │         let v205 : uint64 = System.Convert.ToUInt64 v204.Length              │

00:00:56 #2095 [Debug] > │         let v206 : (int64 []) = Array.zeroCreate<int64>                      │

00:00:56 #2096 [Debug] > │ (System.Convert.ToInt32(v205))                                               │

00:00:56 #2097 [Debug] > │         let v207 : Mut0 = {l0 = 0UL} : Mut0                                  │

00:00:56 #2098 [Debug] > │         while method4(v205, v207) do                                         │

00:00:56 #2099 [Debug] > │             let v209 : uint64 = v207.l0                                      │

00:00:56 #2100 [Debug] > │             let v210 : string = v204.[int v209]                              │

00:00:56 #2101 [Debug] > │             let v211 : int64 = System.Convert.ToInt64 v210.Length            │

00:00:56 #2102 [Debug] > │             v206.[int v209] <- v211                                          │

00:00:56 #2103 [Debug] > │             let v212 : uint64 = v209 + 1UL                                   │

00:00:56 #2104 [Debug] > │             v207.l0 <- v212                                                  │

00:00:56 #2105 [Debug] > │             ()                                                               │

00:00:56 #2106 [Debug] > │         let v213 : (int64 []) = v206 |> Array.sortDescending                 │

00:00:56 #2107 [Debug] > │         let v214 : int64 option = v213 |> Array.tryItem 0                    │

00:00:56 #2108 [Debug] > │         let v215 : (int64 -> US1) = closure7()                               │

00:00:56 #2109 [Debug] > │         let v216 : US1 = US1_0                                               │

00:00:56 #2110 [Debug] > │         let v217 : US1 = v214 |> Option.map v215 |> Option.defaultValue v216 │

00:00:56 #2111 [Debug] > │         let v220 : int64 =                                                   │

00:00:56 #2112 [Debug] > │             match v217 with                                                  │

00:00:56 #2113 [Debug] > │             | US1_0 -> (* None *)                                            │

00:00:56 #2114 [Debug] > │                 0L                                                           │

00:00:56 #2115 [Debug] > │             | US1_1(v218) -> (* Some *)                                      │

00:00:56 #2116 [Debug] > │                 v218                                                         │

00:00:56 #2117 [Debug] > │         v200.[int v203] <- v220                                              │

00:00:56 #2118 [Debug] > │         let v221 : uint64 = v203 + 1UL                                       │

00:00:56 #2119 [Debug] > │         v201.l0 <- v221                                                      │

00:00:56 #2120 [Debug] > │         ()                                                                   │

00:00:56 #2121 [Debug] > │     let v222 : uint64 = System.Convert.ToUInt64 v200.Length                  │

00:00:56 #2122 [Debug] > │     let v223 : UH6 = UH6_1                                                   │

00:00:56 #2123 [Debug] > │     let v224 : Mut3 = {l0 = 0UL; l1 = v223; l2 = 0} : Mut3                   │

00:00:56 #2124 [Debug] > │     while method28(v222, v224) do                                            │

00:00:56 #2125 [Debug] > │         let v226 : uint64 = v224.l0                                          │

00:00:56 #2126 [Debug] > │         let struct (v227 : UH6, v228 : int32) = v224.l1, v224.l2             │

00:00:56 #2127 [Debug] > │         let v229 : int64 = v200.[int v226]                                   │

00:00:56 #2128 [Debug] > │         let v230 : int32 = v228 + 1                                          │

00:00:56 #2129 [Debug] > │         let v231 : uint64 = v226 + 1UL                                       │

00:00:56 #2130 [Debug] > │         let v232 : UH6 = UH6_0(v228, v229, v227)                             │

00:00:56 #2131 [Debug] > │         v224.l0 <- v231                                                      │

00:00:56 #2132 [Debug] > │         v224.l1 <- v232                                                      │

00:00:56 #2133 [Debug] > │         v224.l2 <- v230                                                      │

00:00:56 #2134 [Debug] > │         ()                                                                   │

00:00:56 #2135 [Debug] > │     let struct (v233 : UH6, v234 : int32) = v224.l1, v224.l2                 │

00:00:56 #2136 [Debug] > │     let v235 : UH6 = UH6_1                                                   │

00:00:56 #2137 [Debug] > │     let v236 : UH6 = method29(v233, v235)                                    │

00:00:56 #2138 [Debug] > │     let v237 : (struct (int32 * int64) []) = method30(v236)                  │

00:00:56 #2139 [Debug] > │     let v238 : Map<int32, int64> = v237 |> Array.map (fun (struct (a, b)) -> │

00:00:56 #2140 [Debug] > │ a, b) |> Map.ofArray                                                         │

00:00:56 #2141 [Debug] > │     let v239 : (struct ((string []) * US0) []) = Array.zeroCreate<struct     │

00:00:56 #2142 [Debug] > │ ((string []) * US0)> (System.Convert.ToInt32(v189))                          │

00:00:56 #2143 [Debug] > │     let v240 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:56 #2144 [Debug] > │     while method4(v189, v240) do                                             │

00:00:56 #2145 [Debug] > │         let v242 : uint64 = v240.l0                                          │

00:00:56 #2146 [Debug] > │         let struct (v243 : UH2, v244 : US0) = v176.[int v242]                │

00:00:56 #2147 [Debug] > │         let v245 : UH7 = UH7_1                                               │

00:00:56 #2148 [Debug] > │         let v246 : int32 = 0                                                 │

00:00:56 #2149 [Debug] > │         let struct (v247 : UH7, v248 : int32) = method33(v243, v245, v246)   │

00:00:56 #2150 [Debug] > │         let v249 : UH7 = UH7_1                                               │

00:00:56 #2151 [Debug] > │         let v250 : UH7 = method34(v247, v249)                                │

00:00:56 #2152 [Debug] > │         let v251 : UH2 = UH2_1                                               │

00:00:56 #2153 [Debug] > │         let v252 : UH2 = method35(v238, v250, v251)                          │

00:00:56 #2154 [Debug] > │         let v253 : (string []) = method9(v252)                               │

00:00:56 #2155 [Debug] > │         v239.[int v242] <- struct (v253, v244)                               │

00:00:56 #2156 [Debug] > │         let v254 : uint64 = v242 + 1UL                                       │

00:00:56 #2157 [Debug] > │         v240.l0 <- v254                                                      │

00:00:56 #2158 [Debug] > │         ()                                                                   │

00:00:56 #2159 [Debug] > │     System.Console.WriteLine v2                                              │

00:00:56 #2160 [Debug] > │     let v255 : uint64 = System.Convert.ToUInt64 v239.Length                  │

00:00:56 #2161 [Debug] > │     let v256 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:56 #2162 [Debug] > │     while method4(v255, v256) do                                             │

00:00:56 #2163 [Debug] > │         let v258 : uint64 = v256.l0                                          │

00:00:56 #2164 [Debug] > │         let struct (v259 : (string []), v260 : US0) = v239.[int v258]        │

00:00:56 #2165 [Debug] > │         match v260 with                                                      │

00:00:56 #2166 [Debug] > │         | US0_0 -> (* None *)                                                │

00:00:56 #2167 [Debug] > │             #if FABLE_COMPILER_RUST                                          │

00:00:56 #2168 [Debug] > │             let v264 : (unit -> unit) = closure8()                           │

00:00:56 #2169 [Debug] > │             v264 ()                                                          │

00:00:56 #2170 [Debug] > │             #else                                                            │

00:00:56 #2171 [Debug] > │             let v265 : (unit -> unit) = closure9()                           │

00:00:56 #2172 [Debug] > │             v265 ()                                                          │

00:00:56 #2173 [Debug] > │             #endif                                                           │

00:00:56 #2174 [Debug] > │             ()                                                               │

00:00:56 #2175 [Debug] > │         | US0_1(v261) -> (* Some *)                                          │

00:00:56 #2176 [Debug] > │             #if FABLE_COMPILER_RUST                                          │

00:00:56 #2177 [Debug] > │             let v262 : (unit -> unit) = closure10()                          │

00:00:56 #2178 [Debug] > │             v262 ()                                                          │

00:00:56 #2179 [Debug] > │             #else                                                            │

00:00:56 #2180 [Debug] > │             let v263 : (unit -> unit) = closure11(v261)                      │

00:00:56 #2181 [Debug] > │             v263 ()                                                          │

00:00:56 #2182 [Debug] > │             #endif                                                           │

00:00:56 #2183 [Debug] > │             ()                                                               │

00:00:56 #2184 [Debug] > │         let v266 : string = "\t| "                                           │

00:00:56 #2185 [Debug] > │         let v267 : string = System.String.Join (v266, v259)                  │

00:00:56 #2186 [Debug] > │         System.Console.WriteLine v267                                        │

00:00:56 #2187 [Debug] > │         #if FABLE_COMPILER_RUST                                              │

00:00:56 #2188 [Debug] > │         let v268 : (unit -> unit) = closure8()                               │

00:00:56 #2189 [Debug] > │         v268 ()                                                              │

00:00:56 #2190 [Debug] > │         #else                                                                │

00:00:56 #2191 [Debug] > │         let v269 : (unit -> unit) = closure9()                               │

00:00:56 #2192 [Debug] > │         v269 ()                                                              │

00:00:56 #2193 [Debug] > │         #endif                                                               │

00:00:56 #2194 [Debug] > │         let v270 : uint64 = v258 + 1UL                                       │

00:00:56 #2195 [Debug] > │         v256.l0 <- v270                                                      │

00:00:56 #2196 [Debug] > │         ()                                                                   │

00:00:56 #2197 [Debug] > │     let v271 : ((float []) []) = Array.zeroCreate<(float [])>                │

00:00:56 #2198 [Debug] > │ (System.Convert.ToInt32(v101))                                               │

00:00:56 #2199 [Debug] > │     let v272 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:56 #2200 [Debug] > │     while method4(v101, v272) do                                             │

00:00:56 #2201 [Debug] > │         let v274 : uint64 = v272.l0                                          │

00:00:56 #2202 [Debug] > │         let struct (v275 : string, v276 : string, v277 : string, v278 :      │

00:00:56 #2203 [Debug] > │ (int64 [])) = v24.[int v274]                                                 │

00:00:56 #2204 [Debug] > │         let v279 : (int64 -> float) = float                                  │

00:00:56 #2205 [Debug] > │         let v280 : uint64 = System.Convert.ToUInt64 v278.Length              │

00:00:56 #2206 [Debug] > │         let v281 : (float []) = Array.zeroCreate<float>                      │

00:00:56 #2207 [Debug] > │ (System.Convert.ToInt32(v280))                                               │

00:00:56 #2208 [Debug] > │         let v282 : Mut0 = {l0 = 0UL} : Mut0                                  │

00:00:56 #2209 [Debug] > │         while method4(v280, v282) do                                         │

00:00:56 #2210 [Debug] > │             let v284 : uint64 = v282.l0                                      │

00:00:56 #2211 [Debug] > │             let v285 : int64 = v278.[int v284]                               │

00:00:56 #2212 [Debug] > │             let v286 : float = v279 v285                                     │

00:00:56 #2213 [Debug] > │             v281.[int v284] <- v286                                          │

00:00:56 #2214 [Debug] > │             let v287 : uint64 = v284 + 1UL                                   │

00:00:56 #2215 [Debug] > │             v282.l0 <- v287                                                  │

00:00:56 #2216 [Debug] > │             ()                                                               │

00:00:56 #2217 [Debug] > │         v271.[int v274] <- v281                                              │

00:00:56 #2218 [Debug] > │         let v288 : uint64 = v274 + 1UL                                       │

00:00:56 #2219 [Debug] > │         v272.l0 <- v288                                                      │

00:00:56 #2220 [Debug] > │         ()                                                                   │

00:00:56 #2221 [Debug] > │     let v289 : ((float []) []) = v271 |> Array.transpose                     │

00:00:56 #2222 [Debug] > │     let v290 : uint64 = System.Convert.ToUInt64 v289.Length                  │

00:00:56 #2223 [Debug] > │     let v291 : (float []) = Array.zeroCreate<float>                          │

00:00:56 #2224 [Debug] > │ (System.Convert.ToInt32(v290))                                               │

00:00:56 #2225 [Debug] > │     let v292 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:56 #2226 [Debug] > │     while method4(v290, v292) do                                             │

00:00:56 #2227 [Debug] > │         let v294 : uint64 = v292.l0                                          │

00:00:56 #2228 [Debug] > │         let v295 : (float []) = v289.[int v294]                              │

00:00:56 #2229 [Debug] > │         let v296 : float = v295 |> Array.average                             │

00:00:56 #2230 [Debug] > │         v291.[int v294] <- v296                                              │

00:00:56 #2231 [Debug] > │         let v297 : uint64 = v294 + 1UL                                       │

00:00:56 #2232 [Debug] > │         v292.l0 <- v297                                                      │

00:00:56 #2233 [Debug] > │         ()                                                                   │

00:00:56 #2234 [Debug] > │     let v298 : (float -> int64) = int64                                      │

00:00:56 #2235 [Debug] > │     let v299 : uint64 = System.Convert.ToUInt64 v291.Length                  │

00:00:56 #2236 [Debug] > │     let v300 : (int64 []) = Array.zeroCreate<int64>                          │

00:00:56 #2237 [Debug] > │ (System.Convert.ToInt32(v299))                                               │

00:00:56 #2238 [Debug] > │     let v301 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:56 #2239 [Debug] > │     while method4(v299, v301) do                                             │

00:00:56 #2240 [Debug] > │         let v303 : uint64 = v301.l0                                          │

00:00:56 #2241 [Debug] > │         let v304 : float = v291.[int v303]                                   │

00:00:56 #2242 [Debug] > │         let v305 : int64 = v298 v304                                         │

00:00:56 #2243 [Debug] > │         v300.[int v303] <- v305                                              │

00:00:56 #2244 [Debug] > │         let v306 : uint64 = v303 + 1UL                                       │

00:00:56 #2245 [Debug] > │         v301.l0 <- v306                                                      │

00:00:56 #2246 [Debug] > │         ()                                                                   │

00:00:56 #2247 [Debug] > │     let v307 : uint64 = System.Convert.ToUInt64 v300.Length                  │

00:00:56 #2248 [Debug] > │     let v308 : UH6 = UH6_1                                                   │

00:00:56 #2249 [Debug] > │     let v309 : Mut3 = {l0 = 0UL; l1 = v308; l2 = 0} : Mut3                   │

00:00:56 #2250 [Debug] > │     while method28(v307, v309) do                                            │

00:00:56 #2251 [Debug] > │         let v311 : uint64 = v309.l0                                          │

00:00:56 #2252 [Debug] > │         let struct (v312 : UH6, v313 : int32) = v309.l1, v309.l2             │

00:00:56 #2253 [Debug] > │         let v314 : int64 = v300.[int v311]                                   │

00:00:56 #2254 [Debug] > │         let v315 : int32 = v313 + 1                                          │

00:00:56 #2255 [Debug] > │         let v316 : uint64 = v311 + 1UL                                       │

00:00:56 #2256 [Debug] > │         let v317 : UH6 = UH6_0(v313, v314, v312)                             │

00:00:56 #2257 [Debug] > │         v309.l0 <- v316                                                      │

00:00:56 #2258 [Debug] > │         v309.l1 <- v317                                                      │

00:00:56 #2259 [Debug] > │         v309.l2 <- v315                                                      │

00:00:56 #2260 [Debug] > │         ()                                                                   │

00:00:56 #2261 [Debug] > │     let struct (v318 : UH6, v319 : int32) = v309.l1, v309.l2                 │

00:00:56 #2262 [Debug] > │     let v320 : UH6 = UH6_1                                                   │

00:00:56 #2263 [Debug] > │     let v321 : UH6 = method29(v318, v320)                                    │

00:00:56 #2264 [Debug] > │     let v322 : (struct (int32 * int64) []) = method36(v321)                  │

00:00:56 #2265 [Debug] > │     System.Console.WriteLine v2                                              │

00:00:56 #2266 [Debug] > │     let v323 : string = "Average Ranking  "                                  │

00:00:56 #2267 [Debug] > │     System.Console.WriteLine v323                                            │

00:00:56 #2268 [Debug] > │     let v324 : (struct (int32 * int64) -> int64) = closure12()               │

00:00:56 #2269 [Debug] > │     let v325 : (struct (int32 * int64) []) = v322 |> Array.sortBy v324       │

00:00:56 #2270 [Debug] > │     let v326 : uint64 = System.Convert.ToUInt64 v325.Length                  │

00:00:56 #2271 [Debug] > │     let v327 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:56 #2272 [Debug] > │     while method4(v326, v327) do                                             │

00:00:56 #2273 [Debug] > │         let v329 : uint64 = v327.l0                                          │

00:00:56 #2274 [Debug] > │         let struct (v330 : int32, v331 : int64) = v325.[int v329]            │

00:00:56 #2275 [Debug] > │         let v332 : string = $"Test case %d{v330 + 1}. Average Time: %A{v331} │

00:00:56 #2276 [Debug] > │ "                                                                            │

00:00:56 #2277 [Debug] > │         System.Console.WriteLine v332                                        │

00:00:56 #2278 [Debug] > │         let v333 : uint64 = v329 + 1UL                                       │

00:00:56 #2279 [Debug] > │         v327.l0 <- v333                                                      │

00:00:56 #2280 [Debug] > │         ()                                                                   │

00:00:56 #2281 [Debug] > │     ()                                                                       │

00:00:56 #2282 [Debug] > │ and method0 () : unit =                                                      │

00:00:56 #2283 [Debug] > │     let v0 : (unit -> unit) = closure0()                                     │

00:00:56 #2284 [Debug] > │     let v1 : string = nameof v0                                              │

00:00:56 #2285 [Debug] > │     let v2 : string = ""                                                     │

00:00:56 #2286 [Debug] > │     System.Console.WriteLine v2                                              │

00:00:56 #2287 [Debug] > │     System.Console.WriteLine v2                                              │

00:00:56 #2288 [Debug] > │     let v3 : string = $"Test: {v1}"                                          │

00:00:56 #2289 [Debug] > │     System.Console.WriteLine v3                                              │

00:00:56 #2290 [Debug] > │     let v4 : string = "abc"                                                  │

00:00:56 #2291 [Debug] > │     let v5 : string = "bca cab abc"                                          │

00:00:56 #2292 [Debug] > │     let v6 : string = "abcde"                                                │

00:00:56 #2293 [Debug] > │     let v7 : string = "bcdea cdeab deabc eabcd abcde"                        │

00:00:56 #2294 [Debug] > │     let v8 : string = "abcdefghi"                                            │

00:00:56 #2295 [Debug] > │     let v9 : string = "bcdefghia cdefghiab defghiabc efghiabcd fghiabcde     │

00:00:56 #2296 [Debug] > │ ghiabcdef hiabcdefg iabcdefgh abcdefghi"                                     │

00:00:56 #2297 [Debug] > │     let v10 : string = "abab"                                                │

00:00:56 #2298 [Debug] > │     let v11 : string = "baba abab baba abab"                                 │

00:00:56 #2299 [Debug] > │     let v12 : string = "aa"                                                  │

00:00:56 #2300 [Debug] > │     let v13 : string = "aa aa"                                               │

00:00:56 #2301 [Debug] > │     let v14 : string = "z"                                                   │

00:00:56 #2302 [Debug] > │     let v15 : UH0 = UH0_1                                                    │

00:00:56 #2303 [Debug] > │     let v16 : UH0 = UH0_0(v14, v14, v15)                                     │

00:00:56 #2304 [Debug] > │     let v17 : UH0 = UH0_0(v12, v13, v16)                                     │

00:00:56 #2305 [Debug] > │     let v18 : UH0 = UH0_0(v10, v11, v17)                                     │

00:00:56 #2306 [Debug] > │     let v19 : UH0 = UH0_0(v8, v9, v18)                                       │

00:00:56 #2307 [Debug] > │     let v20 : UH0 = UH0_0(v6, v7, v19)                                       │

00:00:56 #2308 [Debug] > │     let v21 : UH0 = UH0_0(v4, v5, v20)                                       │

00:00:56 #2309 [Debug] > │     let v22 : (struct (string * string) []) = method1(v21)                   │

00:00:56 #2310 [Debug] > │     let v23 : uint64 = System.Convert.ToUInt64 v22.Length                    │

00:00:56 #2311 [Debug] > │     let v24 : (struct (string * string * string * (int64 [])) []) =          │

00:00:56 #2312 [Debug] > │ Array.zeroCreate<struct (string * string * string * (int64 []))>             │

00:00:56 #2313 [Debug] > │ (System.Convert.ToInt32(v23))                                                │

00:00:56 #2314 [Debug] > │     let v25 : Mut0 = {l0 = 0UL} : Mut0                                       │

00:00:56 #2315 [Debug] > │     while method4(v23, v25) do                                               │

00:00:56 #2316 [Debug] > │         let v27 : uint64 = v25.l0                                            │

00:00:56 #2317 [Debug] > │         let struct (v28 : string, v29 : string) = v22.[int v27]              │

00:00:56 #2318 [Debug] > │         let v30 : string = $"%A{v28}"                                        │

00:00:56 #2319 [Debug] > │         System.Console.WriteLine v2                                          │

00:00:56 #2320 [Debug] > │         let v31 : string = $"Solution: {v30}  "                              │

00:00:56 #2321 [Debug] > │         System.Console.WriteLine v31                                         │

00:00:56 #2322 [Debug] > │         let v32 : int32 = 0                                                  │

00:00:56 #2323 [Debug] > │         let v33 : string = "F"                                               │

00:00:56 #2324 [Debug] > │         let v34 : (string -> string) = closure1()                            │

00:00:56 #2325 [Debug] > │         let v35 : int32 = 1                                                  │

00:00:56 #2326 [Debug] > │         let v36 : string = "FA"                                              │

00:00:56 #2327 [Debug] > │         let v37 : (string -> string) = closure2()                            │

00:00:56 #2328 [Debug] > │         let v38 : UH3 = UH3_1                                                │

00:00:56 #2329 [Debug] > │         let v39 : UH3 = UH3_0(v35, v36, v37, v38)                            │

00:00:56 #2330 [Debug] > │         let v40 : UH3 = UH3_0(v32, v33, v34, v39)                            │

00:00:56 #2331 [Debug] > │         let v41 : (struct (int32 * string * (string -> string)) []) =        │

00:00:56 #2332 [Debug] > │ method12(v40)                                                                │

00:00:56 #2333 [Debug] > │         let v42 : uint64 = System.Convert.ToUInt64 v41.Length                │

00:00:56 #2334 [Debug] > │         let v43 : (struct (string * int64) []) = Array.zeroCreate<struct     │

00:00:56 #2335 [Debug] > │ (string * int64)> (System.Convert.ToInt32(v42))                              │

00:00:56 #2336 [Debug] > │         let v44 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:00:56 #2337 [Debug] > │         while method4(v42, v44) do                                           │

00:00:56 #2338 [Debug] > │             let v46 : uint64 = v44.l0                                        │

00:00:56 #2339 [Debug] > │             let struct (v47 : int32, v48 : string, v49 : (string -> string)) │

00:00:56 #2340 [Debug] > │ = v41.[int v46]                                                              │

00:00:56 #2341 [Debug] > │             #if FABLE_COMPILER_RUST                                          │

00:00:56 #2342 [Debug] > │             let v50 : (unit -> unit) = closure3()                            │

00:00:56 #2343 [Debug] > │             v50 ()                                                           │

00:00:56 #2344 [Debug] > │             #else                                                            │

00:00:56 #2345 [Debug] > │             let v51 : (unit -> unit) = closure4()                            │

00:00:56 #2346 [Debug] > │             v51 ()                                                           │

00:00:56 #2347 [Debug] > │             #endif                                                           │

00:00:56 #2348 [Debug] > │             let v52 : (unit -> System.Diagnostics.Stopwatch) =               │

00:00:56 #2349 [Debug] > │ System.Diagnostics.Stopwatch                                                 │

00:00:56 #2350 [Debug] > │             let v53 : System.Diagnostics.Stopwatch = v52 ()                  │

00:00:56 #2351 [Debug] > │             v53.Start ()                                                     │

00:00:56 #2352 [Debug] > │             let v54 : int64 = v53.ElapsedMilliseconds                        │

00:00:56 #2353 [Debug] > │             let v55 : (int32 []) = Array.zeroCreate<int32> (2000001)         │

00:00:56 #2354 [Debug] > │             let v56 : Mut1 = {l0 = 0} : Mut1                                 │

00:00:56 #2355 [Debug] > │             while method15(v56) do                                           │

00:00:56 #2356 [Debug] > │                 let v58 : int32 = v56.l0                                     │

00:00:56 #2357 [Debug] > │                 v55.[int v58] <- v58                                         │

00:00:56 #2358 [Debug] > │                 let v59 : int32 = v58 + 1                                    │

00:00:56 #2359 [Debug] > │                 v56.l0 <- v59                                                │

00:00:56 #2360 [Debug] > │                 ()                                                           │

00:00:56 #2361 [Debug] > │             let v60 : (int32 -> string) = closure5(v28, v49)                 │

00:00:56 #2362 [Debug] > │             let v61 : (string []) = v55 |> Array.Parallel.map v60            │

00:00:56 #2363 [Debug] > │             let v62 : int32 = v61.Length                                     │

00:00:56 #2364 [Debug] > │             let v63 : int32 = v62 - 1                                        │

00:00:56 #2365 [Debug] > │             let v64 : string = v61.[int v63]                                 │

00:00:56 #2366 [Debug] > │             let v65 : int64 = v53.ElapsedMilliseconds                        │

00:00:56 #2367 [Debug] > │             let v66 : int64 = v65 - v54                                      │

00:00:56 #2368 [Debug] > │             let v67 : string = $"Test case {v47 + 1}. {v48}. Time: {v66}  "  │

00:00:56 #2369 [Debug] > │             System.Console.WriteLine v67                                     │

00:00:56 #2370 [Debug] > │             v43.[int v46] <- struct (v64, v66)                               │

00:00:56 #2371 [Debug] > │             let v68 : uint64 = v46 + 1UL                                     │

00:00:56 #2372 [Debug] > │             v44.l0 <- v68                                                    │

00:00:56 #2373 [Debug] > │             ()                                                               │

00:00:56 #2374 [Debug] > │         let v69 : uint64 = System.Convert.ToUInt64 v43.Length                │

00:00:56 #2375 [Debug] > │         let v70 : (string []) = Array.zeroCreate<string>                     │

00:00:56 #2376 [Debug] > │ (System.Convert.ToInt32(v69))                                                │

00:00:56 #2377 [Debug] > │         let v71 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:00:56 #2378 [Debug] > │         while method4(v69, v71) do                                           │

00:00:56 #2379 [Debug] > │             let v73 : uint64 = v71.l0                                        │

00:00:56 #2380 [Debug] > │             let struct (v74 : string, v75 : int64) = v43.[int v73]           │

00:00:56 #2381 [Debug] > │             v70.[int v73] <- v74                                             │

00:00:56 #2382 [Debug] > │             let v76 : uint64 = v73 + 1UL                                     │

00:00:56 #2383 [Debug] > │             v71.l0 <- v76                                                    │

00:00:56 #2384 [Debug] > │             ()                                                               │

00:00:56 #2385 [Debug] > │         let v77 : uint64 = System.Convert.ToUInt64 v70.Length                │

00:00:56 #2386 [Debug] > │         let v78 : bool = v77 <= 1UL                                          │

00:00:56 #2387 [Debug] > │         if v78 then                                                          │

00:00:56 #2388 [Debug] > │             ()                                                               │

00:00:56 #2389 [Debug] > │         else                                                                 │

00:00:56 #2390 [Debug] > │             let v79 : string = v70.[int 0UL]                                 │

00:00:56 #2391 [Debug] > │             let v80 : uint64 = 0UL                                           │

00:00:56 #2392 [Debug] > │             let v81 : bool = method16(v79, v70, v80)                         │

00:00:56 #2393 [Debug] > │             if v81 then                                                      │

00:00:56 #2394 [Debug] > │                 ()                                                           │

00:00:56 #2395 [Debug] > │             else                                                             │

00:00:56 #2396 [Debug] > │                 let v82 : string = $"Challenge error: {v70}"                 │

00:00:56 #2397 [Debug] > │                 failwith<unit> v82                                           │

00:00:56 #2398 [Debug] > │         let v83 : string = $"%A{v29}"                                        │

00:00:56 #2399 [Debug] > │         let v84 : (string []) = Array.zeroCreate<string>                     │

00:00:56 #2400 [Debug] > │ (System.Convert.ToInt32(v69))                                                │

00:00:56 #2401 [Debug] > │         let v85 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:00:56 #2402 [Debug] > │         while method4(v69, v85) do                                           │

00:00:56 #2403 [Debug] > │             let v87 : uint64 = v85.l0                                        │

00:00:56 #2404 [Debug] > │             let struct (v88 : string, v89 : int64) = v43.[int v87]           │

00:00:56 #2405 [Debug] > │             v84.[int v87] <- v88                                             │

00:00:56 #2406 [Debug] > │             let v90 : uint64 = v87 + 1UL                                     │

00:00:56 #2407 [Debug] > │             v85.l0 <- v90                                                    │

00:00:56 #2408 [Debug] > │             ()                                                               │

00:00:56 #2409 [Debug] > │         let v91 : string = v84.[int 0UL]                                     │

00:00:56 #2410 [Debug] > │         let v92 : string = $"%A{v91}"                                        │

00:00:56 #2411 [Debug] > │         let v93 : (int64 []) = Array.zeroCreate<int64>                       │

00:00:56 #2412 [Debug] > │ (System.Convert.ToInt32(v69))                                                │

00:00:56 #2413 [Debug] > │         let v94 : Mut0 = {l0 = 0UL} : Mut0                                   │

00:00:56 #2414 [Debug] > │         while method4(v69, v94) do                                           │

00:00:56 #2415 [Debug] > │             let v96 : uint64 = v94.l0                                        │

00:00:56 #2416 [Debug] > │             let struct (v97 : string, v98 : int64) = v43.[int v96]           │

00:00:56 #2417 [Debug] > │             v93.[int v96] <- v98                                             │

00:00:56 #2418 [Debug] > │             let v99 : uint64 = v96 + 1UL                                     │

00:00:56 #2419 [Debug] > │             v94.l0 <- v99                                                    │

00:00:56 #2420 [Debug] > │             ()                                                               │

00:00:56 #2421 [Debug] > │         v24.[int v27] <- struct (v83, v30, v92, v93)                         │

00:00:56 #2422 [Debug] > │         let v100 : uint64 = v27 + 1UL                                        │

00:00:56 #2423 [Debug] > │         v25.l0 <- v100                                                       │

00:00:56 #2424 [Debug] > │         ()                                                                   │

00:00:56 #2425 [Debug] > │     let v101 : uint64 = System.Convert.ToUInt64 v24.Length                   │

00:00:56 #2426 [Debug] > │     let v102 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 *      │

00:00:56 #2427 [Debug] > │ US0)> (System.Convert.ToInt32(v101))                                         │

00:00:56 #2428 [Debug] > │     let v103 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:56 #2429 [Debug] > │     while method4(v101, v103) do                                             │

00:00:56 #2430 [Debug] > │         let v105 : uint64 = v103.l0                                          │

00:00:56 #2431 [Debug] > │         let struct (v106 : string, v107 : string, v108 : string, v109 :      │

00:00:56 #2432 [Debug] > │ (int64 [])) = v24.[int v105]                                                 │

00:00:56 #2433 [Debug] > │         let v110 : uint64 = System.Convert.ToUInt64 v109.Length              │

00:00:56 #2434 [Debug] > │         let v111 : UH4 = UH4_1                                               │

00:00:56 #2435 [Debug] > │         let v112 : Mut2 = {l0 = 0UL; l1 = v111; l2 = 0L} : Mut2              │

00:00:56 #2436 [Debug] > │         while method17(v110, v112) do                                        │

00:00:56 #2437 [Debug] > │             let v114 : uint64 = v112.l0                                      │

00:00:56 #2438 [Debug] > │             let struct (v115 : UH4, v116 : int64) = v112.l1, v112.l2         │

00:00:56 #2439 [Debug] > │             let v117 : int64 = v109.[int v114]                               │

00:00:56 #2440 [Debug] > │             let v118 : int64 = v116 + 1L                                     │

00:00:56 #2441 [Debug] > │             let v119 : uint64 = v114 + 1UL                                   │

00:00:56 #2442 [Debug] > │             let v120 : UH4 = UH4_0(v116, v117, v115)                         │

00:00:56 #2443 [Debug] > │             v112.l0 <- v119                                                  │

00:00:56 #2444 [Debug] > │             v112.l1 <- v120                                                  │

00:00:56 #2445 [Debug] > │             v112.l2 <- v118                                                  │

00:00:56 #2446 [Debug] > │             ()                                                               │

00:00:56 #2447 [Debug] > │         let struct (v121 : UH4, v122 : int64) = v112.l1, v112.l2             │

00:00:56 #2448 [Debug] > │         let v123 : UH4 = UH4_1                                               │

00:00:56 #2449 [Debug] > │         let v124 : UH4 = method18(v121, v123)                                │

00:00:56 #2450 [Debug] > │         let v125 : (struct (int64 * int64) []) = method19(v124)              │

00:00:56 #2451 [Debug] > │         let v126 : int32 = v125.Length                                       │

00:00:56 #2452 [Debug] > │         let v127 : (struct (int64 * int64) []) = Array.zeroCreate<struct     │

00:00:56 #2453 [Debug] > │ (int64 * int64)> (v126)                                                      │

00:00:56 #2454 [Debug] > │         let v128 : Mut1 = {l0 = 0} : Mut1                                    │

00:00:56 #2455 [Debug] > │         while method5(v126, v128) do                                         │

00:00:56 #2456 [Debug] > │             let v130 : int32 = v128.l0                                       │

00:00:56 #2457 [Debug] > │             let struct (v131 : int64, v132 : int64) = v125.[int v130]        │

00:00:56 #2458 [Debug] > │             let v133 : int64 = v131 + 1L                                     │

00:00:56 #2459 [Debug] > │             v127.[int v130] <- struct (v133, v132)                           │

00:00:56 #2460 [Debug] > │             let v134 : int32 = v130 + 1                                      │

00:00:56 #2461 [Debug] > │             v128.l0 <- v134                                                  │

00:00:56 #2462 [Debug] > │             ()                                                               │

00:00:56 #2463 [Debug] > │         let v135 : (struct (int64 * int64) -> int64) = closure6()            │

00:00:56 #2464 [Debug] > │         let v136 : (struct (int64 * int64) []) = v127 |> Array.sortBy v135   │

00:00:56 #2465 [Debug] > │         let struct (v137 : int64, v138 : int64) = v136.[int 0]               │

00:00:56 #2466 [Debug] > │         let v139 : string = $"%A{struct (v137, v138)}"                       │

00:00:56 #2467 [Debug] > │         let v140 : bool = v106 = v108                                        │

00:00:56 #2468 [Debug] > │         let v145 : US0 =                                                     │

00:00:56 #2469 [Debug] > │             if v140 then                                                     │

00:00:56 #2470 [Debug] > │                 let v141 : System.ConsoleColor =                             │

00:00:56 #2471 [Debug] > │ System.ConsoleColor.DarkGreen                                                │

00:00:56 #2472 [Debug] > │                 US0_1(v141)                                                  │

00:00:56 #2473 [Debug] > │             else                                                             │

00:00:56 #2474 [Debug] > │                 let v143 : System.ConsoleColor = System.ConsoleColor.DarkRed │

00:00:56 #2475 [Debug] > │                 US0_1(v143)                                                  │

00:00:56 #2476 [Debug] > │         let v146 : UH2 = UH2_1                                               │

00:00:56 #2477 [Debug] > │         let v147 : UH2 = UH2_0(v139, v146)                                   │

00:00:56 #2478 [Debug] > │         let v148 : UH2 = UH2_0(v108, v147)                                   │

00:00:56 #2479 [Debug] > │         let v149 : UH2 = UH2_0(v106, v148)                                   │

00:00:56 #2480 [Debug] > │         let v150 : UH2 = UH2_0(v107, v149)                                   │

00:00:56 #2481 [Debug] > │         v102.[int v105] <- struct (v150, v145)                               │

00:00:56 #2482 [Debug] > │         let v151 : uint64 = v105 + 1UL                                       │

00:00:56 #2483 [Debug] > │         v103.l0 <- v151                                                      │

00:00:56 #2484 [Debug] > │         ()                                                                   │

00:00:56 #2485 [Debug] > │     let v152 : string = "Input"                                              │

00:00:56 #2486 [Debug] > │     let v153 : string = "Expected"                                           │

00:00:56 #2487 [Debug] > │     let v154 : string = "Result"                                             │

00:00:56 #2488 [Debug] > │     let v155 : string = "Best"                                               │

00:00:56 #2489 [Debug] > │     let v156 : UH2 = UH2_1                                                   │

00:00:56 #2490 [Debug] > │     let v157 : UH2 = UH2_0(v155, v156)                                       │

00:00:56 #2491 [Debug] > │     let v158 : UH2 = UH2_0(v154, v157)                                       │

00:00:56 #2492 [Debug] > │     let v159 : UH2 = UH2_0(v153, v158)                                       │

00:00:56 #2493 [Debug] > │     let v160 : UH2 = UH2_0(v152, v159)                                       │

00:00:56 #2494 [Debug] > │     let v161 : US0 = US0_0                                                   │

00:00:56 #2495 [Debug] > │     let v162 : string = "---"                                                │

00:00:56 #2496 [Debug] > │     let v163 : UH2 = UH2_1                                                   │

00:00:56 #2497 [Debug] > │     let v164 : UH2 = UH2_0(v162, v163)                                       │

00:00:56 #2498 [Debug] > │     let v165 : UH2 = UH2_0(v162, v164)                                       │

00:00:56 #2499 [Debug] > │     let v166 : UH2 = UH2_0(v162, v165)                                       │

00:00:56 #2500 [Debug] > │     let v167 : UH2 = UH2_0(v162, v166)                                       │

00:00:56 #2501 [Debug] > │     let v168 : US0 = US0_0                                                   │

00:00:56 #2502 [Debug] > │     let v169 : UH5 = UH5_1                                                   │

00:00:56 #2503 [Debug] > │     let v170 : UH5 = UH5_0(v167, v168, v169)                                 │

00:00:56 #2504 [Debug] > │     let v171 : UH5 = UH5_0(v160, v161, v170)                                 │

00:00:56 #2505 [Debug] > │     let v172 : (struct (UH2 * US0) []) = method22(v171)                      │

00:00:56 #2506 [Debug] > │     let v173 : uint64 = System.Convert.ToUInt64 v172.Length                  │

00:00:56 #2507 [Debug] > │     let v174 : uint64 = System.Convert.ToUInt64 v102.Length                  │

00:00:56 #2508 [Debug] > │     let v175 : uint64 = v173 + v174                                          │

00:00:56 #2509 [Debug] > │     let v176 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 *      │

00:00:56 #2510 [Debug] > │ US0)> (System.Convert.ToInt32(v175))                                         │

00:00:56 #2511 [Debug] > │     let v177 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:56 #2512 [Debug] > │     while method4(v175, v177) do                                             │

00:00:56 #2513 [Debug] > │         let v179 : uint64 = v177.l0                                          │

00:00:56 #2514 [Debug] > │         let v180 : bool = v179 < v173                                        │

00:00:56 #2515 [Debug] > │         let struct (v186 : UH2, v187 : US0) =                                │

00:00:56 #2516 [Debug] > │             if v180 then                                                     │

00:00:56 #2517 [Debug] > │                 let struct (v181 : UH2, v182 : US0) = v172.[int v179]        │

00:00:56 #2518 [Debug] > │                 struct (v181, v182)                                          │

00:00:56 #2519 [Debug] > │             else                                                             │

00:00:56 #2520 [Debug] > │                 let v183 : uint64 = v179 - v173                              │

00:00:56 #2521 [Debug] > │                 let struct (v184 : UH2, v185 : US0) = v102.[int v183]        │

00:00:56 #2522 [Debug] > │                 struct (v184, v185)                                          │

00:00:56 #2523 [Debug] > │         v176.[int v179] <- struct (v186, v187)                               │

00:00:56 #2524 [Debug] > │         let v188 : uint64 = v179 + 1UL                                       │

00:00:56 #2525 [Debug] > │         v177.l0 <- v188                                                      │

00:00:56 #2526 [Debug] > │         ()                                                                   │

00:00:56 #2527 [Debug] > │     let v189 : uint64 = System.Convert.ToUInt64 v176.Length                  │

00:00:56 #2528 [Debug] > │     let v190 : ((string []) []) = Array.zeroCreate<(string [])>              │

00:00:56 #2529 [Debug] > │ (System.Convert.ToInt32(v189))                                               │

00:00:56 #2530 [Debug] > │     let v191 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:56 #2531 [Debug] > │     while method4(v189, v191) do                                             │

00:00:56 #2532 [Debug] > │         let v193 : uint64 = v191.l0                                          │

00:00:56 #2533 [Debug] > │         let struct (v194 : UH2, v195 : US0) = v176.[int v193]                │

00:00:56 #2534 [Debug] > │         let v196 : (string []) = method25(v194)                              │

00:00:56 #2535 [Debug] > │         v190.[int v193] <- v196                                              │

00:00:56 #2536 [Debug] > │         let v197 : uint64 = v193 + 1UL                                       │

00:00:56 #2537 [Debug] > │         v191.l0 <- v197                                                      │

00:00:56 #2538 [Debug] > │         ()                                                                   │

00:00:56 #2539 [Debug] > │     let v198 : ((string []) []) = v190 |> Array.transpose                    │

00:00:56 #2540 [Debug] > │     let v199 : uint64 = System.Convert.ToUInt64 v198.Length                  │

00:00:56 #2541 [Debug] > │     let v200 : (int64 []) = Array.zeroCreate<int64>                          │

00:00:56 #2542 [Debug] > │ (System.Convert.ToInt32(v199))                                               │

00:00:56 #2543 [Debug] > │     let v201 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:56 #2544 [Debug] > │     while method4(v199, v201) do                                             │

00:00:56 #2545 [Debug] > │         let v203 : uint64 = v201.l0                                          │

00:00:56 #2546 [Debug] > │         let v204 : (string []) = v198.[int v203]                             │

00:00:56 #2547 [Debug] > │         let v205 : uint64 = System.Convert.ToUInt64 v204.Length              │

00:00:56 #2548 [Debug] > │         let v206 : (int64 []) = Array.zeroCreate<int64>                      │

00:00:56 #2549 [Debug] > │ (System.Convert.ToInt32(v205))                                               │

00:00:56 #2550 [Debug] > │         let v207 : Mut0 = {l0 = 0UL} : Mut0                                  │

00:00:56 #2551 [Debug] > │         while method4(v205, v207) do                                         │

00:00:56 #2552 [Debug] > │             let v209 : uint64 = v207.l0                                      │

00:00:56 #2553 [Debug] > │             let v210 : string = v204.[int v209]                              │

00:00:56 #2554 [Debug] > │             let v211 : int64 = System.Convert.ToInt64 v210.Length            │

00:00:56 #2555 [Debug] > │             v206.[int v209] <- v211                                          │

00:00:56 #2556 [Debug] > │             let v212 : uint64 = v209 + 1UL                                   │

00:00:56 #2557 [Debug] > │             v207.l0 <- v212                                                  │

00:00:56 #2558 [Debug] > │             ()                                                               │

00:00:56 #2559 [Debug] > │         let v213 : (int64 []) = v206 |> Array.sortDescending                 │

00:00:56 #2560 [Debug] > │         let v214 : int64 option = v213 |> Array.tryItem 0                    │

00:00:56 #2561 [Debug] > │         let v215 : (int64 -> US1) = closure7()                               │

00:00:56 #2562 [Debug] > │         let v216 : US1 = US1_0                                               │

00:00:56 #2563 [Debug] > │         let v217 : US1 = v214 |> Option.map v215 |> Option.defaultValue v216 │

00:00:56 #2564 [Debug] > │         let v220 : int64 =                                                   │

00:00:56 #2565 [Debug] > │             match v217 with                                                  │

00:00:56 #2566 [Debug] > │             | US1_0 -> (* None *)                                            │

00:00:56 #2567 [Debug] > │                 0L                                                           │

00:00:56 #2568 [Debug] > │             | US1_1(v218) -> (* Some *)                                      │

00:00:56 #2569 [Debug] > │                 v218                                                         │

00:00:56 #2570 [Debug] > │         v200.[int v203] <- v220                                              │

00:00:56 #2571 [Debug] > │         let v221 : uint64 = v203 + 1UL                                       │

00:00:56 #2572 [Debug] > │         v201.l0 <- v221                                                      │

00:00:56 #2573 [Debug] > │         ()                                                                   │

00:00:56 #2574 [Debug] > │     let v222 : uint64 = System.Convert.ToUInt64 v200.Length                  │

00:00:56 #2575 [Debug] > │     let v223 : UH6 = UH6_1                                                   │

00:00:56 #2576 [Debug] > │     let v224 : Mut3 = {l0 = 0UL; l1 = v223; l2 = 0} : Mut3                   │

00:00:56 #2577 [Debug] > │     while method28(v222, v224) do                                            │

00:00:56 #2578 [Debug] > │         let v226 : uint64 = v224.l0                                          │

00:00:56 #2579 [Debug] > │         let struct (v227 : UH6, v228 : int32) = v224.l1, v224.l2             │

00:00:56 #2580 [Debug] > │         let v229 : int64 = v200.[int v226]                                   │

00:00:56 #2581 [Debug] > │         let v230 : int32 = v228 + 1                                          │

00:00:56 #2582 [Debug] > │         let v231 : uint64 = v226 + 1UL                                       │

00:00:56 #2583 [Debug] > │         let v232 : UH6 = UH6_0(v228, v229, v227)                             │

00:00:56 #2584 [Debug] > │         v224.l0 <- v231                                                      │

00:00:56 #2585 [Debug] > │         v224.l1 <- v232                                                      │

00:00:56 #2586 [Debug] > │         v224.l2 <- v230                                                      │

00:00:56 #2587 [Debug] > │         ()                                                                   │

00:00:56 #2588 [Debug] > │     let struct (v233 : UH6, v234 : int32) = v224.l1, v224.l2                 │

00:00:56 #2589 [Debug] > │     let v235 : UH6 = UH6_1                                                   │

00:00:56 #2590 [Debug] > │     let v236 : UH6 = method29(v233, v235)                                    │

00:00:56 #2591 [Debug] > │     let v237 : (struct (int32 * int64) []) = method30(v236)                  │

00:00:56 #2592 [Debug] > │     let v238 : Map<int32, int64> = v237 |> Array.map (fun (struct (a, b)) -> │

00:00:56 #2593 [Debug] > │ a, b) |> Map.ofArray                                                         │

00:00:56 #2594 [Debug] > │     let v239 : (struct ((string []) * US0) []) = Array.zeroCreate<struct     │

00:00:56 #2595 [Debug] > │ ((string []) * US0)> (System.Convert.ToInt32(v189))                          │

00:00:56 #2596 [Debug] > │     let v240 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:56 #2597 [Debug] > │     while method4(v189, v240) do                                             │

00:00:56 #2598 [Debug] > │         let v242 : uint64 = v240.l0                                          │

00:00:56 #2599 [Debug] > │         let struct (v243 : UH2, v244 : US0) = v176.[int v242]                │

00:00:56 #2600 [Debug] > │         let v245 : UH7 = UH7_1                                               │

00:00:56 #2601 [Debug] > │         let v246 : int32 = 0                                                 │

00:00:56 #2602 [Debug] > │         let struct (v247 : UH7, v248 : int32) = method33(v243, v245, v246)   │

00:00:56 #2603 [Debug] > │         let v249 : UH7 = UH7_1                                               │

00:00:56 #2604 [Debug] > │         let v250 : UH7 = method34(v247, v249)                                │

00:00:56 #2605 [Debug] > │         let v251 : UH2 = UH2_1                                               │

00:00:56 #2606 [Debug] > │         let v252 : UH2 = method35(v238, v250, v251)                          │

00:00:56 #2607 [Debug] > │         let v253 : (string []) = method9(v252)                               │

00:00:56 #2608 [Debug] > │         v239.[int v242] <- struct (v253, v244)                               │

00:00:56 #2609 [Debug] > │         let v254 : uint64 = v242 + 1UL                                       │

00:00:56 #2610 [Debug] > │         v240.l0 <- v254                                                      │

00:00:56 #2611 [Debug] > │         ()                                                                   │

00:00:56 #2612 [Debug] > │     System.Console.WriteLine v2                                              │

00:00:56 #2613 [Debug] > │     let v255 : uint64 = System.Convert.ToUInt64 v239.Length                  │

00:00:56 #2614 [Debug] > │     let v256 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:56 #2615 [Debug] > │     while method4(v255, v256) do                                             │

00:00:56 #2616 [Debug] > │         let v258 : uint64 = v256.l0                                          │

00:00:56 #2617 [Debug] > │         let struct (v259 : (string []), v260 : US0) = v239.[int v258]        │

00:00:56 #2618 [Debug] > │         match v260 with                                                      │

00:00:56 #2619 [Debug] > │         | US0_0 -> (* None *)                                                │

00:00:56 #2620 [Debug] > │             #if FABLE_COMPILER_RUST                                          │

00:00:56 #2621 [Debug] > │             let v264 : (unit -> unit) = closure8()                           │

00:00:56 #2622 [Debug] > │             v264 ()                                                          │

00:00:56 #2623 [Debug] > │             #else                                                            │

00:00:56 #2624 [Debug] > │             let v265 : (unit -> unit) = closure9()                           │

00:00:56 #2625 [Debug] > │             v265 ()                                                          │

00:00:56 #2626 [Debug] > │             #endif                                                           │

00:00:56 #2627 [Debug] > │             ()                                                               │

00:00:56 #2628 [Debug] > │         | US0_1(v261) -> (* Some *)                                          │

00:00:56 #2629 [Debug] > │             #if FABLE_COMPILER_RUST                                          │

00:00:56 #2630 [Debug] > │             let v262 : (unit -> unit) = closure10()                          │

00:00:56 #2631 [Debug] > │             v262 ()                                                          │

00:00:56 #2632 [Debug] > │             #else                                                            │

00:00:56 #2633 [Debug] > │             let v263 : (unit -> unit) = closure11(v261)                      │

00:00:56 #2634 [Debug] > │             v263 ()                                                          │

00:00:56 #2635 [Debug] > │             #endif                                                           │

00:00:56 #2636 [Debug] > │             ()                                                               │

00:00:56 #2637 [Debug] > │         let v266 : string = "\t| "                                           │

00:00:56 #2638 [Debug] > │         let v267 : string = System.String.Join (v266, v259)                  │

00:00:56 #2639 [Debug] > │         System.Console.WriteLine v267                                        │

00:00:56 #2640 [Debug] > │         #if FABLE_COMPILER_RUST                                              │

00:00:56 #2641 [Debug] > │         let v268 : (unit -> unit) = closure8()                               │

00:00:56 #2642 [Debug] > │         v268 ()                                                              │

00:00:56 #2643 [Debug] > │         #else                                                                │

00:00:56 #2644 [Debug] > │         let v269 : (unit -> unit) = closure9()                               │

00:00:56 #2645 [Debug] > │         v269 ()                                                              │

00:00:56 #2646 [Debug] > │         #endif                                                               │

00:00:56 #2647 [Debug] > │         let v270 : uint64 = v258 + 1UL                                       │

00:00:56 #2648 [Debug] > │         v256.l0 <- v270                                                      │

00:00:56 #2649 [Debug] > │         ()                                                                   │

00:00:56 #2650 [Debug] > │     let v271 : ((float []) []) = Array.zeroCreate<(float [])>                │

00:00:56 #2651 [Debug] > │ (System.Convert.ToInt32(v101))                                               │

00:00:56 #2652 [Debug] > │     let v272 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:56 #2653 [Debug] > │     while method4(v101, v272) do                                             │

00:00:56 #2654 [Debug] > │         let v274 : uint64 = v272.l0                                          │

00:00:56 #2655 [Debug] > │         let struct (v275 : string, v276 : string, v277 : string, v278 :      │

00:00:56 #2656 [Debug] > │ (int64 [])) = v24.[int v274]                                                 │

00:00:56 #2657 [Debug] > │         let v279 : (int64 -> float) = float                                  │

00:00:56 #2658 [Debug] > │         let v280 : uint64 = System.Convert.ToUInt64 v278.Length              │

00:00:56 #2659 [Debug] > │         let v281 : (float []) = Array.zeroCreate<float>                      │

00:00:56 #2660 [Debug] > │ (System.Convert.ToInt32(v280))                                               │

00:00:56 #2661 [Debug] > │         let v282 : Mut0 = {l0 = 0UL} : Mut0                                  │

00:00:56 #2662 [Debug] > │         while method4(v280, v282) do                                         │

00:00:56 #2663 [Debug] > │             let v284 : uint64 = v282.l0                                      │

00:00:56 #2664 [Debug] > │             let v285 : int64 = v278.[int v284]                               │

00:00:56 #2665 [Debug] > │             let v286 : float = v279 v285                                     │

00:00:56 #2666 [Debug] > │             v281.[int v284] <- v286                                          │

00:00:56 #2667 [Debug] > │             let v287 : uint64 = v284 + 1UL                                   │

00:00:56 #2668 [Debug] > │             v282.l0 <- v287                                                  │

00:00:56 #2669 [Debug] > │             ()                                                               │

00:00:56 #2670 [Debug] > │         v271.[int v274] <- v281                                              │

00:00:56 #2671 [Debug] > │         let v288 : uint64 = v274 + 1UL                                       │

00:00:56 #2672 [Debug] > │         v272.l0 <- v288                                                      │

00:00:56 #2673 [Debug] > │         ()                                                                   │

00:00:56 #2674 [Debug] > │     let v289 : ((float []) []) = v271 |> Array.transpose                     │

00:00:56 #2675 [Debug] > │     let v290 : uint64 = System.Convert.ToUInt64 v289.Length                  │

00:00:56 #2676 [Debug] > │     let v291 : (float []) = Array.zeroCreate<float>                          │

00:00:56 #2677 [Debug] > │ (System.Convert.ToInt32(v290))                                               │

00:00:56 #2678 [Debug] > │     let v292 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:56 #2679 [Debug] > │     while method4(v290, v292) do                                             │

00:00:56 #2680 [Debug] > │         let v294 : uint64 = v292.l0                                          │

00:00:56 #2681 [Debug] > │         let v295 : (float []) = v289.[int v294]                              │

00:00:56 #2682 [Debug] > │         let v296 : float = v295 |> Array.average                             │

00:00:56 #2683 [Debug] > │         v291.[int v294] <- v296                                              │

00:00:56 #2684 [Debug] > │         let v297 : uint64 = v294 + 1UL                                       │

00:00:56 #2685 [Debug] > │         v292.l0 <- v297                                                      │

00:00:56 #2686 [Debug] > │         ()                                                                   │

00:00:56 #2687 [Debug] > │     let v298 : (float -> int64) = int64                                      │

00:00:56 #2688 [Debug] > │     let v299 : uint64 = System.Convert.ToUInt64 v291.Length                  │

00:00:56 #2689 [Debug] > │     let v300 : (int64 []) = Array.zeroCreate<int64>                          │

00:00:56 #2690 [Debug] > │ (System.Convert.ToInt32(v299))                                               │

00:00:56 #2691 [Debug] > │     let v301 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:56 #2692 [Debug] > │     while method4(v299, v301) do                                             │

00:00:56 #2693 [Debug] > │         let v303 : uint64 = v301.l0                                          │

00:00:56 #2694 [Debug] > │         let v304 : float = v291.[int v303]                                   │

00:00:56 #2695 [Debug] > │         let v305 : int64 = v298 v304                                         │

00:00:56 #2696 [Debug] > │         v300.[int v303] <- v305                                              │

00:00:56 #2697 [Debug] > │         let v306 : uint64 = v303 + 1UL                                       │

00:00:56 #2698 [Debug] > │         v301.l0 <- v306                                                      │

00:00:56 #2699 [Debug] > │         ()                                                                   │

00:00:56 #2700 [Debug] > │     let v307 : uint64 = System.Convert.ToUInt64 v300.Length                  │

00:00:56 #2701 [Debug] > │     let v308 : UH6 = UH6_1                                                   │

00:00:56 #2702 [Debug] > │     let v309 : Mut3 = {l0 = 0UL; l1 = v308; l2 = 0} : Mut3                   │

00:00:56 #2703 [Debug] > │     while method28(v307, v309) do                                            │

00:00:56 #2704 [Debug] > │         let v311 : uint64 = v309.l0                                          │

00:00:56 #2705 [Debug] > │         let struct (v312 : UH6, v313 : int32) = v309.l1, v309.l2             │

00:00:56 #2706 [Debug] > │         let v314 : int64 = v300.[int v311]                                   │

00:00:56 #2707 [Debug] > │         let v315 : int32 = v313 + 1                                          │

00:00:56 #2708 [Debug] > │         let v316 : uint64 = v311 + 1UL                                       │

00:00:56 #2709 [Debug] > │         let v317 : UH6 = UH6_0(v313, v314, v312)                             │

00:00:56 #2710 [Debug] > │         v309.l0 <- v316                                                      │

00:00:56 #2711 [Debug] > │         v309.l1 <- v317                                                      │

00:00:56 #2712 [Debug] > │         v309.l2 <- v315                                                      │

00:00:56 #2713 [Debug] > │         ()                                                                   │

00:00:56 #2714 [Debug] > │     let struct (v318 : UH6, v319 : int32) = v309.l1, v309.l2                 │

00:00:56 #2715 [Debug] > │     let v320 : UH6 = UH6_1                                                   │

00:00:56 #2716 [Debug] > │     let v321 : UH6 = method29(v318, v320)                                    │

00:00:56 #2717 [Debug] > │     let v322 : (struct (int32 * int64) []) = method36(v321)                  │

00:00:56 #2718 [Debug] > │     System.Console.WriteLine v2                                              │

00:00:56 #2719 [Debug] > │     let v323 : string = "Average Ranking  "                                  │

00:00:56 #2720 [Debug] > │     System.Console.WriteLine v323                                            │

00:00:56 #2721 [Debug] > │     let v324 : (struct (int32 * int64) -> int64) = closure12()               │

00:00:56 #2722 [Debug] > │     let v325 : (struct (int32 * int64) []) = v322 |> Array.sortBy v324       │

00:00:56 #2723 [Debug] > │     let v326 : uint64 = System.Convert.ToUInt64 v325.Length                  │

00:00:56 #2724 [Debug] > │     let v327 : Mut0 = {l0 = 0UL} : Mut0                                      │

00:00:56 #2725 [Debug] > │     while method4(v326, v327) do                                             │

00:00:56 #2726 [Debug] > │         let v329 : uint64 = v327.l0                                          │

00:00:56 #2727 [Debug] > │         let struct (v330 : int32, v331 : int64) = v325.[int v329]            │

00:00:56 #2728 [Debug] > │         let v332 : string = $"Test case %d{v330 + 1}. Average Time: %A{v331} │

00:00:56 #2729 [Debug] > │ "                                                                            │

00:00:56 #2730 [Debug] > │         System.Console.WriteLine v332                                        │

00:00:56 #2731 [Debug] > │         let v333 : uint64 = v329 + 1UL                                       │

00:00:56 #2732 [Debug] > │         v327.l0 <- v333                                                      │

00:00:56 #2733 [Debug] > │         ()                                                                   │

00:00:56 #2734 [Debug] > │     ()                                                                       │

00:00:56 #2735 [Debug] > │ method0()                                                                    │

00:00:56 #2736 [Debug] > │                                                                              │

00:00:56 #2737 [Debug] > │                                                                              │

00:00:56 #2738 [Debug] > │                                                                              │

00:00:56 #2739 [Debug] > │ Test: v0                                                                     │

00:00:56 #2740 [Debug] > │                                                                              │

00:00:56 #2741 [Debug] > │ Solution: "abc"                                                              │

00:00:56 #2742 [Debug] > │ Test case 1. F. Time: 973                                                    │

00:00:56 #2743 [Debug] > │ Test case 2. FA. Time: 1253                                                  │

00:00:56 #2744 [Debug] > │                                                                              │

00:00:56 #2745 [Debug] > │ Solution: "abcde"                                                            │

00:00:56 #2746 [Debug] > │ Test case 1. F. Time: 1343                                                   │

00:00:56 #2747 [Debug] > │ Test case 2. FA. Time: 1645                                                  │

00:00:56 #2748 [Debug] > │                                                                              │

00:00:56 #2749 [Debug] > │ Solution: "abcdefghi"                                                        │

00:00:56 #2750 [Debug] > │ Test case 1. F. Time: 2190                                                   │

00:00:56 #2751 [Debug] > │ Test case 2. FA. Time: 2372                                                  │

00:00:56 #2752 [Debug] > │                                                                              │

00:00:56 #2753 [Debug] > │ Solution: "abab"                                                             │

00:00:56 #2754 [Debug] > │ Test case 1. F. Time: 1173                                                   │

00:00:56 #2755 [Debug] > │ Test case 2. FA. Time: 1152                                                  │

00:00:56 #2756 [Debug] > │                                                                              │

00:00:56 #2757 [Debug] > │ Solution: "aa"                                                               │

00:00:56 #2758 [Debug] > │ Test case 1. F. Time: 859                                                    │

00:00:56 #2759 [Debug] > │ Test case 2. FA. Time: 914                                                   │

00:00:56 #2760 [Debug] > │                                                                              │

00:00:56 #2761 [Debug] > │ Solution: "z"                                                                │

00:00:56 #2762 [Debug] > │ Test case 1. F. Time: 205                                                    │

00:00:56 #2763 [Debug] > │ Test case 2. FA. Time: 147                                                   │

00:00:56 #2764 [Debug] > │                                                                              │

00:00:56 #2765 [Debug] > │ Input      	| Expected                                                         │

00:00:56 #2766 [Debug] > │                                                                              │

00:00:56 #2767 [Debug] > │ | Result                                                                     │

00:00:56 #2768 [Debug] > │                                                                              │

00:00:56 #2769 [Debug] > │ | Best                                                                       │

00:00:56 #2770 [Debug] > │ ---        	| ---                                                              │

00:00:56 #2771 [Debug] > │                                                                              │

00:00:56 #2772 [Debug] > │ | ---                                                                        │

00:00:56 #2773 [Debug] > │                                                                              │

00:00:56 #2774 [Debug] > │ | ---                                                                        │

00:00:56 #2775 [Debug] > │ "abc"      	| "bca cab abc"                                                    │

00:00:56 #2776 [Debug] > │                                                                              │

00:00:56 #2777 [Debug] > │ | "bca cab abc"                                                              │

00:00:56 #2778 [Debug] > │                                                                              │

00:00:56 #2779 [Debug] > │ | struct (1L, 973L)                                                          │

00:00:56 #2780 [Debug] > │ "abcde"    	| "bcdea cdeab deabc eabcd abcde"                                  │

00:00:56 #2781 [Debug] > │ | "bcdea cdeab deabc eabcd abcde"                                            │

00:00:56 #2782 [Debug] > │ | struct (1L, 1343L)                                                         │

00:00:56 #2783 [Debug] > │ "abcdefghi"	| "bcdefghia cdefghiab defghiabc efghiabcd fghiabcde ghiabcdef     │

00:00:56 #2784 [Debug] > │ hiabcdefg iabcdefgh abcdefghi"	| "bcdefghia cdefghiab defghiabc efghiabcd      │

00:00:56 #2785 [Debug] > │ fghiabcde ghiabcdef hiabcdefg iabcdefgh abcdefghi"	| struct (1L, 2190L)        │

00:00:56 #2786 [Debug] > │ "abab"     	| "baba abab baba abab"                                            │

00:00:56 #2787 [Debug] > │ | "baba abab baba abab"                                                      │

00:00:56 #2788 [Debug] > │ | struct (2L, 1152L)                                                         │

00:00:56 #2789 [Debug] > │ "aa"       	| "aa aa"                                                          │

00:00:56 #2790 [Debug] > │                                                                              │

00:00:56 #2791 [Debug] > │ | "aa aa"                                                                    │

00:00:56 #2792 [Debug] > │                                                                              │

00:00:56 #2793 [Debug] > │ | struct (1L, 859L)                                                          │

00:00:56 #2794 [Debug] > │ "z"        	| "z"                                                              │

00:00:56 #2795 [Debug] > │                                                                              │

00:00:56 #2796 [Debug] > │ | "z"                                                                        │

00:00:56 #2797 [Debug] > │                                                                              │

00:00:56 #2798 [Debug] > │ | struct (2L, 147L)                                                          │

00:00:56 #2799 [Debug] > │                                                                              │

00:00:56 #2800 [Debug] > │ Average Ranking                                                              │

00:00:56 #2801 [Debug] > │ Test case 1. Average Time: 1123L                                             │

00:00:56 #2802 [Debug] > │ Test case 2. Average Time: 1247L                                             │

00:00:56 #2803 [Debug] > │                                                                              │

00:00:56 #2804 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:56 #2805 [Debug] >

00:00:56 #2806 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:56 #2807 [Debug] > // // test

00:00:56 #2808 [Debug] > // // rust=

00:00:56 #2809 [Debug] > // // print_code=false

00:00:56 #2810 [Debug] >

00:00:56 #2811 [Debug] > // rotate_strings_tests ()

00:00:57 #2812 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1418-2279-7966-7f99e02882d7\main.spi

00:00:57 #2813 [Debug] >

00:00:57 #2814 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:00:57 #2815 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:00:57 #2816 [Debug] > │ ## binary_search_tests                                                       │

00:00:57 #2817 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:00:57 #2818 [Debug] >

00:00:57 #2819 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:00:57 #2820 [Debug] > // // test

00:00:57 #2821 [Debug] > // // timeout=60000

00:00:57 #2822 [Debug] > // // print_code=true

00:00:57 #2823 [Debug] >

00:00:57 #2824 [Debug] > inl binary_search_semi_open_1 arr target left right =

00:00:57 #2825 [Debug] >     inl rec body left right =

00:00:57 #2826 [Debug] >         if left >= right

00:00:57 #2827 [Debug] >         then None

00:00:57 #2828 [Debug] >         else

00:00:57 #2829 [Debug] >             inl mid = (left + right) / 2

00:00:57 #2830 [Debug] >             inl item = index arr mid

00:00:57 #2831 [Debug] >             if item = target

00:00:57 #2832 [Debug] >             then Some mid

00:00:57 #2833 [Debug] >             elif item < target

00:00:57 #2834 [Debug] >             then loop (mid + 1) right

00:00:57 #2835 [Debug] >             else loop left mid

00:00:57 #2836 [Debug] >     and inl loop left right =

00:00:57 #2837 [Debug] >         if var_is right |> not

00:00:57 #2838 [Debug] >         then body left right

00:00:57 #2839 [Debug] >         else

00:00:57 #2840 [Debug] >             inl left = dyn left

00:00:57 #2841 [Debug] >             join body left right

00:00:57 #2842 [Debug] >     loop left right

00:00:57 #2843 [Debug] >

00:00:57 #2844 [Debug] > inl binary_search_closed_1 arr target left right =

00:00:57 #2845 [Debug] >     inl rec body left right =

00:00:57 #2846 [Debug] >         if left > right

00:00:57 #2847 [Debug] >         then None

00:00:57 #2848 [Debug] >         else

00:00:57 #2849 [Debug] >             inl mid = (left + right) / 2

00:00:57 #2850 [Debug] >             inl item = index arr mid

00:00:57 #2851 [Debug] >             if item = target

00:00:57 #2852 [Debug] >             then Some mid

00:00:57 #2853 [Debug] >             elif item < target

00:00:57 #2854 [Debug] >             then loop (mid + 1) right

00:00:57 #2855 [Debug] >             else loop left (mid - 1)

00:00:57 #2856 [Debug] >     and inl loop left right =

00:00:57 #2857 [Debug] >         if var_is right |> not

00:00:57 #2858 [Debug] >         then body left right

00:00:57 #2859 [Debug] >         else

00:00:57 #2860 [Debug] >             inl left = dyn left

00:00:57 #2861 [Debug] >             join body left right

00:00:57 #2862 [Debug] >     loop left right

00:00:57 #2863 [Debug] >

00:00:57 #2864 [Debug] > inl binary_search_semi_open_2 arr target left right =

00:00:57 #2865 [Debug] >     let rec body left right =

00:00:57 #2866 [Debug] >         if left >= right

00:00:57 #2867 [Debug] >         then None

00:00:57 #2868 [Debug] >         else

00:00:57 #2869 [Debug] >             inl mid = (left + right) / 2

00:00:57 #2870 [Debug] >             inl item = index arr mid

00:00:57 #2871 [Debug] >             if item = target

00:00:57 #2872 [Debug] >             then Some mid

00:00:57 #2873 [Debug] >             elif item < target

00:00:57 #2874 [Debug] >             then loop (mid + 1) right

00:00:57 #2875 [Debug] >             else loop left mid

00:00:57 #2876 [Debug] >     and inl loop left right = body left right

00:00:57 #2877 [Debug] >     loop left right

00:00:57 #2878 [Debug] >

00:00:57 #2879 [Debug] > inl binary_search_closed_2 arr target left right =

00:00:57 #2880 [Debug] >     let rec body left right =

00:00:57 #2881 [Debug] >         if left > right

00:00:57 #2882 [Debug] >         then None

00:00:57 #2883 [Debug] >         else

00:00:57 #2884 [Debug] >             inl mid = (left + right) / 2

00:00:57 #2885 [Debug] >             inl item = index arr mid

00:00:57 #2886 [Debug] >             if item = target

00:00:57 #2887 [Debug] >             then Some mid

00:00:57 #2888 [Debug] >             elif item < target

00:00:57 #2889 [Debug] >             then loop (mid + 1) right

00:00:57 #2890 [Debug] >             else loop left (mid - 1)

00:00:57 #2891 [Debug] >     and inl loop left right = body left right

00:00:57 #2892 [Debug] >     loop left right

00:00:57 #2893 [Debug] >

00:00:57 #2894 [Debug] > inl get_solutions () =

00:00:57 #2895 [Debug] >     [[

00:00:57 #2896 [Debug] >         "semi_open_1",

00:00:57 #2897 [Debug] >         fun (arr, (target, len)) =>

00:00:57 #2898 [Debug] >             binary_search_semi_open_1 arr target 0 len

00:00:57 #2899 [Debug] >

00:00:57 #2900 [Debug] >         "closed_1",

00:00:57 #2901 [Debug] >         fun (arr, (target, len)) =>

00:00:57 #2902 [Debug] >             binary_search_closed_1 arr target 0 (len - 1)

00:00:57 #2903 [Debug] >

00:00:57 #2904 [Debug] >         "semi_open_2",

00:00:57 #2905 [Debug] >         fun (arr, (target, len)) =>

00:00:57 #2906 [Debug] >             binary_search_semi_open_2 arr target 0 len

00:00:57 #2907 [Debug] >

00:00:57 #2908 [Debug] >         "closed_2",

00:00:57 #2909 [Debug] >         fun (arr, (target, len)) =>

00:00:57 #2910 [Debug] >             binary_search_closed_2 arr target 0 (len - 1)

00:00:57 #2911 [Debug] >     ]]

00:00:57 #2912 [Debug] >

00:00:57 #2913 [Debug] > inl rec binary_search_tests () =

00:00:57 #2914 [Debug] >     inl arr_with_len target len arr =

00:00:57 #2915 [Debug] >         arr, (target, (len |> optionm'.default_with fun () => length arr))

00:00:57 #2916 [Debug] >

00:00:57 #2917 [Debug] >     inl test_cases = [[

00:00:57 #2918 [Debug] >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 6 None), (Some 3i32)

00:00:57 #2919 [Debug] >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 1 None), (Some 0i32)

00:00:57 #2920 [Debug] >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 11 None), (Some 6i32)

00:00:57 #2921 [Debug] >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 12 None), None

00:00:57 #2922 [Debug] >         ((am'.init_series 1i32 100 1) |> arr_with_len 60 None), (Some 59)

00:00:57 #2923 [Debug] >

00:00:57 #2924 [Debug] >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 6 (Some 7)), (Some

00:00:57 #2925 [Debug] > 3i32)

00:00:57 #2926 [Debug] >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 1 (Some 7)), (Some

00:00:57 #2927 [Debug] > 0i32)

00:00:57 #2928 [Debug] >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 11 (Some 7)), (Some

00:00:57 #2929 [Debug] > 6i32)

00:00:57 #2930 [Debug] >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 12 (Some 7)), None

00:00:57 #2931 [Debug] >         ((am'.init_series 1i32 100 1) |> arr_with_len 60 (Some 100)), (Some 59)

00:00:57 #2932 [Debug] >     ]]

00:00:57 #2933 [Debug] >

00:00:57 #2934 [Debug] >     inl solutions = get_solutions ()

00:00:57 #2935 [Debug] >

00:00:57 #2936 [Debug] >     // inl is_fast () = true

00:00:57 #2937 [Debug] >

00:00:57 #2938 [Debug] >     inl count =

00:00:57 #2939 [Debug] >         if is_fast ()

00:00:57 #2940 [Debug] >         then 1000i32

00:00:57 #2941 [Debug] >         else 8000000i32

00:00:57 #2942 [Debug] >

00:00:57 #2943 [Debug] >     run_all (nameof binary_search_tests) count solutions test_cases

00:00:57 #2944 [Debug] >     |> sort_result_list

00:00:57 #2945 [Debug] >

00:00:57 #2946 [Debug] >

00:00:57 #2947 [Debug] > let main () =

00:00:57 #2948 [Debug] >     binary_search_tests ()

00:00:57 #2949 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1418-2297-9743-9300cb1be5cd\main.spi

00:01:29 #2950 [Debug] >

00:01:29 #2951 [Debug] > ╭─[ 32.17s - stdout ]──────────────────────────────────────────────────────────╮

00:01:29 #2952 [Debug] > │ type Mut0 = {mutable l0 : int32}                                             │

00:01:29 #2953 [Debug] > │ and [<Struct>] US0 =                                                         │

00:01:29 #2954 [Debug] > │     | US0_0                                                                  │

00:01:29 #2955 [Debug] > │     | US0_1 of f1_0 : int32                                                  │

00:01:29 #2956 [Debug] > │ and UH0 =                                                                    │

00:01:29 #2957 [Debug] > │     | UH0_0 of (int32 []) * int32 * int32 * US0 * UH0                        │

00:01:29 #2958 [Debug] > │     | UH0_1                                                                  │

00:01:29 #2959 [Debug] > │ and Mut1 = {mutable l0 : uint64}                                             │

00:01:29 #2960 [Debug] > │ and UH1 =                                                                    │

00:01:29 #2961 [Debug] > │     | UH1_0 of int32 * string * (struct ((int32 []) * int32 * int32) -> US0) │

00:01:29 #2962 [Debug] > │ * UH1                                                                        │

00:01:29 #2963 [Debug] > │     | UH1_1                                                                  │

00:01:29 #2964 [Debug] > │ and UH2 =                                                                    │

00:01:29 #2965 [Debug] > │     | UH2_0 of string * UH2                                                  │

00:01:29 #2966 [Debug] > │     | UH2_1                                                                  │

00:01:29 #2967 [Debug] > │ and [<Struct>] US1 =                                                         │

00:01:29 #2968 [Debug] > │     | US1_0                                                                  │

00:01:29 #2969 [Debug] > │     | US1_1 of f1_0 : System.ConsoleColor                                    │

00:01:29 #2970 [Debug] > │ and UH3 =                                                                    │

00:01:29 #2971 [Debug] > │     | UH3_0 of int64 * int64 * UH3                                           │

00:01:29 #2972 [Debug] > │     | UH3_1                                                                  │

00:01:29 #2973 [Debug] > │ and Mut2 = {mutable l0 : uint64; mutable l1 : UH3; mutable l2 : int64}       │

00:01:29 #2974 [Debug] > │ and UH4 =                                                                    │

00:01:29 #2975 [Debug] > │     | UH4_0 of UH2 * US1 * UH4                                               │

00:01:29 #2976 [Debug] > │     | UH4_1                                                                  │

00:01:29 #2977 [Debug] > │ and [<Struct>] US2 =                                                         │

00:01:29 #2978 [Debug] > │     | US2_0                                                                  │

00:01:29 #2979 [Debug] > │     | US2_1 of f1_0 : int64                                                  │

00:01:29 #2980 [Debug] > │ and UH5 =                                                                    │

00:01:29 #2981 [Debug] > │     | UH5_0 of int32 * int64 * UH5                                           │

00:01:29 #2982 [Debug] > │     | UH5_1                                                                  │

00:01:29 #2983 [Debug] > │ and Mut3 = {mutable l0 : uint64; mutable l1 : UH5; mutable l2 : int32}       │

00:01:29 #2984 [Debug] > │ and UH6 =                                                                    │

00:01:29 #2985 [Debug] > │     | UH6_0 of int32 * string * UH6                                          │

00:01:29 #2986 [Debug] > │     | UH6_1                                                                  │

00:01:29 #2987 [Debug] > │ let rec method1 (v0 : Mut0) : bool =                                         │

00:01:29 #2988 [Debug] > │     let v1 : int32 = v0.l0                                                   │

00:01:29 #2989 [Debug] > │     let v2 : bool = v1 < 100                                                 │

00:01:29 #2990 [Debug] > │     v2                                                                       │

00:01:29 #2991 [Debug] > │ and method3 (v0 : UH0, v1 : uint64) : uint64 =                               │

00:01:29 #2992 [Debug] > │     match v0 with                                                            │

00:01:29 #2993 [Debug] > │     | UH0_0(v2, v3, v4, v5, v6) -> (* Cons *)                                │

00:01:29 #2994 [Debug] > │         let v7 : uint64 = v1 + 1UL                                           │

00:01:29 #2995 [Debug] > │         method3(v6, v7)                                                      │

00:01:29 #2996 [Debug] > │     | UH0_1 -> (* Nil *)                                                     │

00:01:29 #2997 [Debug] > │         v1                                                                   │

00:01:29 #2998 [Debug] > │ and method4 (v0 : (struct ((int32 []) * int32 * int32 * US0) []), v1 : UH0,  │

00:01:29 #2999 [Debug] > │ v2 : uint64) : uint64 =                                                      │

00:01:29 #3000 [Debug] > │     match v1 with                                                            │

00:01:29 #3001 [Debug] > │     | UH0_0(v3, v4, v5, v6, v7) -> (* Cons *)                                │

00:01:29 #3002 [Debug] > │         v0.[int v2] <- struct (v3, v4, v5, v6)                               │

00:01:29 #3003 [Debug] > │         let v8 : uint64 = v2 + 1UL                                           │

00:01:29 #3004 [Debug] > │         method4(v0, v7, v8)                                                  │

00:01:29 #3005 [Debug] > │     | UH0_1 -> (* Nil *)                                                     │

00:01:29 #3006 [Debug] > │         v2                                                                   │

00:01:29 #3007 [Debug] > │ and method2 (v0 : UH0) : (struct ((int32 []) * int32 * int32 * US0) []) =    │

00:01:29 #3008 [Debug] > │     let v1 : uint64 = 0UL                                                    │

00:01:29 #3009 [Debug] > │     let v2 : uint64 = method3(v0, v1)                                        │

00:01:29 #3010 [Debug] > │     let v3 : (struct ((int32 []) * int32 * int32 * US0) []) =                │

00:01:29 #3011 [Debug] > │ Array.zeroCreate<struct ((int32 []) * int32 * int32 * US0)>                  │

00:01:29 #3012 [Debug] > │ (System.Convert.ToInt32(v2))                                                 │

00:01:29 #3013 [Debug] > │     let v4 : uint64 = 0UL                                                    │

00:01:29 #3014 [Debug] > │     let v5 : uint64 = method4(v3, v0, v4)                                    │

00:01:29 #3015 [Debug] > │     v3                                                                       │

00:01:29 #3016 [Debug] > │ and method5 (v0 : uint64, v1 : Mut1) : bool =                                │

00:01:29 #3017 [Debug] > │     let v2 : uint64 = v1.l0                                                  │

00:01:29 #3018 [Debug] > │     let v3 : bool = v2 < v0                                                  │

00:01:29 #3019 [Debug] > │     v3                                                                       │

00:01:29 #3020 [Debug] > │ and method6 (v0 : (int32 []), v1 : int32, v2 : int32, v3 : int32) : US0 =    │

00:01:29 #3021 [Debug] > │     let v4 : bool = v3 >= v2                                                 │

00:01:29 #3022 [Debug] > │     if v4 then                                                               │

00:01:29 #3023 [Debug] > │         US0_0                                                                │

00:01:29 #3024 [Debug] > │     else                                                                     │

00:01:29 #3025 [Debug] > │         let v6 : int32 = v3 + v2                                             │

00:01:29 #3026 [Debug] > │         let v7 : int32 = v6 / 2                                              │

00:01:29 #3027 [Debug] > │         let v8 : int32 = v0.[int v7]                                         │

00:01:29 #3028 [Debug] > │         let v9 : bool = v8 = v1                                              │

00:01:29 #3029 [Debug] > │         if v9 then                                                           │

00:01:29 #3030 [Debug] > │             US0_1(v7)                                                        │

00:01:29 #3031 [Debug] > │         else                                                                 │

00:01:29 #3032 [Debug] > │             let v11 : bool = v8 < v1                                         │

00:01:29 #3033 [Debug] > │             if v11 then                                                      │

00:01:29 #3034 [Debug] > │                 let v12 : int32 = v7 + 1                                     │

00:01:29 #3035 [Debug] > │                 method6(v0, v1, v2, v12)                                     │

00:01:29 #3036 [Debug] > │             else                                                             │

00:01:29 #3037 [Debug] > │                 method6(v0, v1, v7, v3)                                      │

00:01:29 #3038 [Debug] > │ and closure1 () struct (v0 : (int32 []), v1 : int32, v2 : int32) : US0 =     │

00:01:29 #3039 [Debug] > │     let v3 : int32 = 0                                                       │

00:01:29 #3040 [Debug] > │     method6(v0, v1, v2, v3)                                                  │

00:01:29 #3041 [Debug] > │ and method7 (v0 : (int32 []), v1 : int32, v2 : int32, v3 : int32) : US0 =    │

00:01:29 #3042 [Debug] > │     let v4 : bool = v3 > v2                                                  │

00:01:29 #3043 [Debug] > │     if v4 then                                                               │

00:01:29 #3044 [Debug] > │         US0_0                                                                │

00:01:29 #3045 [Debug] > │     else                                                                     │

00:01:29 #3046 [Debug] > │         let v6 : int32 = v3 + v2                                             │

00:01:29 #3047 [Debug] > │         let v7 : int32 = v6 / 2                                              │

00:01:29 #3048 [Debug] > │         let v8 : int32 = v0.[int v7]                                         │

00:01:29 #3049 [Debug] > │         let v9 : bool = v8 = v1                                              │

00:01:29 #3050 [Debug] > │         if v9 then                                                           │

00:01:29 #3051 [Debug] > │             US0_1(v7)                                                        │

00:01:29 #3052 [Debug] > │         else                                                                 │

00:01:29 #3053 [Debug] > │             let v11 : bool = v8 < v1                                         │

00:01:29 #3054 [Debug] > │             if v11 then                                                      │

00:01:29 #3055 [Debug] > │                 let v12 : int32 = v7 + 1                                     │

00:01:29 #3056 [Debug] > │                 method7(v0, v1, v2, v12)                                     │

00:01:29 #3057 [Debug] > │             else                                                             │

00:01:29 #3058 [Debug] > │                 let v14 : int32 = v7 - 1                                     │

00:01:29 #3059 [Debug] > │                 method7(v0, v1, v14, v3)                                     │

00:01:29 #3060 [Debug] > │ and closure2 () struct (v0 : (int32 []), v1 : int32, v2 : int32) : US0 =     │

00:01:29 #3061 [Debug] > │     let v3 : int32 = v2 - 1                                                  │

00:01:29 #3062 [Debug] > │     let v4 : int32 = 0                                                       │

00:01:29 #3063 [Debug] > │     method7(v0, v1, v3, v4)                                                  │

00:01:29 #3064 [Debug] > │ and method8 (v0 : (int32 []), v1 : int32, v2 : int32, v3 : int32) : US0 =    │

00:01:29 #3065 [Debug] > │     let v4 : bool = v2 >= v3                                                 │

00:01:29 #3066 [Debug] > │     if v4 then                                                               │

00:01:29 #3067 [Debug] > │         US0_0                                                                │

00:01:29 #3068 [Debug] > │     else                                                                     │

00:01:29 #3069 [Debug] > │         let v6 : int32 = v2 + v3                                             │

00:01:29 #3070 [Debug] > │         let v7 : int32 = v6 / 2                                              │

00:01:29 #3071 [Debug] > │         let v8 : int32 = v0.[int v7]                                         │

00:01:29 #3072 [Debug] > │         let v9 : bool = v8 = v1                                              │

00:01:29 #3073 [Debug] > │         if v9 then                                                           │

00:01:29 #3074 [Debug] > │             US0_1(v7)                                                        │

00:01:29 #3075 [Debug] > │         else                                                                 │

00:01:29 #3076 [Debug] > │             let v11 : bool = v8 < v1                                         │

00:01:29 #3077 [Debug] > │             if v11 then                                                      │

00:01:29 #3078 [Debug] > │                 let v12 : int32 = v7 + 1                                     │

00:01:29 #3079 [Debug] > │                 method8(v0, v1, v12, v3)                                     │

00:01:29 #3080 [Debug] > │             else                                                             │

00:01:29 #3081 [Debug] > │                 method8(v0, v1, v2, v7)                                      │

00:01:29 #3082 [Debug] > │ and closure3 () struct (v0 : (int32 []), v1 : int32, v2 : int32) : US0 =     │

00:01:29 #3083 [Debug] > │     let v3 : int32 = 0                                                       │

00:01:29 #3084 [Debug] > │     method8(v0, v1, v3, v2)                                                  │

00:01:29 #3085 [Debug] > │ and method9 (v0 : (int32 []), v1 : int32, v2 : int32, v3 : int32) : US0 =    │

00:01:29 #3086 [Debug] > │     let v4 : bool = v2 > v3                                                  │

00:01:29 #3087 [Debug] > │     if v4 then                                                               │

00:01:29 #3088 [Debug] > │         US0_0                                                                │

00:01:29 #3089 [Debug] > │     else                                                                     │

00:01:29 #3090 [Debug] > │         let v6 : int32 = v2 + v3                                             │

00:01:29 #3091 [Debug] > │         let v7 : int32 = v6 / 2                                              │

00:01:29 #3092 [Debug] > │         let v8 : int32 = v0.[int v7]                                         │

00:01:29 #3093 [Debug] > │         let v9 : bool = v8 = v1                                              │

00:01:29 #3094 [Debug] > │         if v9 then                                                           │

00:01:29 #3095 [Debug] > │             US0_1(v7)                                                        │

00:01:29 #3096 [Debug] > │         else                                                                 │

00:01:29 #3097 [Debug] > │             let v11 : bool = v8 < v1                                         │

00:01:29 #3098 [Debug] > │             if v11 then                                                      │

00:01:29 #3099 [Debug] > │                 let v12 : int32 = v7 + 1                                     │

00:01:29 #3100 [Debug] > │                 method9(v0, v1, v12, v3)                                     │

00:01:29 #3101 [Debug] > │             else                                                             │

00:01:29 #3102 [Debug] > │                 let v14 : int32 = v7 - 1                                     │

00:01:29 #3103 [Debug] > │                 method9(v0, v1, v2, v14)                                     │

00:01:29 #3104 [Debug] > │ and closure4 () struct (v0 : (int32 []), v1 : int32, v2 : int32) : US0 =     │

00:01:29 #3105 [Debug] > │     let v3 : int32 = v2 - 1                                                  │

00:01:29 #3106 [Debug] > │     let v4 : int32 = 0                                                       │

00:01:29 #3107 [Debug] > │     method9(v0, v1, v4, v3)                                                  │

00:01:29 #3108 [Debug] > │ and method11 (v0 : UH1, v1 : uint64) : uint64 =                              │

00:01:29 #3109 [Debug] > │     match v0 with                                                            │

00:01:29 #3110 [Debug] > │     | UH1_0(v2, v3, v4, v5) -> (* Cons *)                                    │

00:01:29 #3111 [Debug] > │         let v6 : uint64 = v1 + 1UL                                           │

00:01:29 #3112 [Debug] > │         method11(v5, v6)                                                     │

00:01:29 #3113 [Debug] > │     | UH1_1 -> (* Nil *)                                                     │

00:01:29 #3114 [Debug] > │         v1                                                                   │

00:01:29 #3115 [Debug] > │ and method12 (v0 : (struct (int32 * string * (struct ((int32 []) * int32 *   │

00:01:29 #3116 [Debug] > │ int32) -> US0)) []), v1 : UH1, v2 : uint64) : uint64 =                       │

00:01:29 #3117 [Debug] > │     match v1 with                                                            │

00:01:29 #3118 [Debug] > │     | UH1_0(v3, v4, v5, v6) -> (* Cons *)                                    │

00:01:29 #3119 [Debug] > │         v0.[int v2] <- struct (v3, v4, v5)                                   │

00:01:29 #3120 [Debug] > │         let v7 : uint64 = v2 + 1UL                                           │

00:01:29 #3121 [Debug] > │         method12(v0, v6, v7)                                                 │

00:01:29 #3122 [Debug] > │     | UH1_1 -> (* Nil *)                                                     │

00:01:29 #3123 [Debug] > │         v2                                                                   │

00:01:29 #3124 [Debug] > │ and method10 (v0 : UH1) : (struct (int32 * string * (struct ((int32 []) *    │

00:01:29 #3125 [Debug] > │ int32 * int32) -> US0)) []) =                                                │

00:01:29 #3126 [Debug] > │     let v1 : uint64 = 0UL                                                    │

00:01:29 #3127 [Debug] > │     let v2 : uint64 = method11(v0, v1)                                       │

00:01:29 #3128 [Debug] > │     let v3 : (struct (int32 * string * (struct ((int32 []) * int32 * int32)  │

00:01:29 #3129 [Debug] > │ -> US0)) []) = Array.zeroCreate<struct (int32 * string * (struct ((int32 []) │

00:01:29 #3130 [Debug] > │ * int32 * int32) -> US0))> (System.Convert.ToInt32(v2))                      │

00:01:29 #3131 [Debug] > │     let v4 : uint64 = 0UL                                                    │

00:01:29 #3132 [Debug] > │     let v5 : uint64 = method12(v3, v0, v4)                                   │

00:01:29 #3133 [Debug] > │     v3                                                                       │

00:01:29 #3134 [Debug] > │ and closure5 () () : unit =                                                  │

00:01:29 #3135 [Debug] > │     ()                                                                       │

00:01:29 #3136 [Debug] > │ and closure6 () () : unit =                                                  │

00:01:29 #3137 [Debug] > │     System.GC.Collect ()                                                     │

00:01:29 #3138 [Debug] > │     ()                                                                       │

00:01:29 #3139 [Debug] > │ and method13 (v0 : Mut0) : bool =                                            │

00:01:29 #3140 [Debug] > │     let v1 : int32 = v0.l0                                                   │

00:01:29 #3141 [Debug] > │     let v2 : bool = v1 < 8000001                                             │

00:01:29 #3142 [Debug] > │     v2                                                                       │

00:01:29 #3143 [Debug] > │ and closure7 (v0 : (int32 []), v1 : int32, v2 : int32, v3 : (struct ((int32  │

00:01:29 #3144 [Debug] > │ []) * int32 * int32) -> US0)) (v4 : int32) : US0 =                           │

00:01:29 #3145 [Debug] > │     v3 struct (v0, v1, v2)                                                   │

00:01:29 #3146 [Debug] > │ and method14 (v0 : US0, v1 : (US0 []), v2 : uint64) : bool =                 │

00:01:29 #3147 [Debug] > │     let v3 : uint64 = System.Convert.ToUInt64 v1.Length                      │

00:01:29 #3148 [Debug] > │     let v4 : bool = v2 < v3                                                  │

00:01:29 #3149 [Debug] > │     if v4 then                                                               │

00:01:29 #3150 [Debug] > │         let v5 : US0 = v1.[int v2]                                           │

00:01:29 #3151 [Debug] > │         let v9 : bool =                                                      │

00:01:29 #3152 [Debug] > │             match v0, v5 with                                                │

00:01:29 #3153 [Debug] > │             | US0_0, US0_0 -> (* None *)                                     │

00:01:29 #3154 [Debug] > │                 true                                                         │

00:01:29 #3155 [Debug] > │             | US0_1(v6), US0_1(v7) -> (* Some *)                             │

00:01:29 #3156 [Debug] > │                 let v8 : bool = v6 = v7                                      │

00:01:29 #3157 [Debug] > │                 v8                                                           │

00:01:29 #3158 [Debug] > │             | _ ->                                                           │

00:01:29 #3159 [Debug] > │                 false                                                        │

00:01:29 #3160 [Debug] > │         if v9 then                                                           │

00:01:29 #3161 [Debug] > │             let v10 : uint64 = v2 + 1UL                                      │

00:01:29 #3162 [Debug] > │             method14(v0, v1, v10)                                            │

00:01:29 #3163 [Debug] > │         else                                                                 │

00:01:29 #3164 [Debug] > │             false                                                            │

00:01:29 #3165 [Debug] > │     else                                                                     │

00:01:29 #3166 [Debug] > │         true                                                                 │

00:01:29 #3167 [Debug] > │ and method15 (v0 : uint64, v1 : Mut2) : bool =                               │

00:01:29 #3168 [Debug] > │     let v2 : uint64 = v1.l0                                                  │

00:01:29 #3169 [Debug] > │     let v3 : bool = v2 < v0                                                  │

00:01:29 #3170 [Debug] > │     v3                                                                       │

00:01:29 #3171 [Debug] > │ and method16 (v0 : UH3, v1 : UH3) : UH3 =                                    │

00:01:29 #3172 [Debug] > │     match v0 with                                                            │

00:01:29 #3173 [Debug] > │     | UH3_0(v2, v3, v4) -> (* Cons *)                                        │

00:01:29 #3174 [Debug] > │         let v5 : UH3 = UH3_0(v2, v3, v1)                                     │

00:01:29 #3175 [Debug] > │         method16(v4, v5)                                                     │

00:01:29 #3176 [Debug] > │     | UH3_1 -> (* Nil *)                                                     │

00:01:29 #3177 [Debug] > │         v1                                                                   │

00:01:29 #3178 [Debug] > │ and method18 (v0 : UH3, v1 : int32) : int32 =                                │

00:01:29 #3179 [Debug] > │     match v0 with                                                            │

00:01:29 #3180 [Debug] > │     | UH3_0(v2, v3, v4) -> (* Cons *)                                        │

00:01:29 #3181 [Debug] > │         let v5 : int32 = v1 + 1                                              │

00:01:29 #3182 [Debug] > │         method18(v4, v5)                                                     │

00:01:29 #3183 [Debug] > │     | UH3_1 -> (* Nil *)                                                     │

00:01:29 #3184 [Debug] > │         v1                                                                   │

00:01:29 #3185 [Debug] > │ and method19 (v0 : (struct (int64 * int64) []), v1 : UH3, v2 : int32) :      │

00:01:29 #3186 [Debug] > │ int32 =                                                                      │

00:01:29 #3187 [Debug] > │     match v1 with                                                            │

00:01:29 #3188 [Debug] > │     | UH3_0(v3, v4, v5) -> (* Cons *)                                        │

00:01:29 #3189 [Debug] > │         v0.[int v2] <- struct (v3, v4)                                       │

00:01:29 #3190 [Debug] > │         let v6 : int32 = v2 + 1                                              │

00:01:29 #3191 [Debug] > │         method19(v0, v5, v6)                                                 │

00:01:29 #3192 [Debug] > │     | UH3_1 -> (* Nil *)                                                     │

00:01:29 #3193 [Debug] > │         v2                                                                   │

00:01:29 #3194 [Debug] > │ and method17 (v0 : UH3) : (struct (int64 * int64) []) =                      │

00:01:29 #3195 [Debug] > │     let v1 : int32 = 0                                                       │

00:01:29 #3196 [Debug] > │     let v2 : int32 = method18(v0, v1)                                        │

00:01:29 #3197 [Debug] > │     let v3 : (struct (int64 * int64) []) = Array.zeroCreate<struct (int64 *  │

00:01:29 #3198 [Debug] > │ int64)> (v2)                                                                 │

00:01:29 #3199 [Debug] > │     let v4 : int32 = 0                                                       │

00:01:29 #3200 [Debug] > │     let v5 : int32 = method19(v3, v0, v4)                                    │

00:01:29 #3201 [Debug] > │     v3                                                                       │

00:01:29 #3202 [Debug] > │ and method20 (v0 : int32, v1 : Mut0) : bool =                                │

00:01:29 #3203 [Debug] > │     let v2 : int32 = v1.l0                                                   │

00:01:29 #3204 [Debug] > │     let v3 : bool = v2 < v0                                                  │

00:01:29 #3205 [Debug] > │     v3                                                                       │

00:01:29 #3206 [Debug] > │ and closure8 () struct (v0 : int64, v1 : int64) : int64 =                    │

00:01:29 #3207 [Debug] > │     v1                                                                       │

00:01:29 #3208 [Debug] > │ and method22 (v0 : UH4, v1 : uint64) : uint64 =                              │

00:01:29 #3209 [Debug] > │     match v0 with                                                            │

00:01:29 #3210 [Debug] > │     | UH4_0(v2, v3, v4) -> (* Cons *)                                        │

00:01:29 #3211 [Debug] > │         let v5 : uint64 = v1 + 1UL                                           │

00:01:29 #3212 [Debug] > │         method22(v4, v5)                                                     │

00:01:29 #3213 [Debug] > │     | UH4_1 -> (* Nil *)                                                     │

00:01:29 #3214 [Debug] > │         v1                                                                   │

00:01:29 #3215 [Debug] > │ and method23 (v0 : (struct (UH2 * US1) []), v1 : UH4, v2 : uint64) : uint64  │

00:01:29 #3216 [Debug] > │ =                                                                            │

00:01:29 #3217 [Debug] > │     match v1 with                                                            │

00:01:29 #3218 [Debug] > │     | UH4_0(v3, v4, v5) -> (* Cons *)                                        │

00:01:29 #3219 [Debug] > │         v0.[int v2] <- struct (v3, v4)                                       │

00:01:29 #3220 [Debug] > │         let v6 : uint64 = v2 + 1UL                                           │

00:01:29 #3221 [Debug] > │         method23(v0, v5, v6)                                                 │

00:01:29 #3222 [Debug] > │     | UH4_1 -> (* Nil *)                                                     │

00:01:29 #3223 [Debug] > │         v2                                                                   │

00:01:29 #3224 [Debug] > │ and method21 (v0 : UH4) : (struct (UH2 * US1) []) =                          │

00:01:29 #3225 [Debug] > │     let v1 : uint64 = 0UL                                                    │

00:01:29 #3226 [Debug] > │     let v2 : uint64 = method22(v0, v1)                                       │

00:01:29 #3227 [Debug] > │     let v3 : (struct (UH2 * US1) []) = Array.zeroCreate<struct (UH2 * US1)>  │

00:01:29 #3228 [Debug] > │ (System.Convert.ToInt32(v2))                                                 │

00:01:29 #3229 [Debug] > │     let v4 : uint64 = 0UL                                                    │

00:01:29 #3230 [Debug] > │     let v5 : uint64 = method23(v3, v0, v4)                                   │

00:01:29 #3231 [Debug] > │     v3                                                                       │

00:01:29 #3232 [Debug] > │ and method25 (v0 : UH2, v1 : uint64) : uint64 =                              │

00:01:29 #3233 [Debug] > │     match v0 with                                                            │

00:01:29 #3234 [Debug] > │     | UH2_0(v2, v3) -> (* Cons *)                                            │

00:01:29 #3235 [Debug] > │         let v4 : uint64 = v1 + 1UL                                           │

00:01:29 #3236 [Debug] > │         method25(v3, v4)                                                     │

00:01:29 #3237 [Debug] > │     | UH2_1 -> (* Nil *)                                                     │

00:01:29 #3238 [Debug] > │         v1                                                                   │

00:01:29 #3239 [Debug] > │ and method26 (v0 : (string []), v1 : UH2, v2 : uint64) : uint64 =            │

00:01:29 #3240 [Debug] > │     match v1 with                                                            │

00:01:29 #3241 [Debug] > │     | UH2_0(v3, v4) -> (* Cons *)                                            │

00:01:29 #3242 [Debug] > │         v0.[int v2] <- v3                                                    │

00:01:29 #3243 [Debug] > │         let v5 : uint64 = v2 + 1UL                                           │

00:01:29 #3244 [Debug] > │         method26(v0, v4, v5)                                                 │

00:01:29 #3245 [Debug] > │     | UH2_1 -> (* Nil *)                                                     │

00:01:29 #3246 [Debug] > │         v2                                                                   │

00:01:29 #3247 [Debug] > │ and method24 (v0 : UH2) : (string []) =                                      │

00:01:29 #3248 [Debug] > │     let v1 : uint64 = 0UL                                                    │

00:01:29 #3249 [Debug] > │     let v2 : uint64 = method25(v0, v1)                                       │

00:01:29 #3250 [Debug] > │     let v3 : (string []) = Array.zeroCreate<string>                          │

00:01:29 #3251 [Debug] > │ (System.Convert.ToInt32(v2))                                                 │

00:01:29 #3252 [Debug] > │     let v4 : uint64 = 0UL                                                    │

00:01:29 #3253 [Debug] > │     let v5 : uint64 = method26(v3, v0, v4)                                   │

00:01:29 #3254 [Debug] > │     v3                                                                       │

00:01:29 #3255 [Debug] > │ and closure9 () (v0 : int64) : US2 =                                         │

00:01:29 #3256 [Debug] > │     US2_1(v0)                                                                │

00:01:29 #3257 [Debug] > │ and method27 (v0 : uint64, v1 : Mut3) : bool =                               │

00:01:29 #3258 [Debug] > │     let v2 : uint64 = v1.l0                                                  │

00:01:29 #3259 [Debug] > │     let v3 : bool = v2 < v0                                                  │

00:01:29 #3260 [Debug] > │     v3                                                                       │

00:01:29 #3261 [Debug] > │ and method28 (v0 : UH5, v1 : UH5) : UH5 =                                    │

00:01:29 #3262 [Debug] > │     match v0 with                                                            │

00:01:29 #3263 [Debug] > │     | UH5_0(v2, v3, v4) -> (* Cons *)                                        │

00:01:29 #3264 [Debug] > │         let v5 : UH5 = UH5_0(v2, v3, v1)                                     │

00:01:29 #3265 [Debug] > │         method28(v4, v5)                                                     │

00:01:29 #3266 [Debug] > │     | UH5_1 -> (* Nil *)                                                     │

00:01:29 #3267 [Debug] > │         v1                                                                   │

00:01:29 #3268 [Debug] > │ and method30 (v0 : UH5, v1 : int32) : int32 =                                │

00:01:29 #3269 [Debug] > │     match v0 with                                                            │

00:01:29 #3270 [Debug] > │     | UH5_0(v2, v3, v4) -> (* Cons *)                                        │

00:01:29 #3271 [Debug] > │         let v5 : int32 = v1 + 1                                              │

00:01:29 #3272 [Debug] > │         method30(v4, v5)                                                     │

00:01:29 #3273 [Debug] > │     | UH5_1 -> (* Nil *)                                                     │

00:01:29 #3274 [Debug] > │         v1                                                                   │

00:01:29 #3275 [Debug] > │ and method31 (v0 : (struct (int32 * int64) []), v1 : UH5, v2 : int32) :      │

00:01:29 #3276 [Debug] > │ int32 =                                                                      │

00:01:29 #3277 [Debug] > │     match v1 with                                                            │

00:01:29 #3278 [Debug] > │     | UH5_0(v3, v4, v5) -> (* Cons *)                                        │

00:01:29 #3279 [Debug] > │         v0.[int v2] <- struct (v3, v4)                                       │

00:01:29 #3280 [Debug] > │         let v6 : int32 = v2 + 1                                              │

00:01:29 #3281 [Debug] > │         method31(v0, v5, v6)                                                 │

00:01:29 #3282 [Debug] > │     | UH5_1 -> (* Nil *)                                                     │

00:01:29 #3283 [Debug] > │         v2                                                                   │

00:01:29 #3284 [Debug] > │ and method29 (v0 : UH5) : (struct (int32 * int64) []) =                      │

00:01:29 #3285 [Debug] > │     let v1 : int32 = 0                                                       │

00:01:29 #3286 [Debug] > │     let v2 : int32 = method30(v0, v1)                                        │

00:01:29 #3287 [Debug] > │     let v3 : (struct (int32 * int64) []) = Array.zeroCreate<struct (int32 *  │

00:01:29 #3288 [Debug] > │ int64)> (v2)                                                                 │

00:01:29 #3289 [Debug] > │     let v4 : int32 = 0                                                       │

00:01:29 #3290 [Debug] > │     let v5 : int32 = method31(v3, v0, v4)                                    │

00:01:29 #3291 [Debug] > │     v3                                                                       │

00:01:29 #3292 [Debug] > │ and method32 (v0 : UH2, v1 : UH6, v2 : int32) : struct (UH6 * int32) =       │

00:01:29 #3293 [Debug] > │     match v0 with                                                            │

00:01:29 #3294 [Debug] > │     | UH2_0(v3, v4) -> (* Cons *)                                            │

00:01:29 #3295 [Debug] > │         let v5 : int32 = v2 + 1                                              │

00:01:29 #3296 [Debug] > │         let v6 : UH6 = UH6_0(v2, v3, v1)                                     │

00:01:29 #3297 [Debug] > │         method32(v4, v6, v5)                                                 │

00:01:29 #3298 [Debug] > │     | UH2_1 -> (* Nil *)                                                     │

00:01:29 #3299 [Debug] > │         struct (v1, v2)                                                      │

00:01:29 #3300 [Debug] > │ and method33 (v0 : UH6, v1 : UH6) : UH6 =                                    │

00:01:29 #3301 [Debug] > │     match v0 with                                                            │

00:01:29 #3302 [Debug] > │     | UH6_0(v2, v3, v4) -> (* Cons *)                                        │

00:01:29 #3303 [Debug] > │         let v5 : UH6 = UH6_0(v2, v3, v1)                                     │

00:01:29 #3304 [Debug] > │         method33(v4, v5)                                                     │

00:01:29 #3305 [Debug] > │     | UH6_1 -> (* Nil *)                                                     │

00:01:29 #3306 [Debug] > │         v1                                                                   │

00:01:29 #3307 [Debug] > │ and method34 (v0 : Map<int32, int64>, v1 : UH6, v2 : UH2) : UH2 =            │

00:01:29 #3308 [Debug] > │     match v1 with                                                            │

00:01:29 #3309 [Debug] > │     | UH6_0(v3, v4, v5) -> (* Cons *)                                        │

00:01:29 #3310 [Debug] > │         let v6 : UH2 = method34(v0, v5, v2)                                  │

00:01:29 #3311 [Debug] > │         let v7 : int64 = v0.[v3]                                             │

00:01:29 #3312 [Debug] > │         let v8 : int32 = int32 v7                                            │

00:01:29 #3313 [Debug] > │         let v9 : string = v4.PadRight v8                                     │

00:01:29 #3314 [Debug] > │         UH2_0(v9, v6)                                                        │

00:01:29 #3315 [Debug] > │     | UH6_1 -> (* Nil *)                                                     │

00:01:29 #3316 [Debug] > │         v2                                                                   │

00:01:29 #3317 [Debug] > │ and method36 (v0 : UH2, v1 : int32) : int32 =                                │

00:01:29 #3318 [Debug] > │     match v0 with                                                            │

00:01:29 #3319 [Debug] > │     | UH2_0(v2, v3) -> (* Cons *)                                            │

00:01:29 #3320 [Debug] > │         let v4 : int32 = v1 + 1                                              │

00:01:29 #3321 [Debug] > │         method36(v3, v4)                                                     │

00:01:29 #3322 [Debug] > │     | UH2_1 -> (* Nil *)                                                     │

00:01:29 #3323 [Debug] > │         v1                                                                   │

00:01:29 #3324 [Debug] > │ and method37 (v0 : (string []), v1 : UH2, v2 : int32) : int32 =              │

00:01:29 #3325 [Debug] > │     match v1 with                                                            │

00:01:29 #3326 [Debug] > │     | UH2_0(v3, v4) -> (* Cons *)                                            │

00:01:29 #3327 [Debug] > │         v0.[int v2] <- v3                                                    │

00:01:29 #3328 [Debug] > │         let v5 : int32 = v2 + 1                                              │

00:01:29 #3329 [Debug] > │         method37(v0, v4, v5)                                                 │

00:01:29 #3330 [Debug] > │     | UH2_1 -> (* Nil *)                                                     │

00:01:29 #3331 [Debug] > │         v2                                                                   │

00:01:29 #3332 [Debug] > │ and method35 (v0 : UH2) : (string []) =                                      │

00:01:29 #3333 [Debug] > │     let v1 : int32 = 0                                                       │

00:01:29 #3334 [Debug] > │     let v2 : int32 = method36(v0, v1)                                        │

00:01:29 #3335 [Debug] > │     let v3 : (string []) = Array.zeroCreate<string> (v2)                     │

00:01:29 #3336 [Debug] > │     let v4 : int32 = 0                                                       │

00:01:29 #3337 [Debug] > │     let v5 : int32 = method37(v3, v0, v4)                                    │

00:01:29 #3338 [Debug] > │     v3                                                                       │

00:01:29 #3339 [Debug] > │ and closure10 () () : unit =                                                 │

00:01:29 #3340 [Debug] > │     ()                                                                       │

00:01:29 #3341 [Debug] > │ and closure11 () () : unit =                                                 │

00:01:29 #3342 [Debug] > │     System.Console.ResetColor ()                                             │

00:01:29 #3343 [Debug] > │     ()                                                                       │

00:01:29 #3344 [Debug] > │ and closure12 () () : unit =                                                 │

00:01:29 #3345 [Debug] > │     ()                                                                       │

00:01:29 #3346 [Debug] > │ and closure13 (v0 : System.ConsoleColor) () : unit =                         │

00:01:29 #3347 [Debug] > │     System.Console.ForegroundColor <- v0                                     │

00:01:29 #3348 [Debug] > │     ()                                                                       │

00:01:29 #3349 [Debug] > │ and method39 (v0 : UH5, v1 : uint64) : uint64 =                              │

00:01:29 #3350 [Debug] > │     match v0 with                                                            │

00:01:29 #3351 [Debug] > │     | UH5_0(v2, v3, v4) -> (* Cons *)                                        │

00:01:29 #3352 [Debug] > │         let v5 : uint64 = v1 + 1UL                                           │

00:01:29 #3353 [Debug] > │         method39(v4, v5)                                                     │

00:01:29 #3354 [Debug] > │     | UH5_1 -> (* Nil *)                                                     │

00:01:29 #3355 [Debug] > │         v1                                                                   │

00:01:29 #3356 [Debug] > │ and method40 (v0 : (struct (int32 * int64) []), v1 : UH5, v2 : uint64) :     │

00:01:29 #3357 [Debug] > │ uint64 =                                                                     │

00:01:29 #3358 [Debug] > │     match v1 with                                                            │

00:01:29 #3359 [Debug] > │     | UH5_0(v3, v4, v5) -> (* Cons *)                                        │

00:01:29 #3360 [Debug] > │         v0.[int v2] <- struct (v3, v4)                                       │

00:01:29 #3361 [Debug] > │         let v6 : uint64 = v2 + 1UL                                           │

00:01:29 #3362 [Debug] > │         method40(v0, v5, v6)                                                 │

00:01:29 #3363 [Debug] > │     | UH5_1 -> (* Nil *)                                                     │

00:01:29 #3364 [Debug] > │         v2                                                                   │

00:01:29 #3365 [Debug] > │ and method38 (v0 : UH5) : (struct (int32 * int64) []) =                      │

00:01:29 #3366 [Debug] > │     let v1 : uint64 = 0UL                                                    │

00:01:29 #3367 [Debug] > │     let v2 : uint64 = method39(v0, v1)                                       │

00:01:29 #3368 [Debug] > │     let v3 : (struct (int32 * int64) []) = Array.zeroCreate<struct (int32 *  │

00:01:29 #3369 [Debug] > │ int64)> (System.Convert.ToInt32(v2))                                         │

00:01:29 #3370 [Debug] > │     let v4 : uint64 = 0UL                                                    │

00:01:29 #3371 [Debug] > │     let v5 : uint64 = method40(v3, v0, v4)                                   │

00:01:29 #3372 [Debug] > │     v3                                                                       │

00:01:29 #3373 [Debug] > │ and closure14 () struct (v0 : int32, v1 : int64) : int64 =                   │

00:01:29 #3374 [Debug] > │     v1                                                                       │

00:01:29 #3375 [Debug] > │ and closure0 () () : unit =                                                  │

00:01:29 #3376 [Debug] > │     let v0 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|]                           │

00:01:29 #3377 [Debug] > │     let v1 : int32 = v0.Length                                               │

00:01:29 #3378 [Debug] > │     let v2 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|]                           │

00:01:29 #3379 [Debug] > │     let v3 : int32 = v2.Length                                               │

00:01:29 #3380 [Debug] > │     let v4 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|]                           │

00:01:29 #3381 [Debug] > │     let v5 : int32 = v4.Length                                               │

00:01:29 #3382 [Debug] > │     let v6 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|]                           │

00:01:29 #3383 [Debug] > │     let v7 : int32 = v6.Length                                               │

00:01:29 #3384 [Debug] > │     let v8 : (int32 []) = Array.zeroCreate<int32> (100)                      │

00:01:29 #3385 [Debug] > │     let v9 : Mut0 = {l0 = 0} : Mut0                                          │

00:01:29 #3386 [Debug] > │     while method1(v9) do                                                     │

00:01:29 #3387 [Debug] > │         let v11 : int32 = v9.l0                                              │

00:01:29 #3388 [Debug] > │         let v12 : int32 = 1 + v11                                            │

00:01:29 #3389 [Debug] > │         v8.[int v11] <- v12                                                  │

00:01:29 #3390 [Debug] > │         let v13 : int32 = v11 + 1                                            │

00:01:29 #3391 [Debug] > │         v9.l0 <- v13                                                         │

00:01:29 #3392 [Debug] > │         ()                                                                   │

00:01:29 #3393 [Debug] > │     let v14 : int32 = v8.Length                                              │

00:01:29 #3394 [Debug] > │     let v15 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|]                          │

00:01:29 #3395 [Debug] > │     let v16 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|]                          │

00:01:29 #3396 [Debug] > │     let v17 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|]                          │

00:01:29 #3397 [Debug] > │     let v18 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|]                          │

00:01:29 #3398 [Debug] > │     let v19 : (int32 []) = Array.zeroCreate<int32> (100)                     │

00:01:29 #3399 [Debug] > │     let v20 : Mut0 = {l0 = 0} : Mut0                                         │

00:01:29 #3400 [Debug] > │     while method1(v20) do                                                    │

00:01:29 #3401 [Debug] > │         let v22 : int32 = v20.l0                                             │

00:01:29 #3402 [Debug] > │         let v23 : int32 = 1 + v22                                            │

00:01:29 #3403 [Debug] > │         v19.[int v22] <- v23                                                 │

00:01:29 #3404 [Debug] > │         let v24 : int32 = v22 + 1                                            │

00:01:29 #3405 [Debug] > │         v20.l0 <- v24                                                        │

00:01:29 #3406 [Debug] > │         ()                                                                   │

00:01:29 #3407 [Debug] > │     let v25 : (unit -> unit) = closure0()                                    │

00:01:29 #3408 [Debug] > │     let v26 : string = nameof v25                                            │

00:01:29 #3409 [Debug] > │     let v27 : string = ""                                                    │

00:01:29 #3410 [Debug] > │     System.Console.WriteLine v27                                             │

00:01:29 #3411 [Debug] > │     System.Console.WriteLine v27                                             │

00:01:29 #3412 [Debug] > │     let v28 : string = $"Test: {v26}"                                        │

00:01:29 #3413 [Debug] > │     System.Console.WriteLine v28                                             │

00:01:29 #3414 [Debug] > │     let v29 : int32 = 6                                                      │

00:01:29 #3415 [Debug] > │     let v30 : int32 = 3                                                      │

00:01:29 #3416 [Debug] > │     let v31 : US0 = US0_1(v30)                                               │

00:01:29 #3417 [Debug] > │     let v32 : int32 = 1                                                      │

00:01:29 #3418 [Debug] > │     let v33 : int32 = 0                                                      │

00:01:29 #3419 [Debug] > │     let v34 : US0 = US0_1(v33)                                               │

00:01:29 #3420 [Debug] > │     let v35 : int32 = 11                                                     │

00:01:29 #3421 [Debug] > │     let v36 : int32 = 6                                                      │

00:01:29 #3422 [Debug] > │     let v37 : US0 = US0_1(v36)                                               │

00:01:29 #3423 [Debug] > │     let v38 : int32 = 12                                                     │

00:01:29 #3424 [Debug] > │     let v39 : US0 = US0_0                                                    │

00:01:29 #3425 [Debug] > │     let v40 : int32 = 60                                                     │

00:01:29 #3426 [Debug] > │     let v41 : int32 = 59                                                     │

00:01:29 #3427 [Debug] > │     let v42 : US0 = US0_1(v41)                                               │

00:01:29 #3428 [Debug] > │     let v43 : int32 = 6                                                      │

00:01:29 #3429 [Debug] > │     let v44 : int32 = 7                                                      │

00:01:29 #3430 [Debug] > │     let v45 : int32 = 3                                                      │

00:01:29 #3431 [Debug] > │     let v46 : US0 = US0_1(v45)                                               │

00:01:29 #3432 [Debug] > │     let v47 : int32 = 1                                                      │

00:01:29 #3433 [Debug] > │     let v48 : int32 = 7                                                      │

00:01:29 #3434 [Debug] > │     let v49 : int32 = 0                                                      │

00:01:29 #3435 [Debug] > │     let v50 : US0 = US0_1(v49)                                               │

00:01:29 #3436 [Debug] > │     let v51 : int32 = 11                                                     │

00:01:29 #3437 [Debug] > │     let v52 : int32 = 7                                                      │

00:01:29 #3438 [Debug] > │     let v53 : int32 = 6                                                      │

00:01:29 #3439 [Debug] > │     let v54 : US0 = US0_1(v53)                                               │

00:01:29 #3440 [Debug] > │     let v55 : int32 = 12                                                     │

00:01:29 #3441 [Debug] > │     let v56 : int32 = 7                                                      │

00:01:29 #3442 [Debug] > │     let v57 : US0 = US0_0                                                    │

00:01:29 #3443 [Debug] > │     let v58 : int32 = 60                                                     │

00:01:29 #3444 [Debug] > │     let v59 : int32 = 100                                                    │

00:01:29 #3445 [Debug] > │     let v60 : int32 = 59                                                     │

00:01:29 #3446 [Debug] > │     let v61 : US0 = US0_1(v60)                                               │

00:01:29 #3447 [Debug] > │     let v62 : UH0 = UH0_1                                                    │

00:01:29 #3448 [Debug] > │     let v63 : UH0 = UH0_0(v19, v58, v59, v61, v62)                           │

00:01:29 #3449 [Debug] > │     let v64 : UH0 = UH0_0(v18, v55, v56, v57, v63)                           │

00:01:29 #3450 [Debug] > │     let v65 : UH0 = UH0_0(v17, v51, v52, v54, v64)                           │

00:01:29 #3451 [Debug] > │     let v66 : UH0 = UH0_0(v16, v47, v48, v50, v65)                           │

00:01:29 #3452 [Debug] > │     let v67 : UH0 = UH0_0(v15, v43, v44, v46, v66)                           │

00:01:29 #3453 [Debug] > │     let v68 : UH0 = UH0_0(v8, v40, v14, v42, v67)                            │

00:01:29 #3454 [Debug] > │     let v69 : UH0 = UH0_0(v6, v38, v7, v39, v68)                             │

00:01:29 #3455 [Debug] > │     let v70 : UH0 = UH0_0(v4, v35, v5, v37, v69)                             │

00:01:29 #3456 [Debug] > │     let v71 : UH0 = UH0_0(v2, v32, v3, v34, v70)                             │

00:01:29 #3457 [Debug] > │     let v72 : UH0 = UH0_0(v0, v29, v1, v31, v71)                             │

00:01:29 #3458 [Debug] > │     let v73 : (struct ((int32 []) * int32 * int32 * US0) []) = method2(v72)  │

00:01:29 #3459 [Debug] > │     let v74 : uint64 = System.Convert.ToUInt64 v73.Length                    │

00:01:29 #3460 [Debug] > │     let v75 : (struct (string * string * string * (int64 [])) []) =          │

00:01:29 #3461 [Debug] > │ Array.zeroCreate<struct (string * string * string * (int64 []))>             │

00:01:29 #3462 [Debug] > │ (System.Convert.ToInt32(v74))                                                │

00:01:29 #3463 [Debug] > │     let v76 : Mut1 = {l0 = 0UL} : Mut1                                       │

00:01:29 #3464 [Debug] > │     while method5(v74, v76) do                                               │

00:01:29 #3465 [Debug] > │         let v78 : uint64 = v76.l0                                            │

00:01:29 #3466 [Debug] > │         let struct (v79 : (int32 []), v80 : int32, v81 : int32, v82 : US0) = │

00:01:29 #3467 [Debug] > │ v73.[int v78]                                                                │

00:01:29 #3468 [Debug] > │         let v83 : string = $"%A{struct (v79, v80, v81)}"                     │

00:01:29 #3469 [Debug] > │         System.Console.WriteLine v27                                         │

00:01:29 #3470 [Debug] > │         let v84 : string = $"Solution: {v83}  "                              │

00:01:29 #3471 [Debug] > │         System.Console.WriteLine v84                                         │

00:01:29 #3472 [Debug] > │         let v85 : int32 = 0                                                  │

00:01:29 #3473 [Debug] > │         let v86 : string = "semi_open_1"                                     │

00:01:29 #3474 [Debug] > │         let v87 : (struct ((int32 []) * int32 * int32) -> US0) = closure1()  │

00:01:29 #3475 [Debug] > │         let v88 : int32 = 1                                                  │

00:01:29 #3476 [Debug] > │         let v89 : string = "closed_1"                                        │

00:01:29 #3477 [Debug] > │         let v90 : (struct ((int32 []) * int32 * int32) -> US0) = closure2()  │

00:01:29 #3478 [Debug] > │         let v91 : int32 = 2                                                  │

00:01:29 #3479 [Debug] > │         let v92 : string = "semi_open_2"                                     │

00:01:29 #3480 [Debug] > │         let v93 : (struct ((int32 []) * int32 * int32) -> US0) = closure3()  │

00:01:29 #3481 [Debug] > │         let v94 : int32 = 3                                                  │

00:01:29 #3482 [Debug] > │         let v95 : string = "closed_2"                                        │

00:01:29 #3483 [Debug] > │         let v96 : (struct ((int32 []) * int32 * int32) -> US0) = closure4()  │

00:01:29 #3484 [Debug] > │         let v97 : UH1 = UH1_1                                                │

00:01:29 #3485 [Debug] > │         let v98 : UH1 = UH1_0(v94, v95, v96, v97)                            │

00:01:29 #3486 [Debug] > │         let v99 : UH1 = UH1_0(v91, v92, v93, v98)                            │

00:01:29 #3487 [Debug] > │         let v100 : UH1 = UH1_0(v88, v89, v90, v99)                           │

00:01:29 #3488 [Debug] > │         let v101 : UH1 = UH1_0(v85, v86, v87, v100)                          │

00:01:29 #3489 [Debug] > │         let v102 : (struct (int32 * string * (struct ((int32 []) * int32 *   │

00:01:29 #3490 [Debug] > │ int32) -> US0)) []) = method10(v101)                                         │

00:01:29 #3491 [Debug] > │         let v103 : uint64 = System.Convert.ToUInt64 v102.Length              │

00:01:29 #3492 [Debug] > │         let v104 : (struct (US0 * int64) []) = Array.zeroCreate<struct (US0  │

00:01:29 #3493 [Debug] > │ * int64)> (System.Convert.ToInt32(v103))                                     │

00:01:29 #3494 [Debug] > │         let v105 : Mut1 = {l0 = 0UL} : Mut1                                  │

00:01:29 #3495 [Debug] > │         while method5(v103, v105) do                                         │

00:01:29 #3496 [Debug] > │             let v107 : uint64 = v105.l0                                      │

00:01:29 #3497 [Debug] > │             let struct (v108 : int32, v109 : string, v110 : (struct ((int32  │

00:01:29 #3498 [Debug] > │ []) * int32 * int32) -> US0)) = v102.[int v107]                              │

00:01:29 #3499 [Debug] > │             #if FABLE_COMPILER_RUST                                          │

00:01:29 #3500 [Debug] > │             let v111 : (unit -> unit) = closure5()                           │

00:01:29 #3501 [Debug] > │             v111 ()                                                          │

00:01:29 #3502 [Debug] > │             #else                                                            │

00:01:29 #3503 [Debug] > │             let v112 : (unit -> unit) = closure6()                           │

00:01:29 #3504 [Debug] > │             v112 ()                                                          │

00:01:29 #3505 [Debug] > │             #endif                                                           │

00:01:29 #3506 [Debug] > │             let v113 : (unit -> System.Diagnostics.Stopwatch) =              │

00:01:29 #3507 [Debug] > │ System.Diagnostics.Stopwatch                                                 │

00:01:29 #3508 [Debug] > │             let v114 : System.Diagnostics.Stopwatch = v113 ()                │

00:01:29 #3509 [Debug] > │             v114.Start ()                                                    │

00:01:29 #3510 [Debug] > │             let v115 : int64 = v114.ElapsedMilliseconds                      │

00:01:29 #3511 [Debug] > │             let v116 : (int32 []) = Array.zeroCreate<int32> (8000001)        │

00:01:29 #3512 [Debug] > │             let v117 : Mut0 = {l0 = 0} : Mut0                                │

00:01:29 #3513 [Debug] > │             while method13(v117) do                                          │

00:01:29 #3514 [Debug] > │                 let v119 : int32 = v117.l0                                   │

00:01:29 #3515 [Debug] > │                 v116.[int v119] <- v119                                      │

00:01:29 #3516 [Debug] > │                 let v120 : int32 = v119 + 1                                  │

00:01:29 #3517 [Debug] > │                 v117.l0 <- v120                                              │

00:01:29 #3518 [Debug] > │                 ()                                                           │

00:01:29 #3519 [Debug] > │             let v121 : (int32 -> US0) = closure7(v79, v80, v81, v110)        │

00:01:29 #3520 [Debug] > │             let v122 : (US0 []) = v116 |> Array.Parallel.map v121            │

00:01:29 #3521 [Debug] > │             let v123 : int32 = v122.Length                                   │

00:01:29 #3522 [Debug] > │             let v124 : int32 = v123 - 1                                      │

00:01:29 #3523 [Debug] > │             let v125 : US0 = v122.[int v124]                                 │

00:01:29 #3524 [Debug] > │             let v126 : int64 = v114.ElapsedMilliseconds                      │

00:01:29 #3525 [Debug] > │             let v127 : int64 = v126 - v115                                   │

00:01:29 #3526 [Debug] > │             let v128 : string = $"Test case {v108 + 1}. {v109}. Time: {v127} │

00:01:29 #3527 [Debug] > │ "                                                                            │

00:01:29 #3528 [Debug] > │             System.Console.WriteLine v128                                    │

00:01:29 #3529 [Debug] > │             v104.[int v107] <- struct (v125, v127)                           │

00:01:29 #3530 [Debug] > │             let v129 : uint64 = v107 + 1UL                                   │

00:01:29 #3531 [Debug] > │             v105.l0 <- v129                                                  │

00:01:29 #3532 [Debug] > │             ()                                                               │

00:01:29 #3533 [Debug] > │         let v130 : uint64 = System.Convert.ToUInt64 v104.Length              │

00:01:29 #3534 [Debug] > │         let v131 : (US0 []) = Array.zeroCreate<US0>                          │

00:01:29 #3535 [Debug] > │ (System.Convert.ToInt32(v130))                                               │

00:01:29 #3536 [Debug] > │         let v132 : Mut1 = {l0 = 0UL} : Mut1                                  │

00:01:29 #3537 [Debug] > │         while method5(v130, v132) do                                         │

00:01:29 #3538 [Debug] > │             let v134 : uint64 = v132.l0                                      │

00:01:29 #3539 [Debug] > │             let struct (v135 : US0, v136 : int64) = v104.[int v134]          │

00:01:29 #3540 [Debug] > │             v131.[int v134] <- v135                                          │

00:01:29 #3541 [Debug] > │             let v137 : uint64 = v134 + 1UL                                   │

00:01:29 #3542 [Debug] > │             v132.l0 <- v137                                                  │

00:01:29 #3543 [Debug] > │             ()                                                               │

00:01:29 #3544 [Debug] > │         let v138 : uint64 = System.Convert.ToUInt64 v131.Length              │

00:01:29 #3545 [Debug] > │         let v139 : bool = v138 <= 1UL                                        │

00:01:29 #3546 [Debug] > │         if v139 then                                                         │

00:01:29 #3547 [Debug] > │             ()                                                               │

00:01:29 #3548 [Debug] > │         else                                                                 │

00:01:29 #3549 [Debug] > │             let v140 : US0 = v131.[int 0UL]                                  │

00:01:29 #3550 [Debug] > │             let v141 : uint64 = 0UL                                          │

00:01:29 #3551 [Debug] > │             let v142 : bool = method14(v140, v131, v141)                     │

00:01:29 #3552 [Debug] > │             if v142 then                                                     │

00:01:29 #3553 [Debug] > │                 ()                                                           │

00:01:29 #3554 [Debug] > │             else                                                             │

00:01:29 #3555 [Debug] > │                 let v143 : string = $"Challenge error: {v131}"               │

00:01:29 #3556 [Debug] > │                 failwith<unit> v143                                          │

00:01:29 #3557 [Debug] > │         let v144 : string = $"%A{v82}"                                       │

00:01:29 #3558 [Debug] > │         let v145 : (US0 []) = Array.zeroCreate<US0>                          │

00:01:29 #3559 [Debug] > │ (System.Convert.ToInt32(v130))                                               │

00:01:29 #3560 [Debug] > │         let v146 : Mut1 = {l0 = 0UL} : Mut1                                  │

00:01:29 #3561 [Debug] > │         while method5(v130, v146) do                                         │

00:01:29 #3562 [Debug] > │             let v148 : uint64 = v146.l0                                      │

00:01:29 #3563 [Debug] > │             let struct (v149 : US0, v150 : int64) = v104.[int v148]          │

00:01:29 #3564 [Debug] > │             v145.[int v148] <- v149                                          │

00:01:29 #3565 [Debug] > │             let v151 : uint64 = v148 + 1UL                                   │

00:01:29 #3566 [Debug] > │             v146.l0 <- v151                                                  │

00:01:29 #3567 [Debug] > │             ()                                                               │

00:01:29 #3568 [Debug] > │         let v152 : US0 = v145.[int 0UL]                                      │

00:01:29 #3569 [Debug] > │         let v153 : string = $"%A{v152}"                                      │

00:01:29 #3570 [Debug] > │         let v154 : (int64 []) = Array.zeroCreate<int64>                      │

00:01:29 #3571 [Debug] > │ (System.Convert.ToInt32(v130))                                               │

00:01:29 #3572 [Debug] > │         let v155 : Mut1 = {l0 = 0UL} : Mut1                                  │

00:01:29 #3573 [Debug] > │         while method5(v130, v155) do                                         │

00:01:29 #3574 [Debug] > │             let v157 : uint64 = v155.l0                                      │

00:01:29 #3575 [Debug] > │             let struct (v158 : US0, v159 : int64) = v104.[int v157]          │

00:01:29 #3576 [Debug] > │             v154.[int v157] <- v159                                          │

00:01:29 #3577 [Debug] > │             let v160 : uint64 = v157 + 1UL                                   │

00:01:29 #3578 [Debug] > │             v155.l0 <- v160                                                  │

00:01:29 #3579 [Debug] > │             ()                                                               │

00:01:29 #3580 [Debug] > │         v75.[int v78] <- struct (v144, v83, v153, v154)                      │

00:01:29 #3581 [Debug] > │         let v161 : uint64 = v78 + 1UL                                        │

00:01:29 #3582 [Debug] > │         v76.l0 <- v161                                                       │

00:01:29 #3583 [Debug] > │         ()                                                                   │

00:01:29 #3584 [Debug] > │     let v162 : uint64 = System.Convert.ToUInt64 v75.Length                   │

00:01:29 #3585 [Debug] > │     let v163 : (struct (UH2 * US1) []) = Array.zeroCreate<struct (UH2 *      │

00:01:29 #3586 [Debug] > │ US1)> (System.Convert.ToInt32(v162))                                         │

00:01:29 #3587 [Debug] > │     let v164 : Mut1 = {l0 = 0UL} : Mut1                                      │

00:01:29 #3588 [Debug] > │     while method5(v162, v164) do                                             │

00:01:29 #3589 [Debug] > │         let v166 : uint64 = v164.l0                                          │

00:01:29 #3590 [Debug] > │         let struct (v167 : string, v168 : string, v169 : string, v170 :      │

00:01:29 #3591 [Debug] > │ (int64 [])) = v75.[int v166]                                                 │

00:01:29 #3592 [Debug] > │         let v171 : uint64 = System.Convert.ToUInt64 v170.Length              │

00:01:29 #3593 [Debug] > │         let v172 : UH3 = UH3_1                                               │

00:01:29 #3594 [Debug] > │         let v173 : Mut2 = {l0 = 0UL; l1 = v172; l2 = 0L} : Mut2              │

00:01:29 #3595 [Debug] > │         while method15(v171, v173) do                                        │

00:01:29 #3596 [Debug] > │             let v175 : uint64 = v173.l0                                      │

00:01:29 #3597 [Debug] > │             let struct (v176 : UH3, v177 : int64) = v173.l1, v173.l2         │

00:01:29 #3598 [Debug] > │             let v178 : int64 = v170.[int v175]                               │

00:01:29 #3599 [Debug] > │             let v179 : int64 = v177 + 1L                                     │

00:01:29 #3600 [Debug] > │             let v180 : uint64 = v175 + 1UL                                   │

00:01:29 #3601 [Debug] > │             let v181 : UH3 = UH3_0(v177, v178, v176)                         │

00:01:29 #3602 [Debug] > │             v173.l0 <- v180                                                  │

00:01:29 #3603 [Debug] > │             v173.l1 <- v181                                                  │

00:01:29 #3604 [Debug] > │             v173.l2 <- v179                                                  │

00:01:29 #3605 [Debug] > │             ()                                                               │

00:01:29 #3606 [Debug] > │         let struct (v182 : UH3, v183 : int64) = v173.l1, v173.l2             │

00:01:29 #3607 [Debug] > │         let v184 : UH3 = UH3_1                                               │

00:01:29 #3608 [Debug] > │         let v185 : UH3 = method16(v182, v184)                                │

00:01:29 #3609 [Debug] > │         let v186 : (struct (int64 * int64) []) = method17(v185)              │

00:01:29 #3610 [Debug] > │         let v187 : int32 = v186.Length                                       │

00:01:29 #3611 [Debug] > │         let v188 : (struct (int64 * int64) []) = Array.zeroCreate<struct     │

00:01:29 #3612 [Debug] > │ (int64 * int64)> (v187)                                                      │

00:01:29 #3613 [Debug] > │         let v189 : Mut0 = {l0 = 0} : Mut0                                    │

00:01:29 #3614 [Debug] > │         while method20(v187, v189) do                                        │

00:01:29 #3615 [Debug] > │             let v191 : int32 = v189.l0                                       │

00:01:29 #3616 [Debug] > │             let struct (v192 : int64, v193 : int64) = v186.[int v191]        │

00:01:29 #3617 [Debug] > │             let v194 : int64 = v192 + 1L                                     │

00:01:29 #3618 [Debug] > │             v188.[int v191] <- struct (v194, v193)                           │

00:01:29 #3619 [Debug] > │             let v195 : int32 = v191 + 1                                      │

00:01:29 #3620 [Debug] > │             v189.l0 <- v195                                                  │

00:01:29 #3621 [Debug] > │             ()                                                               │

00:01:29 #3622 [Debug] > │         let v196 : (struct (int64 * int64) -> int64) = closure8()            │

00:01:29 #3623 [Debug] > │         let v197 : (struct (int64 * int64) []) = v188 |> Array.sortBy v196   │

00:01:29 #3624 [Debug] > │         let struct (v198 : int64, v199 : int64) = v197.[int 0]               │

00:01:29 #3625 [Debug] > │         let v200 : string = $"%A{struct (v198, v199)}"                       │

00:01:29 #3626 [Debug] > │         let v201 : bool = v167 = v169                                        │

00:01:29 #3627 [Debug] > │         let v206 : US1 =                                                     │

00:01:29 #3628 [Debug] > │             if v201 then                                                     │

00:01:29 #3629 [Debug] > │                 let v202 : System.ConsoleColor =                             │

00:01:29 #3630 [Debug] > │ System.ConsoleColor.DarkGreen                                                │

00:01:29 #3631 [Debug] > │                 US1_1(v202)                                                  │

00:01:29 #3632 [Debug] > │             else                                                             │

00:01:29 #3633 [Debug] > │                 let v204 : System.ConsoleColor = System.ConsoleColor.DarkRed │

00:01:29 #3634 [Debug] > │                 US1_1(v204)                                                  │

00:01:29 #3635 [Debug] > │         let v207 : UH2 = UH2_1                                               │

00:01:29 #3636 [Debug] > │         let v208 : UH2 = UH2_0(v200, v207)                                   │

00:01:29 #3637 [Debug] > │         let v209 : UH2 = UH2_0(v169, v208)                                   │

00:01:29 #3638 [Debug] > │         let v210 : UH2 = UH2_0(v167, v209)                                   │

00:01:29 #3639 [Debug] > │         let v211 : UH2 = UH2_0(v168, v210)                                   │

00:01:29 #3640 [Debug] > │         v163.[int v166] <- struct (v211, v206)                               │

00:01:29 #3641 [Debug] > │         let v212 : uint64 = v166 + 1UL                                       │

00:01:29 #3642 [Debug] > │         v164.l0 <- v212                                                      │

00:01:29 #3643 [Debug] > │         ()                                                                   │

00:01:29 #3644 [Debug] > │     let v213 : string = "Input"                                              │

00:01:29 #3645 [Debug] > │     let v214 : string = "Expected"                                           │

00:01:29 #3646 [Debug] > │     let v215 : string = "Result"                                             │

00:01:29 #3647 [Debug] > │     let v216 : string = "Best"                                               │

00:01:29 #3648 [Debug] > │     let v217 : UH2 = UH2_1                                                   │

00:01:29 #3649 [Debug] > │     let v218 : UH2 = UH2_0(v216, v217)                                       │

00:01:29 #3650 [Debug] > │     let v219 : UH2 = UH2_0(v215, v218)                                       │

00:01:29 #3651 [Debug] > │     let v220 : UH2 = UH2_0(v214, v219)                                       │

00:01:29 #3652 [Debug] > │     let v221 : UH2 = UH2_0(v213, v220)                                       │

00:01:29 #3653 [Debug] > │     let v222 : US1 = US1_0                                                   │

00:01:29 #3654 [Debug] > │     let v223 : string = "---"                                                │

00:01:29 #3655 [Debug] > │     let v224 : UH2 = UH2_1                                                   │

00:01:29 #3656 [Debug] > │     let v225 : UH2 = UH2_0(v223, v224)                                       │

00:01:29 #3657 [Debug] > │     let v226 : UH2 = UH2_0(v223, v225)                                       │

00:01:29 #3658 [Debug] > │     let v227 : UH2 = UH2_0(v223, v226)                                       │

00:01:29 #3659 [Debug] > │     let v228 : UH2 = UH2_0(v223, v227)                                       │

00:01:29 #3660 [Debug] > │     let v229 : US1 = US1_0                                                   │

00:01:29 #3661 [Debug] > │     let v230 : UH4 = UH4_1                                                   │

00:01:29 #3662 [Debug] > │     let v231 : UH4 = UH4_0(v228, v229, v230)                                 │

00:01:29 #3663 [Debug] > │     let v232 : UH4 = UH4_0(v221, v222, v231)                                 │

00:01:29 #3664 [Debug] > │     let v233 : (struct (UH2 * US1) []) = method21(v232)                      │

00:01:29 #3665 [Debug] > │     let v234 : uint64 = System.Convert.ToUInt64 v233.Length                  │

00:01:29 #3666 [Debug] > │     let v235 : uint64 = System.Convert.ToUInt64 v163.Length                  │

00:01:29 #3667 [Debug] > │     let v236 : uint64 = v234 + v235                                          │

00:01:29 #3668 [Debug] > │     let v237 : (struct (UH2 * US1) []) = Array.zeroCreate<struct (UH2 *      │

00:01:29 #3669 [Debug] > │ US1)> (System.Convert.ToInt32(v236))                                         │

00:01:29 #3670 [Debug] > │     let v238 : Mut1 = {l0 = 0UL} : Mut1                                      │

00:01:29 #3671 [Debug] > │     while method5(v236, v238) do                                             │

00:01:29 #3672 [Debug] > │         let v240 : uint64 = v238.l0                                          │

00:01:29 #3673 [Debug] > │         let v241 : bool = v240 < v234                                        │

00:01:29 #3674 [Debug] > │         let struct (v247 : UH2, v248 : US1) =                                │

00:01:29 #3675 [Debug] > │             if v241 then                                                     │

00:01:29 #3676 [Debug] > │                 let struct (v242 : UH2, v243 : US1) = v233.[int v240]        │

00:01:29 #3677 [Debug] > │                 struct (v242, v243)                                          │

00:01:29 #3678 [Debug] > │             else                                                             │

00:01:29 #3679 [Debug] > │                 let v244 : uint64 = v240 - v234                              │

00:01:29 #3680 [Debug] > │                 let struct (v245 : UH2, v246 : US1) = v163.[int v244]        │

00:01:29 #3681 [Debug] > │                 struct (v245, v246)                                          │

00:01:29 #3682 [Debug] > │         v237.[int v240] <- struct (v247, v248)                               │

00:01:29 #3683 [Debug] > │         let v249 : uint64 = v240 + 1UL                                       │

00:01:29 #3684 [Debug] > │         v238.l0 <- v249                                                      │

00:01:29 #3685 [Debug] > │         ()                                                                   │

00:01:29 #3686 [Debug] > │     let v250 : uint64 = System.Convert.ToUInt64 v237.Length                  │

00:01:29 #3687 [Debug] > │     let v251 : ((string []) []) = Array.zeroCreate<(string [])>              │

00:01:29 #3688 [Debug] > │ (System.Convert.ToInt32(v250))                                               │

00:01:29 #3689 [Debug] > │     let v252 : Mut1 = {l0 = 0UL} : Mut1                                      │

00:01:29 #3690 [Debug] > │     while method5(v250, v252) do                                             │

00:01:29 #3691 [Debug] > │         let v254 : uint64 = v252.l0                                          │

00:01:29 #3692 [Debug] > │         let struct (v255 : UH2, v256 : US1) = v237.[int v254]                │

00:01:29 #3693 [Debug] > │         let v257 : (string []) = method24(v255)                              │

00:01:29 #3694 [Debug] > │         v251.[int v254] <- v257                                              │

00:01:29 #3695 [Debug] > │         let v258 : uint64 = v254 + 1UL                                       │

00:01:29 #3696 [Debug] > │         v252.l0 <- v258                                                      │

00:01:29 #3697 [Debug] > │         ()                                                                   │

00:01:29 #3698 [Debug] > │     let v259 : ((string []) []) = v251 |> Array.transpose                    │

00:01:29 #3699 [Debug] > │     let v260 : uint64 = System.Convert.ToUInt64 v259.Length                  │

00:01:29 #3700 [Debug] > │     let v261 : (int64 []) = Array.zeroCreate<int64>                          │

00:01:29 #3701 [Debug] > │ (System.Convert.ToInt32(v260))                                               │

00:01:29 #3702 [Debug] > │     let v262 : Mut1 = {l0 = 0UL} : Mut1                                      │

00:01:29 #3703 [Debug] > │     while method5(v260, v262) do                                             │

00:01:29 #3704 [Debug] > │         let v264 : uint64 = v262.l0                                          │

00:01:29 #3705 [Debug] > │         let v265 : (string []) = v259.[int v264]                             │

00:01:29 #3706 [Debug] > │         let v266 : uint64 = System.Convert.ToUInt64 v265.Length              │

00:01:29 #3707 [Debug] > │         let v267 : (int64 []) = Array.zeroCreate<int64>                      │

00:01:29 #3708 [Debug] > │ (System.Convert.ToInt32(v266))                                               │

00:01:29 #3709 [Debug] > │         let v268 : Mut1 = {l0 = 0UL} : Mut1                                  │

00:01:29 #3710 [Debug] > │         while method5(v266, v268) do                                         │

00:01:29 #3711 [Debug] > │             let v270 : uint64 = v268.l0                                      │

00:01:29 #3712 [Debug] > │             let v271 : string = v265.[int v270]                              │

00:01:29 #3713 [Debug] > │             let v272 : int64 = System.Convert.ToInt64 v271.Length            │

00:01:29 #3714 [Debug] > │             v267.[int v270] <- v272                                          │

00:01:29 #3715 [Debug] > │             let v273 : uint64 = v270 + 1UL                                   │

00:01:29 #3716 [Debug] > │             v268.l0 <- v273                                                  │

00:01:29 #3717 [Debug] > │             ()                                                               │

00:01:29 #3718 [Debug] > │         let v274 : (int64 []) = v267 |> Array.sortDescending                 │

00:01:29 #3719 [Debug] > │         let v275 : int64 option = v274 |> Array.tryItem 0                    │

00:01:29 #3720 [Debug] > │         let v276 : (int64 -> US2) = closure9()                               │

00:01:29 #3721 [Debug] > │         let v277 : US2 = US2_0                                               │

00:01:29 #3722 [Debug] > │         let v278 : US2 = v275 |> Option.map v276 |> Option.defaultValue v277 │

00:01:29 #3723 [Debug] > │         let v281 : int64 =                                                   │

00:01:29 #3724 [Debug] > │             match v278 with                                                  │

00:01:29 #3725 [Debug] > │             | US2_0 -> (* None *)                                            │

00:01:29 #3726 [Debug] > │                 0L                                                           │

00:01:29 #3727 [Debug] > │             | US2_1(v279) -> (* Some *)                                      │

00:01:29 #3728 [Debug] > │                 v279                                                         │

00:01:29 #3729 [Debug] > │         v261.[int v264] <- v281                                              │

00:01:29 #3730 [Debug] > │         let v282 : uint64 = v264 + 1UL                                       │

00:01:29 #3731 [Debug] > │         v262.l0 <- v282                                                      │

00:01:29 #3732 [Debug] > │         ()                                                                   │

00:01:29 #3733 [Debug] > │     let v283 : uint64 = System.Convert.ToUInt64 v261.Length                  │

00:01:29 #3734 [Debug] > │     let v284 : UH5 = UH5_1                                                   │

00:01:29 #3735 [Debug] > │     let v285 : Mut3 = {l0 = 0UL; l1 = v284; l2 = 0} : Mut3                   │

00:01:29 #3736 [Debug] > │     while method27(v283, v285) do                                            │

00:01:29 #3737 [Debug] > │         let v287 : uint64 = v285.l0                                          │

00:01:29 #3738 [Debug] > │         let struct (v288 : UH5, v289 : int32) = v285.l1, v285.l2             │

00:01:29 #3739 [Debug] > │         let v290 : int64 = v261.[int v287]                                   │

00:01:29 #3740 [Debug] > │         let v291 : int32 = v289 + 1                                          │

00:01:29 #3741 [Debug] > │         let v292 : uint64 = v287 + 1UL                                       │

00:01:29 #3742 [Debug] > │         let v293 : UH5 = UH5_0(v289, v290, v288)                             │

00:01:29 #3743 [Debug] > │         v285.l0 <- v292                                                      │

00:01:29 #3744 [Debug] > │         v285.l1 <- v293                                                      │

00:01:29 #3745 [Debug] > │         v285.l2 <- v291                                                      │

00:01:29 #3746 [Debug] > │         ()                                                                   │

00:01:29 #3747 [Debug] > │     let struct (v294 : UH5, v295 : int32) = v285.l1, v285.l2                 │

00:01:29 #3748 [Debug] > │     let v296 : UH5 = UH5_1                                                   │

00:01:29 #3749 [Debug] > │     let v297 : UH5 = method28(v294, v296)                                    │

00:01:29 #3750 [Debug] > │     let v298 : (struct (int32 * int64) []) = method29(v297)                  │

00:01:29 #3751 [Debug] > │     let v299 : Map<int32, int64> = v298 |> Array.map (fun (struct (a, b)) -> │

00:01:29 #3752 [Debug] > │ a, b) |> Map.ofArray                                                         │

00:01:29 #3753 [Debug] > │     let v300 : (struct ((string []) * US1) []) = Array.zeroCreate<struct     │

00:01:29 #3754 [Debug] > │ ((string []) * US1)> (System.Convert.ToInt32(v250))                          │

00:01:29 #3755 [Debug] > │     let v301 : Mut1 = {l0 = 0UL} : Mut1                                      │

00:01:29 #3756 [Debug] > │     while method5(v250, v301) do                                             │

00:01:29 #3757 [Debug] > │         let v303 : uint64 = v301.l0                                          │

00:01:29 #3758 [Debug] > │         let struct (v304 : UH2, v305 : US1) = v237.[int v303]                │

00:01:29 #3759 [Debug] > │         let v306 : UH6 = UH6_1                                               │

00:01:29 #3760 [Debug] > │         let v307 : int32 = 0                                                 │

00:01:29 #3761 [Debug] > │         let struct (v308 : UH6, v309 : int32) = method32(v304, v306, v307)   │

00:01:29 #3762 [Debug] > │         let v310 : UH6 = UH6_1                                               │

00:01:29 #3763 [Debug] > │         let v311 : UH6 = method33(v308, v310)                                │

00:01:29 #3764 [Debug] > │         let v312 : UH2 = UH2_1                                               │

00:01:29 #3765 [Debug] > │         let v313 : UH2 = method34(v299, v311, v312)                          │

00:01:29 #3766 [Debug] > │         let v314 : (string []) = method35(v313)                              │

00:01:29 #3767 [Debug] > │         v300.[int v303] <- struct (v314, v305)                               │

00:01:29 #3768 [Debug] > │         let v315 : uint64 = v303 + 1UL                                       │

00:01:29 #3769 [Debug] > │         v301.l0 <- v315                                                      │

00:01:29 #3770 [Debug] > │         ()                                                                   │

00:01:29 #3771 [Debug] > │     System.Console.WriteLine v27                                             │

00:01:29 #3772 [Debug] > │     let v316 : uint64 = System.Convert.ToUInt64 v300.Length                  │

00:01:29 #3773 [Debug] > │     let v317 : Mut1 = {l0 = 0UL} : Mut1                                      │

00:01:29 #3774 [Debug] > │     while method5(v316, v317) do                                             │

00:01:29 #3775 [Debug] > │         let v319 : uint64 = v317.l0                                          │

00:01:29 #3776 [Debug] > │         let struct (v320 : (string []), v321 : US1) = v300.[int v319]        │

00:01:29 #3777 [Debug] > │         match v321 with                                                      │

00:01:29 #3778 [Debug] > │         | US1_0 -> (* None *)                                                │

00:01:29 #3779 [Debug] > │             #if FABLE_COMPILER_RUST                                          │

00:01:29 #3780 [Debug] > │             let v325 : (unit -> unit) = closure10()                          │

00:01:29 #3781 [Debug] > │             v325 ()                                                          │

00:01:29 #3782 [Debug] > │             #else                                                            │

00:01:29 #3783 [Debug] > │             let v326 : (unit -> unit) = closure11()                          │

00:01:29 #3784 [Debug] > │             v326 ()                                                          │

00:01:29 #3785 [Debug] > │             #endif                                                           │

00:01:29 #3786 [Debug] > │             ()                                                               │

00:01:29 #3787 [Debug] > │         | US1_1(v322) -> (* Some *)                                          │

00:01:29 #3788 [Debug] > │             #if FABLE_COMPILER_RUST                                          │

00:01:29 #3789 [Debug] > │             let v323 : (unit -> unit) = closure12()                          │

00:01:29 #3790 [Debug] > │             v323 ()                                                          │

00:01:29 #3791 [Debug] > │             #else                                                            │

00:01:29 #3792 [Debug] > │             let v324 : (unit -> unit) = closure13(v322)                      │

00:01:29 #3793 [Debug] > │             v324 ()                                                          │

00:01:29 #3794 [Debug] > │             #endif                                                           │

00:01:29 #3795 [Debug] > │             ()                                                               │

00:01:29 #3796 [Debug] > │         let v327 : string = "\t| "                                           │

00:01:29 #3797 [Debug] > │         let v328 : string = System.String.Join (v327, v320)                  │

00:01:29 #3798 [Debug] > │         System.Console.WriteLine v328                                        │

00:01:29 #3799 [Debug] > │         #if FABLE_COMPILER_RUST                                              │

00:01:29 #3800 [Debug] > │         let v329 : (unit -> unit) = closure10()                              │

00:01:29 #3801 [Debug] > │         v329 ()                                                              │

00:01:29 #3802 [Debug] > │         #else                                                                │

00:01:29 #3803 [Debug] > │         let v330 : (unit -> unit) = closure11()                              │

00:01:29 #3804 [Debug] > │         v330 ()                                                              │

00:01:29 #3805 [Debug] > │         #endif                                                               │

00:01:29 #3806 [Debug] > │         let v331 : uint64 = v319 + 1UL                                       │

00:01:29 #3807 [Debug] > │         v317.l0 <- v331                                                      │

00:01:29 #3808 [Debug] > │         ()                                                                   │

00:01:29 #3809 [Debug] > │     let v332 : ((float []) []) = Array.zeroCreate<(float [])>                │

00:01:29 #3810 [Debug] > │ (System.Convert.ToInt32(v162))                                               │

00:01:29 #3811 [Debug] > │     let v333 : Mut1 = {l0 = 0UL} : Mut1                                      │

00:01:29 #3812 [Debug] > │     while method5(v162, v333) do                                             │

00:01:29 #3813 [Debug] > │         let v335 : uint64 = v333.l0                                          │

00:01:29 #3814 [Debug] > │         let struct (v336 : string, v337 : string, v338 : string, v339 :      │

00:01:29 #3815 [Debug] > │ (int64 [])) = v75.[int v335]                                                 │

00:01:29 #3816 [Debug] > │         let v340 : (int64 -> float) = float                                  │

00:01:29 #3817 [Debug] > │         let v341 : uint64 = System.Convert.ToUInt64 v339.Length              │

00:01:29 #3818 [Debug] > │         let v342 : (float []) = Array.zeroCreate<float>                      │

00:01:29 #3819 [Debug] > │ (System.Convert.ToInt32(v341))                                               │

00:01:29 #3820 [Debug] > │         let v343 : Mut1 = {l0 = 0UL} : Mut1                                  │

00:01:29 #3821 [Debug] > │         while method5(v341, v343) do                                         │

00:01:29 #3822 [Debug] > │             let v345 : uint64 = v343.l0                                      │

00:01:29 #3823 [Debug] > │             let v346 : int64 = v339.[int v345]                               │

00:01:29 #3824 [Debug] > │             let v347 : float = v340 v346                                     │

00:01:29 #3825 [Debug] > │             v342.[int v345] <- v347                                          │

00:01:29 #3826 [Debug] > │             let v348 : uint64 = v345 + 1UL                                   │

00:01:29 #3827 [Debug] > │             v343.l0 <- v348                                                  │

00:01:29 #3828 [Debug] > │             ()                                                               │

00:01:29 #3829 [Debug] > │         v332.[int v335] <- v342                                              │

00:01:29 #3830 [Debug] > │         let v349 : uint64 = v335 + 1UL                                       │

00:01:29 #3831 [Debug] > │         v333.l0 <- v349                                                      │

00:01:29 #3832 [Debug] > │         ()                                                                   │

00:01:29 #3833 [Debug] > │     let v350 : ((float []) []) = v332 |> Array.transpose                     │

00:01:29 #3834 [Debug] > │     let v351 : uint64 = System.Convert.ToUInt64 v350.Length                  │

00:01:29 #3835 [Debug] > │     let v352 : (float []) = Array.zeroCreate<float>                          │

00:01:29 #3836 [Debug] > │ (System.Convert.ToInt32(v351))                                               │

00:01:29 #3837 [Debug] > │     let v353 : Mut1 = {l0 = 0UL} : Mut1                                      │

00:01:29 #3838 [Debug] > │     while method5(v351, v353) do                                             │

00:01:29 #3839 [Debug] > │         let v355 : uint64 = v353.l0                                          │

00:01:29 #3840 [Debug] > │         let v356 : (float []) = v350.[int v355]                              │

00:01:29 #3841 [Debug] > │         let v357 : float = v356 |> Array.average                             │

00:01:29 #3842 [Debug] > │         v352.[int v355] <- v357                                              │

00:01:29 #3843 [Debug] > │         let v358 : uint64 = v355 + 1UL                                       │

00:01:29 #3844 [Debug] > │         v353.l0 <- v358                                                      │

00:01:29 #3845 [Debug] > │         ()                                                                   │

00:01:29 #3846 [Debug] > │     let v359 : (float -> int64) = int64                                      │

00:01:29 #3847 [Debug] > │     let v360 : uint64 = System.Convert.ToUInt64 v352.Length                  │

00:01:29 #3848 [Debug] > │     let v361 : (int64 []) = Array.zeroCreate<int64>                          │

00:01:29 #3849 [Debug] > │ (System.Convert.ToInt32(v360))                                               │

00:01:29 #3850 [Debug] > │     let v362 : Mut1 = {l0 = 0UL} : Mut1                                      │

00:01:29 #3851 [Debug] > │     while method5(v360, v362) do                                             │

00:01:29 #3852 [Debug] > │         let v364 : uint64 = v362.l0                                          │

00:01:29 #3853 [Debug] > │         let v365 : float = v352.[int v364]                                   │

00:01:29 #3854 [Debug] > │         let v366 : int64 = v359 v365                                         │

00:01:29 #3855 [Debug] > │         v361.[int v364] <- v366                                              │

00:01:29 #3856 [Debug] > │         let v367 : uint64 = v364 + 1UL                                       │

00:01:29 #3857 [Debug] > │         v362.l0 <- v367                                                      │

00:01:29 #3858 [Debug] > │         ()                                                                   │

00:01:29 #3859 [Debug] > │     let v368 : uint64 = System.Convert.ToUInt64 v361.Length                  │

00:01:29 #3860 [Debug] > │     let v369 : UH5 = UH5_1                                                   │

00:01:29 #3861 [Debug] > │     let v370 : Mut3 = {l0 = 0UL; l1 = v369; l2 = 0} : Mut3                   │

00:01:29 #3862 [Debug] > │     while method27(v368, v370) do                                            │

00:01:29 #3863 [Debug] > │         let v372 : uint64 = v370.l0                                          │

00:01:29 #3864 [Debug] > │         let struct (v373 : UH5, v374 : int32) = v370.l1, v370.l2             │

00:01:29 #3865 [Debug] > │         let v375 : int64 = v361.[int v372]                                   │

00:01:29 #3866 [Debug] > │         let v376 : int32 = v374 + 1                                          │

00:01:29 #3867 [Debug] > │         let v377 : uint64 = v372 + 1UL                                       │

00:01:29 #3868 [Debug] > │         let v378 : UH5 = UH5_0(v374, v375, v373)                             │

00:01:29 #3869 [Debug] > │         v370.l0 <- v377                                                      │

00:01:29 #3870 [Debug] > │         v370.l1 <- v378                                                      │

00:01:29 #3871 [Debug] > │         v370.l2 <- v376                                                      │

00:01:29 #3872 [Debug] > │         ()                                                                   │

00:01:29 #3873 [Debug] > │     let struct (v379 : UH5, v380 : int32) = v370.l1, v370.l2                 │

00:01:29 #3874 [Debug] > │     let v381 : UH5 = UH5_1                                                   │

00:01:29 #3875 [Debug] > │     let v382 : UH5 = method28(v379, v381)                                    │

00:01:29 #3876 [Debug] > │     let v383 : (struct (int32 * int64) []) = method38(v382)                  │

00:01:29 #3877 [Debug] > │     System.Console.WriteLine v27                                             │

00:01:29 #3878 [Debug] > │     let v384 : string = "Average Ranking  "                                  │

00:01:29 #3879 [Debug] > │     System.Console.WriteLine v384                                            │

00:01:29 #3880 [Debug] > │     let v385 : (struct (int32 * int64) -> int64) = closure14()               │

00:01:29 #3881 [Debug] > │     let v386 : (struct (int32 * int64) []) = v383 |> Array.sortBy v385       │

00:01:29 #3882 [Debug] > │     let v387 : uint64 = System.Convert.ToUInt64 v386.Length                  │

00:01:29 #3883 [Debug] > │     let v388 : Mut1 = {l0 = 0UL} : Mut1                                      │

00:01:29 #3884 [Debug] > │     while method5(v387, v388) do                                             │

00:01:29 #3885 [Debug] > │         let v390 : uint64 = v388.l0                                          │

00:01:29 #3886 [Debug] > │         let struct (v391 : int32, v392 : int64) = v386.[int v390]            │

00:01:29 #3887 [Debug] > │         let v393 : string = $"Test case %d{v391 + 1}. Average Time: %A{v392} │

00:01:29 #3888 [Debug] > │ "                                                                            │

00:01:29 #3889 [Debug] > │         System.Console.WriteLine v393                                        │

00:01:29 #3890 [Debug] > │         let v394 : uint64 = v390 + 1UL                                       │

00:01:29 #3891 [Debug] > │         v388.l0 <- v394                                                      │

00:01:29 #3892 [Debug] > │         ()                                                                   │

00:01:29 #3893 [Debug] > │     ()                                                                       │

00:01:29 #3894 [Debug] > │ and method0 () : unit =                                                      │

00:01:29 #3895 [Debug] > │     let v0 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|]                           │

00:01:29 #3896 [Debug] > │     let v1 : int32 = v0.Length                                               │

00:01:29 #3897 [Debug] > │     let v2 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|]                           │

00:01:29 #3898 [Debug] > │     let v3 : int32 = v2.Length                                               │

00:01:29 #3899 [Debug] > │     let v4 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|]                           │

00:01:29 #3900 [Debug] > │     let v5 : int32 = v4.Length                                               │

00:01:29 #3901 [Debug] > │     let v6 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|]                           │

00:01:29 #3902 [Debug] > │     let v7 : int32 = v6.Length                                               │

00:01:29 #3903 [Debug] > │     let v8 : (int32 []) = Array.zeroCreate<int32> (100)                      │

00:01:29 #3904 [Debug] > │     let v9 : Mut0 = {l0 = 0} : Mut0                                          │

00:01:29 #3905 [Debug] > │     while method1(v9) do                                                     │

00:01:29 #3906 [Debug] > │         let v11 : int32 = v9.l0                                              │

00:01:29 #3907 [Debug] > │         let v12 : int32 = 1 + v11                                            │

00:01:29 #3908 [Debug] > │         v8.[int v11] <- v12                                                  │

00:01:29 #3909 [Debug] > │         let v13 : int32 = v11 + 1                                            │

00:01:29 #3910 [Debug] > │         v9.l0 <- v13                                                         │

00:01:29 #3911 [Debug] > │         ()                                                                   │

00:01:29 #3912 [Debug] > │     let v14 : int32 = v8.Length                                              │

00:01:29 #3913 [Debug] > │     let v15 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|]                          │

00:01:29 #3914 [Debug] > │     let v16 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|]                          │

00:01:29 #3915 [Debug] > │     let v17 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|]                          │

00:01:29 #3916 [Debug] > │     let v18 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|]                          │

00:01:29 #3917 [Debug] > │     let v19 : (int32 []) = Array.zeroCreate<int32> (100)                     │

00:01:29 #3918 [Debug] > │     let v20 : Mut0 = {l0 = 0} : Mut0                                         │

00:01:29 #3919 [Debug] > │     while method1(v20) do                                                    │

00:01:29 #3920 [Debug] > │         let v22 : int32 = v20.l0                                             │

00:01:29 #3921 [Debug] > │         let v23 : int32 = 1 + v22                                            │

00:01:29 #3922 [Debug] > │         v19.[int v22] <- v23                                                 │

00:01:29 #3923 [Debug] > │         let v24 : int32 = v22 + 1                                            │

00:01:29 #3924 [Debug] > │         v20.l0 <- v24                                                        │

00:01:29 #3925 [Debug] > │         ()                                                                   │

00:01:29 #3926 [Debug] > │     let v25 : (unit -> unit) = closure0()                                    │

00:01:29 #3927 [Debug] > │     let v26 : string = nameof v25                                            │

00:01:29 #3928 [Debug] > │     let v27 : string = ""                                                    │

00:01:29 #3929 [Debug] > │     System.Console.WriteLine v27                                             │

00:01:29 #3930 [Debug] > │     System.Console.WriteLine v27                                             │

00:01:29 #3931 [Debug] > │     let v28 : string = $"Test: {v26}"                                        │

00:01:29 #3932 [Debug] > │     System.Console.WriteLine v28                                             │

00:01:29 #3933 [Debug] > │     let v29 : int32 = 6                                                      │

00:01:29 #3934 [Debug] > │     let v30 : int32 = 3                                                      │

00:01:29 #3935 [Debug] > │     let v31 : US0 = US0_1(v30)                                               │

00:01:29 #3936 [Debug] > │     let v32 : int32 = 1                                                      │

00:01:29 #3937 [Debug] > │     let v33 : int32 = 0                                                      │

00:01:29 #3938 [Debug] > │     let v34 : US0 = US0_1(v33)                                               │

00:01:29 #3939 [Debug] > │     let v35 : int32 = 11                                                     │

00:01:29 #3940 [Debug] > │     let v36 : int32 = 6                                                      │

00:01:29 #3941 [Debug] > │     let v37 : US0 = US0_1(v36)                                               │

00:01:29 #3942 [Debug] > │     let v38 : int32 = 12                                                     │

00:01:29 #3943 [Debug] > │     let v39 : US0 = US0_0                                                    │

00:01:29 #3944 [Debug] > │     let v40 : int32 = 60                                                     │

00:01:29 #3945 [Debug] > │     let v41 : int32 = 59                                                     │

00:01:29 #3946 [Debug] > │     let v42 : US0 = US0_1(v41)                                               │

00:01:29 #3947 [Debug] > │     let v43 : int32 = 6                                                      │

00:01:29 #3948 [Debug] > │     let v44 : int32 = 7                                                      │

00:01:29 #3949 [Debug] > │     let v45 : int32 = 3                                                      │

00:01:29 #3950 [Debug] > │     let v46 : US0 = US0_1(v45)                                               │

00:01:29 #3951 [Debug] > │     let v47 : int32 = 1                                                      │

00:01:29 #3952 [Debug] > │     let v48 : int32 = 7                                                      │

00:01:29 #3953 [Debug] > │     let v49 : int32 = 0                                                      │

00:01:29 #3954 [Debug] > │     let v50 : US0 = US0_1(v49)                                               │

00:01:29 #3955 [Debug] > │     let v51 : int32 = 11                                                     │

00:01:29 #3956 [Debug] > │     let v52 : int32 = 7                                                      │

00:01:29 #3957 [Debug] > │     let v53 : int32 = 6                                                      │

00:01:29 #3958 [Debug] > │     let v54 : US0 = US0_1(v53)                                               │

00:01:29 #3959 [Debug] > │     let v55 : int32 = 12                                                     │

00:01:29 #3960 [Debug] > │     let v56 : int32 = 7                                                      │

00:01:29 #3961 [Debug] > │     let v57 : US0 = US0_0                                                    │

00:01:29 #3962 [Debug] > │     let v58 : int32 = 60                                                     │

00:01:29 #3963 [Debug] > │     let v59 : int32 = 100                                                    │

00:01:29 #3964 [Debug] > │     let v60 : int32 = 59                                                     │

00:01:29 #3965 [Debug] > │     let v61 : US0 = US0_1(v60)                                               │

00:01:29 #3966 [Debug] > │     let v62 : UH0 = UH0_1                                                    │

00:01:29 #3967 [Debug] > │     let v63 : UH0 = UH0_0(v19, v58, v59, v61, v62)                           │

00:01:29 #3968 [Debug] > │     let v64 : UH0 = UH0_0(v18, v55, v56, v57, v63)                           │

00:01:29 #3969 [Debug] > │     let v65 : UH0 = UH0_0(v17, v51, v52, v54, v64)                           │

00:01:29 #3970 [Debug] > │     let v66 : UH0 = UH0_0(v16, v47, v48, v50, v65)                           │

00:01:29 #3971 [Debug] > │     let v67 : UH0 = UH0_0(v15, v43, v44, v46, v66)                           │

00:01:29 #3972 [Debug] > │     let v68 : UH0 = UH0_0(v8, v40, v14, v42, v67)                            │

00:01:29 #3973 [Debug] > │     let v69 : UH0 = UH0_0(v6, v38, v7, v39, v68)                             │

00:01:29 #3974 [Debug] > │     let v70 : UH0 = UH0_0(v4, v35, v5, v37, v69)                             │

00:01:29 #3975 [Debug] > │     let v71 : UH0 = UH0_0(v2, v32, v3, v34, v70)                             │

00:01:29 #3976 [Debug] > │     let v72 : UH0 = UH0_0(v0, v29, v1, v31, v71)                             │

00:01:29 #3977 [Debug] > │     let v73 : (struct ((int32 []) * int32 * int32 * US0) []) = method2(v72)  │

00:01:29 #3978 [Debug] > │     let v74 : uint64 = System.Convert.ToUInt64 v73.Length                    │

00:01:29 #3979 [Debug] > │     let v75 : (struct (string * string * string * (int64 [])) []) =          │

00:01:29 #3980 [Debug] > │ Array.zeroCreate<struct (string * string * string * (int64 []))>             │

00:01:29 #3981 [Debug] > │ (System.Convert.ToInt32(v74))                                                │

00:01:29 #3982 [Debug] > │     let v76 : Mut1 = {l0 = 0UL} : Mut1                                       │

00:01:29 #3983 [Debug] > │     while method5(v74, v76) do                                               │

00:01:29 #3984 [Debug] > │         let v78 : uint64 = v76.l0                                            │

00:01:29 #3985 [Debug] > │         let struct (v79 : (int32 []), v80 : int32, v81 : int32, v82 : US0) = │

00:01:29 #3986 [Debug] > │ v73.[int v78]                                                                │

00:01:29 #3987 [Debug] > │         let v83 : string = $"%A{struct (v79, v80, v81)}"                     │

00:01:29 #3988 [Debug] > │         System.Console.WriteLine v27                                         │

00:01:29 #3989 [Debug] > │         let v84 : string = $"Solution: {v83}  "                              │

00:01:29 #3990 [Debug] > │         System.Console.WriteLine v84                                         │

00:01:29 #3991 [Debug] > │         let v85 : int32 = 0                                                  │

00:01:29 #3992 [Debug] > │         let v86 : string = "semi_open_1"                                     │

00:01:29 #3993 [Debug] > │         let v87 : (struct ((int32 []) * int32 * int32) -> US0) = closure1()  │

00:01:29 #3994 [Debug] > │         let v88 : int32 = 1                                                  │

00:01:29 #3995 [Debug] > │         let v89 : string = "closed_1"                                        │

00:01:29 #3996 [Debug] > │         let v90 : (struct ((int32 []) * int32 * int32) -> US0) = closure2()  │

00:01:29 #3997 [Debug] > │         let v91 : int32 = 2                                                  │

00:01:29 #3998 [Debug] > │         let v92 : string = "semi_open_2"                                     │

00:01:29 #3999 [Debug] > │         let v93 : (struct ((int32 []) * int32 * int32) -> US0) = closure3()  │

00:01:29 #4000 [Debug] > │         let v94 : int32 = 3                                                  │

00:01:29 #4001 [Debug] > │         let v95 : string = "closed_2"                                        │

00:01:29 #4002 [Debug] > │         let v96 : (struct ((int32 []) * int32 * int32) -> US0) = closure4()  │

00:01:29 #4003 [Debug] > │         let v97 : UH1 = UH1_1                                                │

00:01:29 #4004 [Debug] > │         let v98 : UH1 = UH1_0(v94, v95, v96, v97)                            │

00:01:29 #4005 [Debug] > │         let v99 : UH1 = UH1_0(v91, v92, v93, v98)                            │

00:01:29 #4006 [Debug] > │         let v100 : UH1 = UH1_0(v88, v89, v90, v99)                           │

00:01:29 #4007 [Debug] > │         let v101 : UH1 = UH1_0(v85, v86, v87, v100)                          │

00:01:29 #4008 [Debug] > │         let v102 : (struct (int32 * string * (struct ((int32 []) * int32 *   │

00:01:29 #4009 [Debug] > │ int32) -> US0)) []) = method10(v101)                                         │

00:01:29 #4010 [Debug] > │         let v103 : uint64 = System.Convert.ToUInt64 v102.Length              │

00:01:29 #4011 [Debug] > │         let v104 : (struct (US0 * int64) []) = Array.zeroCreate<struct (US0  │

00:01:29 #4012 [Debug] > │ * int64)> (System.Convert.ToInt32(v103))                                     │

00:01:29 #4013 [Debug] > │         let v105 : Mut1 = {l0 = 0UL} : Mut1                                  │

00:01:29 #4014 [Debug] > │         while method5(v103, v105) do                                         │

00:01:29 #4015 [Debug] > │             let v107 : uint64 = v105.l0                                      │

00:01:29 #4016 [Debug] > │             let struct (v108 : int32, v109 : string, v110 : (struct ((int32  │

00:01:29 #4017 [Debug] > │ []) * int32 * int32) -> US0)) = v102.[int v107]                              │

00:01:29 #4018 [Debug] > │             #if FABLE_COMPILER_RUST                                          │

00:01:29 #4019 [Debug] > │             let v111 : (unit -> unit) = closure5()                           │

00:01:29 #4020 [Debug] > │             v111 ()                                                          │

00:01:29 #4021 [Debug] > │             #else                                                            │

00:01:29 #4022 [Debug] > │             let v112 : (unit -> unit) = closure6()                           │

00:01:29 #4023 [Debug] > │             v112 ()                                                          │

00:01:29 #4024 [Debug] > │             #endif                                                           │

00:01:29 #4025 [Debug] > │             let v113 : (unit -> System.Diagnostics.Stopwatch) =              │

00:01:29 #4026 [Debug] > │ System.Diagnostics.Stopwatch                                                 │

00:01:29 #4027 [Debug] > │             let v114 : System.Diagnostics.Stopwatch = v113 ()                │

00:01:29 #4028 [Debug] > │             v114.Start ()                                                    │

00:01:29 #4029 [Debug] > │             let v115 : int64 = v114.ElapsedMilliseconds                      │

00:01:29 #4030 [Debug] > │             let v116 : (int32 []) = Array.zeroCreate<int32> (8000001)        │

00:01:29 #4031 [Debug] > │             let v117 : Mut0 = {l0 = 0} : Mut0                                │

00:01:29 #4032 [Debug] > │             while method13(v117) do                                          │

00:01:29 #4033 [Debug] > │                 let v119 : int32 = v117.l0                                   │

00:01:29 #4034 [Debug] > │                 v116.[int v119] <- v119                                      │

00:01:29 #4035 [Debug] > │                 let v120 : int32 = v119 + 1                                  │

00:01:29 #4036 [Debug] > │                 v117.l0 <- v120                                              │

00:01:29 #4037 [Debug] > │                 ()                                                           │

00:01:29 #4038 [Debug] > │             let v121 : (int32 -> US0) = closure7(v79, v80, v81, v110)        │

00:01:29 #4039 [Debug] > │             let v122 : (US0 []) = v116 |> Array.Parallel.map v121            │

00:01:29 #4040 [Debug] > │             let v123 : int32 = v122.Length                                   │

00:01:29 #4041 [Debug] > │             let v124 : int32 = v123 - 1                                      │

00:01:29 #4042 [Debug] > │             let v125 : US0 = v122.[int v124]                                 │

00:01:29 #4043 [Debug] > │             let v126 : int64 = v114.ElapsedMilliseconds                      │

00:01:29 #4044 [Debug] > │             let v127 : int64 = v126 - v115                                   │

00:01:29 #4045 [Debug] > │             let v128 : string = $"Test case {v108 + 1}. {v109}. Time: {v127} │

00:01:29 #4046 [Debug] > │ "                                                                            │

00:01:29 #4047 [Debug] > │             System.Console.WriteLine v128                                    │

00:01:29 #4048 [Debug] > │             v104.[int v107] <- struct (v125, v127)                           │

00:01:29 #4049 [Debug] > │             let v129 : uint64 = v107 + 1UL                                   │

00:01:29 #4050 [Debug] > │             v105.l0 <- v129                                                  │

00:01:29 #4051 [Debug] > │             ()                                                               │

00:01:29 #4052 [Debug] > │         let v130 : uint64 = System.Convert.ToUInt64 v104.Length              │

00:01:29 #4053 [Debug] > │         let v131 : (US0 []) = Array.zeroCreate<US0>                          │

00:01:29 #4054 [Debug] > │ (System.Convert.ToInt32(v130))                                               │

00:01:29 #4055 [Debug] > │         let v132 : Mut1 = {l0 = 0UL} : Mut1                                  │

00:01:29 #4056 [Debug] > │         while method5(v130, v132) do                                         │

00:01:29 #4057 [Debug] > │             let v134 : uint64 = v132.l0                                      │

00:01:29 #4058 [Debug] > │             let struct (v135 : US0, v136 : int64) = v104.[int v134]          │

00:01:29 #4059 [Debug] > │             v131.[int v134] <- v135                                          │

00:01:29 #4060 [Debug] > │             let v137 : uint64 = v134 + 1UL                                   │

00:01:29 #4061 [Debug] > │             v132.l0 <- v137                                                  │

00:01:29 #4062 [Debug] > │             ()                                                               │

00:01:29 #4063 [Debug] > │         let v138 : uint64 = System.Convert.ToUInt64 v131.Length              │

00:01:29 #4064 [Debug] > │         let v139 : bool = v138 <= 1UL                                        │

00:01:29 #4065 [Debug] > │         if v139 then                                                         │

00:01:29 #4066 [Debug] > │             ()                                                               │

00:01:29 #4067 [Debug] > │         else                                                                 │

00:01:29 #4068 [Debug] > │             let v140 : US0 = v131.[int 0UL]                                  │

00:01:29 #4069 [Debug] > │             let v141 : uint64 = 0UL                                          │

00:01:29 #4070 [Debug] > │             let v142 : bool = method14(v140, v131, v141)                     │

00:01:29 #4071 [Debug] > │             if v142 then                                                     │

00:01:29 #4072 [Debug] > │                 ()                                                           │

00:01:29 #4073 [Debug] > │             else                                                             │

00:01:29 #4074 [Debug] > │                 let v143 : string = $"Challenge error: {v131}"               │

00:01:29 #4075 [Debug] > │                 failwith<unit> v143                                          │

00:01:29 #4076 [Debug] > │         let v144 : string = $"%A{v82}"                                       │

00:01:29 #4077 [Debug] > │         let v145 : (US0 []) = Array.zeroCreate<US0>                          │

00:01:29 #4078 [Debug] > │ (System.Convert.ToInt32(v130))                                               │

00:01:29 #4079 [Debug] > │         let v146 : Mut1 = {l0 = 0UL} : Mut1                                  │

00:01:29 #4080 [Debug] > │         while method5(v130, v146) do                                         │

00:01:29 #4081 [Debug] > │             let v148 : uint64 = v146.l0                                      │

00:01:29 #4082 [Debug] > │             let struct (v149 : US0, v150 : int64) = v104.[int v148]          │

00:01:29 #4083 [Debug] > │             v145.[int v148] <- v149                                          │

00:01:29 #4084 [Debug] > │             let v151 : uint64 = v148 + 1UL                                   │

00:01:29 #4085 [Debug] > │             v146.l0 <- v151                                                  │

00:01:29 #4086 [Debug] > │             ()                                                               │

00:01:29 #4087 [Debug] > │         let v152 : US0 = v145.[int 0UL]                                      │

00:01:29 #4088 [Debug] > │         let v153 : string = $"%A{v152}"                                      │

00:01:29 #4089 [Debug] > │         let v154 : (int64 []) = Array.zeroCreate<int64>                      │

00:01:29 #4090 [Debug] > │ (System.Convert.ToInt32(v130))                                               │

00:01:29 #4091 [Debug] > │         let v155 : Mut1 = {l0 = 0UL} : Mut1                                  │

00:01:29 #4092 [Debug] > │         while method5(v130, v155) do                                         │

00:01:29 #4093 [Debug] > │             let v157 : uint64 = v155.l0                                      │

00:01:29 #4094 [Debug] > │             let struct (v158 : US0, v159 : int64) = v104.[int v157]          │

00:01:29 #4095 [Debug] > │             v154.[int v157] <- v159                                          │

00:01:29 #4096 [Debug] > │             let v160 : uint64 = v157 + 1UL                                   │

00:01:29 #4097 [Debug] > │             v155.l0 <- v160                                                  │

00:01:29 #4098 [Debug] > │             ()                                                               │

00:01:29 #4099 [Debug] > │         v75.[int v78] <- struct (v144, v83, v153, v154)                      │

00:01:29 #4100 [Debug] > │         let v161 : uint64 = v78 + 1UL                                        │

00:01:29 #4101 [Debug] > │         v76.l0 <- v161                                                       │

00:01:29 #4102 [Debug] > │         ()                                                                   │

00:01:29 #4103 [Debug] > │     let v162 : uint64 = System.Convert.ToUInt64 v75.Length                   │

00:01:29 #4104 [Debug] > │     let v163 : (struct (UH2 * US1) []) = Array.zeroCreate<struct (UH2 *      │

00:01:29 #4105 [Debug] > │ US1)> (System.Convert.ToInt32(v162))                                         │

00:01:29 #4106 [Debug] > │     let v164 : Mut1 = {l0 = 0UL} : Mut1                                      │

00:01:29 #4107 [Debug] > │     while method5(v162, v164) do                                             │

00:01:29 #4108 [Debug] > │         let v166 : uint64 = v164.l0                                          │

00:01:29 #4109 [Debug] > │         let struct (v167 : string, v168 : string, v169 : string, v170 :      │

00:01:29 #4110 [Debug] > │ (int64 [])) = v75.[int v166]                                                 │

00:01:29 #4111 [Debug] > │         let v171 : uint64 = System.Convert.ToUInt64 v170.Length              │

00:01:29 #4112 [Debug] > │         let v172 : UH3 = UH3_1                                               │

00:01:29 #4113 [Debug] > │         let v173 : Mut2 = {l0 = 0UL; l1 = v172; l2 = 0L} : Mut2              │

00:01:29 #4114 [Debug] > │         while method15(v171, v173) do                                        │

00:01:29 #4115 [Debug] > │             let v175 : uint64 = v173.l0                                      │

00:01:29 #4116 [Debug] > │             let struct (v176 : UH3, v177 : int64) = v173.l1, v173.l2         │

00:01:29 #4117 [Debug] > │             let v178 : int64 = v170.[int v175]                               │

00:01:29 #4118 [Debug] > │             let v179 : int64 = v177 + 1L                                     │

00:01:29 #4119 [Debug] > │             let v180 : uint64 = v175 + 1UL                                   │

00:01:29 #4120 [Debug] > │             let v181 : UH3 = UH3_0(v177, v178, v176)                         │

00:01:29 #4121 [Debug] > │             v173.l0 <- v180                                                  │

00:01:29 #4122 [Debug] > │             v173.l1 <- v181                                                  │

00:01:29 #4123 [Debug] > │             v173.l2 <- v179                                                  │

00:01:29 #4124 [Debug] > │             ()                                                               │

00:01:29 #4125 [Debug] > │         let struct (v182 : UH3, v183 : int64) = v173.l1, v173.l2             │

00:01:29 #4126 [Debug] > │         let v184 : UH3 = UH3_1                                               │

00:01:29 #4127 [Debug] > │         let v185 : UH3 = method16(v182, v184)                                │

00:01:29 #4128 [Debug] > │         let v186 : (struct (int64 * int64) []) = method17(v185)              │

00:01:29 #4129 [Debug] > │         let v187 : int32 = v186.Length                                       │

00:01:29 #4130 [Debug] > │         let v188 : (struct (int64 * int64) []) = Array.zeroCreate<struct     │

00:01:29 #4131 [Debug] > │ (int64 * int64)> (v187)                                                      │

00:01:29 #4132 [Debug] > │         let v189 : Mut0 = {l0 = 0} : Mut0                                    │

00:01:29 #4133 [Debug] > │         while method20(v187, v189) do                                        │

00:01:29 #4134 [Debug] > │             let v191 : int32 = v189.l0                                       │

00:01:29 #4135 [Debug] > │             let struct (v192 : int64, v193 : int64) = v186.[int v191]        │

00:01:29 #4136 [Debug] > │             let v194 : int64 = v192 + 1L                                     │

00:01:29 #4137 [Debug] > │             v188.[int v191] <- struct (v194, v193)                           │

00:01:29 #4138 [Debug] > │             let v195 : int32 = v191 + 1                                      │

00:01:29 #4139 [Debug] > │             v189.l0 <- v195                                                  │

00:01:29 #4140 [Debug] > │             ()                                                               │

00:01:29 #4141 [Debug] > │         let v196 : (struct (int64 * int64) -> int64) = closure8()            │

00:01:29 #4142 [Debug] > │         let v197 : (struct (int64 * int64) []) = v188 |> Array.sortBy v196   │

00:01:29 #4143 [Debug] > │         let struct (v198 : int64, v199 : int64) = v197.[int 0]               │

00:01:29 #4144 [Debug] > │         let v200 : string = $"%A{struct (v198, v199)}"                       │

00:01:29 #4145 [Debug] > │         let v201 : bool = v167 = v169                                        │

00:01:29 #4146 [Debug] > │         let v206 : US1 =                                                     │

00:01:29 #4147 [Debug] > │             if v201 then                                                     │

00:01:29 #4148 [Debug] > │                 let v202 : System.ConsoleColor =                             │

00:01:29 #4149 [Debug] > │ System.ConsoleColor.DarkGreen                                                │

00:01:29 #4150 [Debug] > │                 US1_1(v202)                                                  │

00:01:29 #4151 [Debug] > │             else                                                             │

00:01:29 #4152 [Debug] > │                 let v204 : System.ConsoleColor = System.ConsoleColor.DarkRed │

00:01:29 #4153 [Debug] > │                 US1_1(v204)                                                  │

00:01:29 #4154 [Debug] > │         let v207 : UH2 = UH2_1                                               │

00:01:29 #4155 [Debug] > │         let v208 : UH2 = UH2_0(v200, v207)                                   │

00:01:29 #4156 [Debug] > │         let v209 : UH2 = UH2_0(v169, v208)                                   │

00:01:29 #4157 [Debug] > │         let v210 : UH2 = UH2_0(v167, v209)                                   │

00:01:29 #4158 [Debug] > │         let v211 : UH2 = UH2_0(v168, v210)                                   │

00:01:29 #4159 [Debug] > │         v163.[int v166] <- struct (v211, v206)                               │

00:01:29 #4160 [Debug] > │         let v212 : uint64 = v166 + 1UL                                       │

00:01:29 #4161 [Debug] > │         v164.l0 <- v212                                                      │

00:01:29 #4162 [Debug] > │         ()                                                                   │

00:01:29 #4163 [Debug] > │     let v213 : string = "Input"                                              │

00:01:29 #4164 [Debug] > │     let v214 : string = "Expected"                                           │

00:01:29 #4165 [Debug] > │     let v215 : string = "Result"                                             │

00:01:29 #4166 [Debug] > │     let v216 : string = "Best"                                               │

00:01:29 #4167 [Debug] > │     let v217 : UH2 = UH2_1                                                   │

00:01:29 #4168 [Debug] > │     let v218 : UH2 = UH2_0(v216, v217)                                       │

00:01:29 #4169 [Debug] > │     let v219 : UH2 = UH2_0(v215, v218)                                       │

00:01:29 #4170 [Debug] > │     let v220 : UH2 = UH2_0(v214, v219)                                       │

00:01:29 #4171 [Debug] > │     let v221 : UH2 = UH2_0(v213, v220)                                       │

00:01:29 #4172 [Debug] > │     let v222 : US1 = US1_0                                                   │

00:01:29 #4173 [Debug] > │     let v223 : string = "---"                                                │

00:01:29 #4174 [Debug] > │     let v224 : UH2 = UH2_1                                                   │

00:01:29 #4175 [Debug] > │     let v225 : UH2 = UH2_0(v223, v224)                                       │

00:01:29 #4176 [Debug] > │     let v226 : UH2 = UH2_0(v223, v225)                                       │

00:01:29 #4177 [Debug] > │     let v227 : UH2 = UH2_0(v223, v226)                                       │

00:01:29 #4178 [Debug] > │     let v228 : UH2 = UH2_0(v223, v227)                                       │

00:01:29 #4179 [Debug] > │     let v229 : US1 = US1_0                                                   │

00:01:29 #4180 [Debug] > │     let v230 : UH4 = UH4_1                                                   │

00:01:29 #4181 [Debug] > │     let v231 : UH4 = UH4_0(v228, v229, v230)                                 │

00:01:29 #4182 [Debug] > │     let v232 : UH4 = UH4_0(v221, v222, v231)                                 │

00:01:29 #4183 [Debug] > │     let v233 : (struct (UH2 * US1) []) = method21(v232)                      │

00:01:29 #4184 [Debug] > │     let v234 : uint64 = System.Convert.ToUInt64 v233.Length                  │

00:01:29 #4185 [Debug] > │     let v235 : uint64 = System.Convert.ToUInt64 v163.Length                  │

00:01:29 #4186 [Debug] > │     let v236 : uint64 = v234 + v235                                          │

00:01:29 #4187 [Debug] > │     let v237 : (struct (UH2 * US1) []) = Array.zeroCreate<struct (UH2 *      │

00:01:29 #4188 [Debug] > │ US1)> (System.Convert.ToInt32(v236))                                         │

00:01:29 #4189 [Debug] > │     let v238 : Mut1 = {l0 = 0UL} : Mut1                                      │

00:01:29 #4190 [Debug] > │     while method5(v236, v238) do                                             │

00:01:29 #4191 [Debug] > │         let v240 : uint64 = v238.l0                                          │

00:01:29 #4192 [Debug] > │         let v241 : bool = v240 < v234                                        │

00:01:29 #4193 [Debug] > │         let struct (v247 : UH2, v248 : US1) =                                │

00:01:29 #4194 [Debug] > │             if v241 then                                                     │

00:01:29 #4195 [Debug] > │                 let struct (v242 : UH2, v243 : US1) = v233.[int v240]        │

00:01:29 #4196 [Debug] > │                 struct (v242, v243)                                          │

00:01:29 #4197 [Debug] > │             else                                                             │

00:01:29 #4198 [Debug] > │                 let v244 : uint64 = v240 - v234                              │

00:01:29 #4199 [Debug] > │                 let struct (v245 : UH2, v246 : US1) = v163.[int v244]        │

00:01:29 #4200 [Debug] > │                 struct (v245, v246)                                          │

00:01:29 #4201 [Debug] > │         v237.[int v240] <- struct (v247, v248)                               │

00:01:29 #4202 [Debug] > │         let v249 : uint64 = v240 + 1UL                                       │

00:01:29 #4203 [Debug] > │         v238.l0 <- v249                                                      │

00:01:29 #4204 [Debug] > │         ()                                                                   │

00:01:29 #4205 [Debug] > │     let v250 : uint64 = System.Convert.ToUInt64 v237.Length                  │

00:01:29 #4206 [Debug] > │     let v251 : ((string []) []) = Array.zeroCreate<(string [])>              │

00:01:29 #4207 [Debug] > │ (System.Convert.ToInt32(v250))                                               │

00:01:29 #4208 [Debug] > │     let v252 : Mut1 = {l0 = 0UL} : Mut1                                      │

00:01:29 #4209 [Debug] > │     while method5(v250, v252) do                                             │

00:01:29 #4210 [Debug] > │         let v254 : uint64 = v252.l0                                          │

00:01:29 #4211 [Debug] > │         let struct (v255 : UH2, v256 : US1) = v237.[int v254]                │

00:01:29 #4212 [Debug] > │         let v257 : (string []) = method24(v255)                              │

00:01:29 #4213 [Debug] > │         v251.[int v254] <- v257                                              │

00:01:29 #4214 [Debug] > │         let v258 : uint64 = v254 + 1UL                                       │

00:01:29 #4215 [Debug] > │         v252.l0 <- v258                                                      │

00:01:29 #4216 [Debug] > │         ()                                                                   │

00:01:29 #4217 [Debug] > │     let v259 : ((string []) []) = v251 |> Array.transpose                    │

00:01:29 #4218 [Debug] > │     let v260 : uint64 = System.Convert.ToUInt64 v259.Length                  │

00:01:29 #4219 [Debug] > │     let v261 : (int64 []) = Array.zeroCreate<int64>                          │

00:01:29 #4220 [Debug] > │ (System.Convert.ToInt32(v260))                                               │

00:01:29 #4221 [Debug] > │     let v262 : Mut1 = {l0 = 0UL} : Mut1                                      │

00:01:29 #4222 [Debug] > │     while method5(v260, v262) do                                             │

00:01:29 #4223 [Debug] > │         let v264 : uint64 = v262.l0                                          │

00:01:29 #4224 [Debug] > │         let v265 : (string []) = v259.[int v264]                             │

00:01:29 #4225 [Debug] > │         let v266 : uint64 = System.Convert.ToUInt64 v265.Length              │

00:01:29 #4226 [Debug] > │         let v267 : (int64 []) = Array.zeroCreate<int64>                      │

00:01:29 #4227 [Debug] > │ (System.Convert.ToInt32(v266))                                               │

00:01:29 #4228 [Debug] > │         let v268 : Mut1 = {l0 = 0UL} : Mut1                                  │

00:01:29 #4229 [Debug] > │         while method5(v266, v268) do                                         │

00:01:29 #4230 [Debug] > │             let v270 : uint64 = v268.l0                                      │

00:01:29 #4231 [Debug] > │             let v271 : string = v265.[int v270]                              │

00:01:29 #4232 [Debug] > │             let v272 : int64 = System.Convert.ToInt64 v271.Length            │

00:01:29 #4233 [Debug] > │             v267.[int v270] <- v272                                          │

00:01:29 #4234 [Debug] > │             let v273 : uint64 = v270 + 1UL                                   │

00:01:29 #4235 [Debug] > │             v268.l0 <- v273                                                  │

00:01:29 #4236 [Debug] > │             ()                                                               │

00:01:29 #4237 [Debug] > │         let v274 : (int64 []) = v267 |> Array.sortDescending                 │

00:01:29 #4238 [Debug] > │         let v275 : int64 option = v274 |> Array.tryItem 0                    │

00:01:29 #4239 [Debug] > │         let v276 : (int64 -> US2) = closure9()                               │

00:01:29 #4240 [Debug] > │         let v277 : US2 = US2_0                                               │

00:01:29 #4241 [Debug] > │         let v278 : US2 = v275 |> Option.map v276 |> Option.defaultValue v277 │

00:01:29 #4242 [Debug] > │         let v281 : int64 =                                                   │

00:01:29 #4243 [Debug] > │             match v278 with                                                  │

00:01:29 #4244 [Debug] > │             | US2_0 -> (* None *)                                            │

00:01:29 #4245 [Debug] > │                 0L                                                           │

00:01:29 #4246 [Debug] > │             | US2_1(v279) -> (* Some *)                                      │

00:01:29 #4247 [Debug] > │                 v279                                                         │

00:01:29 #4248 [Debug] > │         v261.[int v264] <- v281                                              │

00:01:29 #4249 [Debug] > │         let v282 : uint64 = v264 + 1UL                                       │

00:01:29 #4250 [Debug] > │         v262.l0 <- v282                                                      │

00:01:29 #4251 [Debug] > │         ()                                                                   │

00:01:29 #4252 [Debug] > │     let v283 : uint64 = System.Convert.ToUInt64 v261.Length                  │

00:01:29 #4253 [Debug] > │     let v284 : UH5 = UH5_1                                                   │

00:01:29 #4254 [Debug] > │     let v285 : Mut3 = {l0 = 0UL; l1 = v284; l2 = 0} : Mut3                   │

00:01:29 #4255 [Debug] > │     while method27(v283, v285) do                                            │

00:01:29 #4256 [Debug] > │         let v287 : uint64 = v285.l0                                          │

00:01:29 #4257 [Debug] > │         let struct (v288 : UH5, v289 : int32) = v285.l1, v285.l2             │

00:01:29 #4258 [Debug] > │         let v290 : int64 = v261.[int v287]                                   │

00:01:29 #4259 [Debug] > │         let v291 : int32 = v289 + 1                                          │

00:01:29 #4260 [Debug] > │         let v292 : uint64 = v287 + 1UL                                       │

00:01:29 #4261 [Debug] > │         let v293 : UH5 = UH5_0(v289, v290, v288)                             │

00:01:29 #4262 [Debug] > │         v285.l0 <- v292                                                      │

00:01:29 #4263 [Debug] > │         v285.l1 <- v293                                                      │

00:01:29 #4264 [Debug] > │         v285.l2 <- v291                                                      │

00:01:29 #4265 [Debug] > │         ()                                                                   │

00:01:29 #4266 [Debug] > │     let struct (v294 : UH5, v295 : int32) = v285.l1, v285.l2                 │

00:01:29 #4267 [Debug] > │     let v296 : UH5 = UH5_1                                                   │

00:01:29 #4268 [Debug] > │     let v297 : UH5 = method28(v294, v296)                                    │

00:01:29 #4269 [Debug] > │     let v298 : (struct (int32 * int64) []) = method29(v297)                  │

00:01:29 #4270 [Debug] > │     let v299 : Map<int32, int64> = v298 |> Array.map (fun (struct (a, b)) -> │

00:01:29 #4271 [Debug] > │ a, b) |> Map.ofArray                                                         │

00:01:29 #4272 [Debug] > │     let v300 : (struct ((string []) * US1) []) = Array.zeroCreate<struct     │

00:01:29 #4273 [Debug] > │ ((string []) * US1)> (System.Convert.ToInt32(v250))                          │

00:01:29 #4274 [Debug] > │     let v301 : Mut1 = {l0 = 0UL} : Mut1                                      │

00:01:29 #4275 [Debug] > │     while method5(v250, v301) do                                             │

00:01:29 #4276 [Debug] > │         let v303 : uint64 = v301.l0                                          │

00:01:29 #4277 [Debug] > │         let struct (v304 : UH2, v305 : US1) = v237.[int v303]                │

00:01:29 #4278 [Debug] > │         let v306 : UH6 = UH6_1                                               │

00:01:29 #4279 [Debug] > │         let v307 : int32 = 0                                                 │

00:01:29 #4280 [Debug] > │         let struct (v308 : UH6, v309 : int32) = method32(v304, v306, v307)   │

00:01:29 #4281 [Debug] > │         let v310 : UH6 = UH6_1                                               │

00:01:29 #4282 [Debug] > │         let v311 : UH6 = method33(v308, v310)                                │

00:01:29 #4283 [Debug] > │         let v312 : UH2 = UH2_1                                               │

00:01:29 #4284 [Debug] > │         let v313 : UH2 = method34(v299, v311, v312)                          │

00:01:29 #4285 [Debug] > │         let v314 : (string []) = method35(v313)                              │

00:01:29 #4286 [Debug] > │         v300.[int v303] <- struct (v314, v305)                               │

00:01:29 #4287 [Debug] > │         let v315 : uint64 = v303 + 1UL                                       │

00:01:29 #4288 [Debug] > │         v301.l0 <- v315                                                      │

00:01:29 #4289 [Debug] > │         ()                                                                   │

00:01:29 #4290 [Debug] > │     System.Console.WriteLine v27                                             │

00:01:29 #4291 [Debug] > │     let v316 : uint64 = System.Convert.ToUInt64 v300.Length                  │

00:01:29 #4292 [Debug] > │     let v317 : Mut1 = {l0 = 0UL} : Mut1                                      │

00:01:29 #4293 [Debug] > │     while method5(v316, v317) do                                             │

00:01:29 #4294 [Debug] > │         let v319 : uint64 = v317.l0                                          │

00:01:29 #4295 [Debug] > │         let struct (v320 : (string []), v321 : US1) = v300.[int v319]        │

00:01:29 #4296 [Debug] > │         match v321 with                                                      │

00:01:29 #4297 [Debug] > │         | US1_0 -> (* None *)                                                │

00:01:29 #4298 [Debug] > │             #if FABLE_COMPILER_RUST                                          │

00:01:29 #4299 [Debug] > │             let v325 : (unit -> unit) = closure10()                          │

00:01:29 #4300 [Debug] > │             v325 ()                                                          │

00:01:29 #4301 [Debug] > │             #else                                                            │

00:01:29 #4302 [Debug] > │             let v326 : (unit -> unit) = closure11()                          │

00:01:29 #4303 [Debug] > │             v326 ()                                                          │

00:01:29 #4304 [Debug] > │             #endif                                                           │

00:01:29 #4305 [Debug] > │             ()                                                               │

00:01:29 #4306 [Debug] > │         | US1_1(v322) -> (* Some *)                                          │

00:01:29 #4307 [Debug] > │             #if FABLE_COMPILER_RUST                                          │

00:01:29 #4308 [Debug] > │             let v323 : (unit -> unit) = closure12()                          │

00:01:29 #4309 [Debug] > │             v323 ()                                                          │

00:01:29 #4310 [Debug] > │             #else                                                            │

00:01:29 #4311 [Debug] > │             let v324 : (unit -> unit) = closure13(v322)                      │

00:01:29 #4312 [Debug] > │             v324 ()                                                          │

00:01:29 #4313 [Debug] > │             #endif                                                           │

00:01:29 #4314 [Debug] > │             ()                                                               │

00:01:29 #4315 [Debug] > │         let v327 : string = "\t| "                                           │

00:01:29 #4316 [Debug] > │         let v328 : string = System.String.Join (v327, v320)                  │

00:01:29 #4317 [Debug] > │         System.Console.WriteLine v328                                        │

00:01:29 #4318 [Debug] > │         #if FABLE_COMPILER_RUST                                              │

00:01:29 #4319 [Debug] > │         let v329 : (unit -> unit) = closure10()                              │

00:01:29 #4320 [Debug] > │         v329 ()                                                              │

00:01:29 #4321 [Debug] > │         #else                                                                │

00:01:29 #4322 [Debug] > │         let v330 : (unit -> unit) = closure11()                              │

00:01:29 #4323 [Debug] > │         v330 ()                                                              │

00:01:29 #4324 [Debug] > │         #endif                                                               │

00:01:29 #4325 [Debug] > │         let v331 : uint64 = v319 + 1UL                                       │

00:01:29 #4326 [Debug] > │         v317.l0 <- v331                                                      │

00:01:29 #4327 [Debug] > │         ()                                                                   │

00:01:29 #4328 [Debug] > │     let v332 : ((float []) []) = Array.zeroCreate<(float [])>                │

00:01:29 #4329 [Debug] > │ (System.Convert.ToInt32(v162))                                               │

00:01:29 #4330 [Debug] > │     let v333 : Mut1 = {l0 = 0UL} : Mut1                                      │

00:01:29 #4331 [Debug] > │     while method5(v162, v333) do                                             │

00:01:29 #4332 [Debug] > │         let v335 : uint64 = v333.l0                                          │

00:01:29 #4333 [Debug] > │         let struct (v336 : string, v337 : string, v338 : string, v339 :      │

00:01:29 #4334 [Debug] > │ (int64 [])) = v75.[int v335]                                                 │

00:01:29 #4335 [Debug] > │         let v340 : (int64 -> float) = float                                  │

00:01:29 #4336 [Debug] > │         let v341 : uint64 = System.Convert.ToUInt64 v339.Length              │

00:01:29 #4337 [Debug] > │         let v342 : (float []) = Array.zeroCreate<float>                      │

00:01:29 #4338 [Debug] > │ (System.Convert.ToInt32(v341))                                               │

00:01:29 #4339 [Debug] > │         let v343 : Mut1 = {l0 = 0UL} : Mut1                                  │

00:01:29 #4340 [Debug] > │         while method5(v341, v343) do                                         │

00:01:29 #4341 [Debug] > │             let v345 : uint64 = v343.l0                                      │

00:01:29 #4342 [Debug] > │             let v346 : int64 = v339.[int v345]                               │

00:01:29 #4343 [Debug] > │             let v347 : float = v340 v346                                     │

00:01:29 #4344 [Debug] > │             v342.[int v345] <- v347                                          │

00:01:29 #4345 [Debug] > │             let v348 : uint64 = v345 + 1UL                                   │

00:01:29 #4346 [Debug] > │             v343.l0 <- v348                                                  │

00:01:29 #4347 [Debug] > │             ()                                                               │

00:01:29 #4348 [Debug] > │         v332.[int v335] <- v342                                              │

00:01:29 #4349 [Debug] > │         let v349 : uint64 = v335 + 1UL                                       │

00:01:29 #4350 [Debug] > │         v333.l0 <- v349                                                      │

00:01:29 #4351 [Debug] > │         ()                                                                   │

00:01:29 #4352 [Debug] > │     let v350 : ((float []) []) = v332 |> Array.transpose                     │

00:01:29 #4353 [Debug] > │     let v351 : uint64 = System.Convert.ToUInt64 v350.Length                  │

00:01:29 #4354 [Debug] > │     let v352 : (float []) = Array.zeroCreate<float>                          │

00:01:29 #4355 [Debug] > │ (System.Convert.ToInt32(v351))                                               │

00:01:29 #4356 [Debug] > │     let v353 : Mut1 = {l0 = 0UL} : Mut1                                      │

00:01:29 #4357 [Debug] > │     while method5(v351, v353) do                                             │

00:01:29 #4358 [Debug] > │         let v355 : uint64 = v353.l0                                          │

00:01:29 #4359 [Debug] > │         let v356 : (float []) = v350.[int v355]                              │

00:01:29 #4360 [Debug] > │         let v357 : float = v356 |> Array.average                             │

00:01:29 #4361 [Debug] > │         v352.[int v355] <- v357                                              │

00:01:29 #4362 [Debug] > │         let v358 : uint64 = v355 + 1UL                                       │

00:01:29 #4363 [Debug] > │         v353.l0 <- v358                                                      │

00:01:29 #4364 [Debug] > │         ()                                                                   │

00:01:29 #4365 [Debug] > │     let v359 : (float -> int64) = int64                                      │

00:01:29 #4366 [Debug] > │     let v360 : uint64 = System.Convert.ToUInt64 v352.Length                  │

00:01:29 #4367 [Debug] > │     let v361 : (int64 []) = Array.zeroCreate<int64>                          │

00:01:29 #4368 [Debug] > │ (System.Convert.ToInt32(v360))                                               │

00:01:29 #4369 [Debug] > │     let v362 : Mut1 = {l0 = 0UL} : Mut1                                      │

00:01:29 #4370 [Debug] > │     while method5(v360, v362) do                                             │

00:01:29 #4371 [Debug] > │         let v364 : uint64 = v362.l0                                          │

00:01:29 #4372 [Debug] > │         let v365 : float = v352.[int v364]                                   │

00:01:29 #4373 [Debug] > │         let v366 : int64 = v359 v365                                         │

00:01:29 #4374 [Debug] > │         v361.[int v364] <- v366                                              │

00:01:29 #4375 [Debug] > │         let v367 : uint64 = v364 + 1UL                                       │

00:01:29 #4376 [Debug] > │         v362.l0 <- v367                                                      │

00:01:29 #4377 [Debug] > │         ()                                                                   │

00:01:29 #4378 [Debug] > │     let v368 : uint64 = System.Convert.ToUInt64 v361.Length                  │

00:01:29 #4379 [Debug] > │     let v369 : UH5 = UH5_1                                                   │

00:01:29 #4380 [Debug] > │     let v370 : Mut3 = {l0 = 0UL; l1 = v369; l2 = 0} : Mut3                   │

00:01:29 #4381 [Debug] > │     while method27(v368, v370) do                                            │

00:01:29 #4382 [Debug] > │         let v372 : uint64 = v370.l0                                          │

00:01:29 #4383 [Debug] > │         let struct (v373 : UH5, v374 : int32) = v370.l1, v370.l2             │

00:01:29 #4384 [Debug] > │         let v375 : int64 = v361.[int v372]                                   │

00:01:29 #4385 [Debug] > │         let v376 : int32 = v374 + 1                                          │

00:01:29 #4386 [Debug] > │         let v377 : uint64 = v372 + 1UL                                       │

00:01:29 #4387 [Debug] > │         let v378 : UH5 = UH5_0(v374, v375, v373)                             │

00:01:29 #4388 [Debug] > │         v370.l0 <- v377                                                      │

00:01:29 #4389 [Debug] > │         v370.l1 <- v378                                                      │

00:01:29 #4390 [Debug] > │         v370.l2 <- v376                                                      │

00:01:29 #4391 [Debug] > │         ()                                                                   │

00:01:29 #4392 [Debug] > │     let struct (v379 : UH5, v380 : int32) = v370.l1, v370.l2                 │

00:01:29 #4393 [Debug] > │     let v381 : UH5 = UH5_1                                                   │

00:01:29 #4394 [Debug] > │     let v382 : UH5 = method28(v379, v381)                                    │

00:01:29 #4395 [Debug] > │     let v383 : (struct (int32 * int64) []) = method38(v382)                  │

00:01:29 #4396 [Debug] > │     System.Console.WriteLine v27                                             │

00:01:29 #4397 [Debug] > │     let v384 : string = "Average Ranking  "                                  │

00:01:29 #4398 [Debug] > │     System.Console.WriteLine v384                                            │

00:01:29 #4399 [Debug] > │     let v385 : (struct (int32 * int64) -> int64) = closure14()               │

00:01:29 #4400 [Debug] > │     let v386 : (struct (int32 * int64) []) = v383 |> Array.sortBy v385       │

00:01:29 #4401 [Debug] > │     let v387 : uint64 = System.Convert.ToUInt64 v386.Length                  │

00:01:29 #4402 [Debug] > │     let v388 : Mut1 = {l0 = 0UL} : Mut1                                      │

00:01:29 #4403 [Debug] > │     while method5(v387, v388) do                                             │

00:01:29 #4404 [Debug] > │         let v390 : uint64 = v388.l0                                          │

00:01:29 #4405 [Debug] > │         let struct (v391 : int32, v392 : int64) = v386.[int v390]            │

00:01:29 #4406 [Debug] > │         let v393 : string = $"Test case %d{v391 + 1}. Average Time: %A{v392} │

00:01:29 #4407 [Debug] > │ "                                                                            │

00:01:29 #4408 [Debug] > │         System.Console.WriteLine v393                                        │

00:01:29 #4409 [Debug] > │         let v394 : uint64 = v390 + 1UL                                       │

00:01:29 #4410 [Debug] > │         v388.l0 <- v394                                                      │

00:01:29 #4411 [Debug] > │         ()                                                                   │

00:01:29 #4412 [Debug] > │     ()                                                                       │

00:01:29 #4413 [Debug] > │ method0()                                                                    │

00:01:29 #4414 [Debug] > │                                                                              │

00:01:29 #4415 [Debug] > │                                                                              │

00:01:29 #4416 [Debug] > │                                                                              │

00:01:29 #4417 [Debug] > │ Test: v25                                                                    │

00:01:29 #4418 [Debug] > │                                                                              │

00:01:29 #4419 [Debug] > │ Solution: struct ([|1; 3; 4; 6; 8; 9; 11|], 6, 7)                            │

00:01:29 #4420 [Debug] > │ Test case 1. semi_open_1. Time: 605                                          │

00:01:29 #4421 [Debug] > │ Test case 2. closed_1. Time: 567                                             │

00:01:29 #4422 [Debug] > │ Test case 3. semi_open_2. Time: 494                                          │

00:01:29 #4423 [Debug] > │ Test case 4. closed_2. Time: 514                                             │

00:01:29 #4424 [Debug] > │                                                                              │

00:01:29 #4425 [Debug] > │ Solution: struct ([|1; 3; 4; 6; 8; 9; 11|], 1, 7)                            │

00:01:29 #4426 [Debug] > │ Test case 1. semi_open_1. Time: 580                                          │

00:01:29 #4427 [Debug] > │ Test case 2. closed_1. Time: 516                                             │

00:01:29 #4428 [Debug] > │ Test case 3. semi_open_2. Time: 503                                          │

00:01:29 #4429 [Debug] > │ Test case 4. closed_2. Time: 492                                             │

00:01:29 #4430 [Debug] > │                                                                              │

00:01:29 #4431 [Debug] > │ Solution: struct ([|1; 3; 4; 6; 8; 9; 11|], 11, 7)                           │

00:01:29 #4432 [Debug] > │ Test case 1. semi_open_1. Time: 532                                          │

00:01:29 #4433 [Debug] > │ Test case 2. closed_1. Time: 511                                             │

00:01:29 #4434 [Debug] > │ Test case 3. semi_open_2. Time: 622                                          │

00:01:29 #4435 [Debug] > │ Test case 4. closed_2. Time: 598                                             │

00:01:29 #4436 [Debug] > │                                                                              │

00:01:29 #4437 [Debug] > │ Solution: struct ([|1; 3; 4; 6; 8; 9; 11|], 12, 7)                           │

00:01:29 #4438 [Debug] > │ Test case 1. semi_open_1. Time: 573                                          │

00:01:29 #4439 [Debug] > │ Test case 2. closed_1. Time: 509                                             │

00:01:29 #4440 [Debug] > │ Test case 3. semi_open_2. Time: 520                                          │

00:01:29 #4441 [Debug] > │ Test case 4. closed_2. Time: 470                                             │

00:01:29 #4442 [Debug] > │                                                                              │

00:01:29 #4443 [Debug] > │ Solution: struct ([|1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 11; 12; 13; 14; 15; 16;   │

00:01:29 #4444 [Debug] > │ 17; 18; 19; 20;                                                              │

00:01:29 #4445 [Debug] > │           21; 22; 23; 24; 25; 26; 27; 28; 29; 30; 31; 32; 33; 34; 35; 36;    │

00:01:29 #4446 [Debug] > │ 37; 38;                                                                      │

00:01:29 #4447 [Debug] > │           39; 40; 41; 42; 43; 44; 45; 46; 47; 48; 49; 50; 51; 52; 53; 54;    │

00:01:29 #4448 [Debug] > │ 55; 56;                                                                      │

00:01:29 #4449 [Debug] > │           57; 58; 59; 60; 61; 62; 63; 64; 65; 66; 67; 68; 69; 70; 71; 72;    │

00:01:29 #4450 [Debug] > │ 73; 74;                                                                      │

00:01:29 #4451 [Debug] > │           75; 76; 77; 78; 79; 80; 81; 82; 83; 84; 85; 86; 87; 88; 89; 90;    │

00:01:29 #4452 [Debug] > │ 91; 92;                                                                      │

00:01:29 #4453 [Debug] > │           93; 94; 95; 96; 97; 98; 99; 100|], 60, 100)                        │

00:01:29 #4454 [Debug] > │ Test case 1. semi_open_1. Time: 510                                          │

00:01:29 #4455 [Debug] > │ Test case 2. closed_1. Time: 595                                             │

00:01:29 #4456 [Debug] > │ Test case 3. semi_open_2. Time: 524                                          │

00:01:29 #4457 [Debug] > │ Test case 4. closed_2. Time: 625                                             │

00:01:29 #4458 [Debug] > │                                                                              │

00:01:29 #4459 [Debug] > │ Solution: struct ([|1; 3; 4; 6; 8; 9; 11|], 6, 7)                            │

00:01:29 #4460 [Debug] > │ Test case 1. semi_open_1. Time: 524                                          │

00:01:29 #4461 [Debug] > │ Test case 2. closed_1. Time: 479                                             │

00:01:29 #4462 [Debug] > │ Test case 3. semi_open_2. Time: 471                                          │

00:01:29 #4463 [Debug] > │ Test case 4. closed_2. Time: 456                                             │

00:01:29 #4464 [Debug] > │                                                                              │

00:01:29 #4465 [Debug] > │ Solution: struct ([|1; 3; 4; 6; 8; 9; 11|], 1, 7)                            │

00:01:29 #4466 [Debug] > │ Test case 1. semi_open_1. Time: 492                                          │

00:01:29 #4467 [Debug] > │ Test case 2. closed_1. Time: 483                                             │

00:01:29 #4468 [Debug] > │ Test case 3. semi_open_2. Time: 480                                          │

00:01:29 #4469 [Debug] > │ Test case 4. closed_2. Time: 482                                             │

00:01:29 #4470 [Debug] > │                                                                              │

00:01:29 #4471 [Debug] > │ Solution: struct ([|1; 3; 4; 6; 8; 9; 11|], 11, 7)                           │

00:01:29 #4472 [Debug] > │ Test case 1. semi_open_1. Time: 472                                          │

00:01:29 #4473 [Debug] > │ Test case 2. closed_1. Time: 480                                             │

00:01:29 #4474 [Debug] > │ Test case 3. semi_open_2. Time: 479                                          │

00:01:29 #4475 [Debug] > │ Test case 4. closed_2. Time: 466                                             │

00:01:29 #4476 [Debug] > │                                                                              │

00:01:29 #4477 [Debug] > │ Solution: struct ([|1; 3; 4; 6; 8; 9; 11|], 12, 7)                           │

00:01:29 #4478 [Debug] > │ Test case 1. semi_open_1. Time: 468                                          │

00:01:29 #4479 [Debug] > │ Test case 2. closed_1. Time: 481                                             │

00:01:29 #4480 [Debug] > │ Test case 3. semi_open_2. Time: 470                                          │

00:01:29 #4481 [Debug] > │ Test case 4. closed_2. Time: 472                                             │

00:01:29 #4482 [Debug] > │                                                                              │

00:01:29 #4483 [Debug] > │ Solution: struct ([|1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 11; 12; 13; 14; 15; 16;   │

00:01:29 #4484 [Debug] > │ 17; 18; 19; 20;                                                              │

00:01:29 #4485 [Debug] > │           21; 22; 23; 24; 25; 26; 27; 28; 29; 30; 31; 32; 33; 34; 35; 36;    │

00:01:29 #4486 [Debug] > │ 37; 38;                                                                      │

00:01:29 #4487 [Debug] > │           39; 40; 41; 42; 43; 44; 45; 46; 47; 48; 49; 50; 51; 52; 53; 54;    │

00:01:29 #4488 [Debug] > │ 55; 56;                                                                      │

00:01:29 #4489 [Debug] > │           57; 58; 59; 60; 61; 62; 63; 64; 65; 66; 67; 68; 69; 70; 71; 72;    │

00:01:29 #4490 [Debug] > │ 73; 74;                                                                      │

00:01:29 #4491 [Debug] > │           75; 76; 77; 78; 79; 80; 81; 82; 83; 84; 85; 86; 87; 88; 89; 90;    │

00:01:29 #4492 [Debug] > │ 91; 92;                                                                      │

00:01:29 #4493 [Debug] > │           93; 94; 95; 96; 97; 98; 99; 100|], 60, 100)                        │

00:01:29 #4494 [Debug] > │ Test case 1. semi_open_1. Time: 480                                          │

00:01:29 #4495 [Debug] > │ Test case 2. closed_1. Time: 495                                             │

00:01:29 #4496 [Debug] > │ Test case 3. semi_open_2. Time: 491                                          │

00:01:29 #4497 [Debug] > │ Test case 4. closed_2. Time: 536                                             │

00:01:29 #4498 [Debug] > │                                                                              │

00:01:29 #4499 [Debug] > │ Input                                                                        │

00:01:29 #4500 [Debug] > │                                                                              │

00:01:29 #4501 [Debug] > │                                                                              │

00:01:29 #4502 [Debug] > │                                                                              │

00:01:29 #4503 [Debug] > │  	| Expected	| Result  	| Best                                                     │

00:01:29 #4504 [Debug] > │ ---                                                                          │

00:01:29 #4505 [Debug] > │                                                                              │

00:01:29 #4506 [Debug] > │                                                                              │

00:01:29 #4507 [Debug] > │                                                                              │

00:01:29 #4508 [Debug] > │    	| ---     	| ---     	| ---                                                    │

00:01:29 #4509 [Debug] > │ struct ([|1; 3; 4; 6; 8; 9; 11|], 6, 7)                                      │

00:01:29 #4510 [Debug] > │                                                                              │

00:01:29 #4511 [Debug] > │                                                                              │

00:01:29 #4512 [Debug] > │                                                                              │

00:01:29 #4513 [Debug] > │ | US0_1 3 	| US0_1 3 	| struct (3L, 494L)                                        │

00:01:29 #4514 [Debug] > │ struct ([|1; 3; 4; 6; 8; 9; 11|], 1, 7)                                      │

00:01:29 #4515 [Debug] > │                                                                              │

00:01:29 #4516 [Debug] > │                                                                              │

00:01:29 #4517 [Debug] > │                                                                              │

00:01:29 #4518 [Debug] > │ | US0_1 0 	| US0_1 0 	| struct (4L, 492L)                                        │

00:01:29 #4519 [Debug] > │ struct ([|1; 3; 4; 6; 8; 9; 11|], 11, 7)                                     │

00:01:29 #4520 [Debug] > │                                                                              │

00:01:29 #4521 [Debug] > │                                                                              │

00:01:29 #4522 [Debug] > │                                                                              │

00:01:29 #4523 [Debug] > │ | US0_1 6 	| US0_1 6 	| struct (2L, 511L)                                        │

00:01:29 #4524 [Debug] > │ struct ([|1; 3; 4; 6; 8; 9; 11|], 12, 7)                                     │

00:01:29 #4525 [Debug] > │                                                                              │

00:01:29 #4526 [Debug] > │                                                                              │

00:01:29 #4527 [Debug] > │                                                                              │

00:01:29 #4528 [Debug] > │ | US0_0   	| US0_0   	| struct (4L, 470L)                                        │

00:01:29 #4529 [Debug] > │ struct ([|1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 11; 12; 13; 14; 15; 16; 17; 18; 19; │

00:01:29 #4530 [Debug] > │ 20;                                                                          │

00:01:29 #4531 [Debug] > │           21; 22; 23; 24; 25; 26; 27; 28; 29; 30; 31; 32; 33; 34; 35; 36;    │

00:01:29 #4532 [Debug] > │ 37; 38;                                                                      │

00:01:29 #4533 [Debug] > │           39; 40; 41; 42; 43; 44; 45; 46; 47; 48; 49; 50; 51; 52; 53; 54;    │

00:01:29 #4534 [Debug] > │ 55; 56;                                                                      │

00:01:29 #4535 [Debug] > │           57; 58; 59; 60; 61; 62; 63; 64; 65; 66; 67; 68; 69; 70; 71; 72;    │

00:01:29 #4536 [Debug] > │ 73; 74;                                                                      │

00:01:29 #4537 [Debug] > │           75; 76; 77; 78; 79; 80; 81; 82; 83; 84; 85; 86; 87; 88; 89; 90;    │

00:01:29 #4538 [Debug] > │ 91; 92;                                                                      │

00:01:29 #4539 [Debug] > │           93; 94; 95; 96; 97; 98; 99; 100|], 60, 100)	| US0_1 59	| US0_1 59	|      │

00:01:29 #4540 [Debug] > │ struct (1L, 510L)                                                            │

00:01:29 #4541 [Debug] > │ struct ([|1; 3; 4; 6; 8; 9; 11|], 6, 7)                                      │

00:01:29 #4542 [Debug] > │                                                                              │

00:01:29 #4543 [Debug] > │                                                                              │

00:01:29 #4544 [Debug] > │                                                                              │

00:01:29 #4545 [Debug] > │ | US0_1 3 	| US0_1 3 	| struct (4L, 456L)                                        │

00:01:29 #4546 [Debug] > │ struct ([|1; 3; 4; 6; 8; 9; 11|], 1, 7)                                      │

00:01:29 #4547 [Debug] > │                                                                              │

00:01:29 #4548 [Debug] > │                                                                              │

00:01:29 #4549 [Debug] > │                                                                              │

00:01:29 #4550 [Debug] > │ | US0_1 0 	| US0_1 0 	| struct (3L, 480L)                                        │

00:01:29 #4551 [Debug] > │ struct ([|1; 3; 4; 6; 8; 9; 11|], 11, 7)                                     │

00:01:29 #4552 [Debug] > │                                                                              │

00:01:29 #4553 [Debug] > │                                                                              │

00:01:29 #4554 [Debug] > │                                                                              │

00:01:29 #4555 [Debug] > │ | US0_1 6 	| US0_1 6 	| struct (4L, 466L)                                        │

00:01:29 #4556 [Debug] > │ struct ([|1; 3; 4; 6; 8; 9; 11|], 12, 7)                                     │

00:01:29 #4557 [Debug] > │                                                                              │

00:01:29 #4558 [Debug] > │                                                                              │

00:01:29 #4559 [Debug] > │                                                                              │

00:01:29 #4560 [Debug] > │ | US0_0   	| US0_0   	| struct (1L, 468L)                                        │

00:01:29 #4561 [Debug] > │ struct ([|1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 11; 12; 13; 14; 15; 16; 17; 18; 19; │

00:01:29 #4562 [Debug] > │ 20;                                                                          │

00:01:29 #4563 [Debug] > │           21; 22; 23; 24; 25; 26; 27; 28; 29; 30; 31; 32; 33; 34; 35; 36;    │

00:01:29 #4564 [Debug] > │ 37; 38;                                                                      │

00:01:29 #4565 [Debug] > │           39; 40; 41; 42; 43; 44; 45; 46; 47; 48; 49; 50; 51; 52; 53; 54;    │

00:01:29 #4566 [Debug] > │ 55; 56;                                                                      │

00:01:29 #4567 [Debug] > │           57; 58; 59; 60; 61; 62; 63; 64; 65; 66; 67; 68; 69; 70; 71; 72;    │

00:01:29 #4568 [Debug] > │ 73; 74;                                                                      │

00:01:29 #4569 [Debug] > │           75; 76; 77; 78; 79; 80; 81; 82; 83; 84; 85; 86; 87; 88; 89; 90;    │

00:01:29 #4570 [Debug] > │ 91; 92;                                                                      │

00:01:29 #4571 [Debug] > │           93; 94; 95; 96; 97; 98; 99; 100|], 60, 100)	| US0_1 59	| US0_1 59	|      │

00:01:29 #4572 [Debug] > │ struct (1L, 480L)                                                            │

00:01:29 #4573 [Debug] > │                                                                              │

00:01:29 #4574 [Debug] > │ Average Ranking                                                              │

00:01:29 #4575 [Debug] > │ Test case 3. Average Time: 505L                                              │

00:01:29 #4576 [Debug] > │ Test case 2. Average Time: 511L                                              │

00:01:29 #4577 [Debug] > │ Test case 4. Average Time: 511L                                              │

00:01:29 #4578 [Debug] > │ Test case 1. Average Time: 523L                                              │

00:01:29 #4579 [Debug] > │                                                                              │

00:01:29 #4580 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:29 #4581 [Debug] >

00:01:29 #4582 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:29 #4583 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:29 #4584 [Debug] > │ ## returnLettersWithOddCountTests                                            │

00:01:29 #4585 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:29 #4586 [Debug] >

00:01:29 #4587 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:29 #4588 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:29 #4589 [Debug] > │ Test: ReturnLettersWithOddCount                                              │

00:01:29 #4590 [Debug] > │                                                                              │

00:01:29 #4591 [Debug] > │ Solution: 1                                                                  │

00:01:29 #4592 [Debug] > │ Test case 1. A. Time: 645L                                                   │

00:01:29 #4593 [Debug] > │                                                                              │

00:01:29 #4594 [Debug] > │ Solution: 2                                                                  │

00:01:29 #4595 [Debug] > │ Test case 1. A. Time: 663L                                                   │

00:01:29 #4596 [Debug] > │                                                                              │

00:01:29 #4597 [Debug] > │ Solution: 3                                                                  │

00:01:29 #4598 [Debug] > │ Test case 1. A. Time: 680L                                                   │

00:01:29 #4599 [Debug] > │                                                                              │

00:01:29 #4600 [Debug] > │ Solution: 9                                                                  │

00:01:29 #4601 [Debug] > │ Test case 1. A. Time: 730L                                                   │

00:01:29 #4602 [Debug] > │                                                                              │

00:01:29 #4603 [Debug] > │ Solution: 10                                                                 │

00:01:29 #4604 [Debug] > │ Test case 1. A. Time: 815L                                                   │

00:01:29 #4605 [Debug] > │                                                                              │

00:01:29 #4606 [Debug] > │ Input   | Expected        | Result          | Best                           │

00:01:29 #4607 [Debug] > │ ---     | ---             | ---             | ---                            │

00:01:29 #4608 [Debug] > │ 1       | a               | a               | (1, 645)                       │

00:01:29 #4609 [Debug] > │ 2       | ba              | ba              | (1, 663)                       │

00:01:29 #4610 [Debug] > │ 3       | aaa             | aaa             | (1, 680)                       │

00:01:29 #4611 [Debug] > │ 9       | aaaaaaaaa       | aaaaaaaaa       | (1, 730)                       │

00:01:29 #4612 [Debug] > │ 10      | baaaaaaaaa      | baaaaaaaaa      | (1, 815)                       │

00:01:29 #4613 [Debug] > │                                                                              │

00:01:29 #4614 [Debug] > │ Averages                                                                     │

00:01:29 #4615 [Debug] > │ Test case 1. Average Time: 706L                                              │

00:01:29 #4616 [Debug] > │                                                                              │

00:01:29 #4617 [Debug] > │ Ranking                                                                      │

00:01:29 #4618 [Debug] > │ Test case 1. Average Time: 706L                                              │

00:01:29 #4619 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:29 #4620 [Debug] >

00:01:29 #4621 [Debug] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:01:29 #4622 [Debug] > //// test

00:01:29 #4623 [Debug] >

00:01:29 #4624 [Debug] > let solutions = [[

00:01:29 #4625 [Debug] >     "A",

00:01:29 #4626 [Debug] >     fun n ->

00:01:29 #4627 [Debug] >         let mutable _builder = StringBuilder (new string('a', n))

00:01:29 #4628 [Debug] >         if n % 2 = 0 then

00:01:29 #4629 [Debug] >             _builder.[[0]] <- 'b'

00:01:29 #4630 [Debug] >

00:01:29 #4631 [Debug] >         _builder.ToString ()

00:01:29 #4632 [Debug] > ]]

00:01:29 #4633 [Debug] > let testCases = seq {

00:01:29 #4634 [Debug] >     1, "a"

00:01:29 #4635 [Debug] >     2, "ba"

00:01:29 #4636 [Debug] >     3, "aaa"

00:01:29 #4637 [Debug] >     9, "aaaaaaaaa"

00:01:29 #4638 [Debug] >     10, "baaaaaaaaa"

00:01:29 #4639 [Debug] > }

00:01:29 #4640 [Debug] > let rec returnLettersWithOddCountTests =

00:01:29 #4641 [Debug] >     runAll (nameof returnLettersWithOddCountTests) _count solutions testCases

00:01:29 #4642 [Debug] > returnLettersWithOddCountTests

00:01:29 #4643 [Debug] > |> sortResultList

00:01:30 #4644 [Debug] >

00:01:30 #4645 [Debug] > ╭─[ 797.40ms - stdout ]────────────────────────────────────────────────────────╮

00:01:30 #4646 [Debug] > │                                                                              │

00:01:30 #4647 [Debug] > │                                                                              │

00:01:30 #4648 [Debug] > │ Test: returnLettersWithOddCountTests                                         │

00:01:30 #4649 [Debug] > │                                                                              │

00:01:30 #4650 [Debug] > │ Solution: 1                                                                  │

00:01:30 #4651 [Debug] > │ Test case 1. A. Time: 1L                                                     │

00:01:30 #4652 [Debug] > │                                                                              │

00:01:30 #4653 [Debug] > │ Solution: 2                                                                  │

00:01:30 #4654 [Debug] > │ Test case 1. A. Time: 0L                                                     │

00:01:30 #4655 [Debug] > │                                                                              │

00:01:30 #4656 [Debug] > │ Solution: 3                                                                  │

00:01:30 #4657 [Debug] > │ Test case 1. A. Time: 0L                                                     │

00:01:30 #4658 [Debug] > │                                                                              │

00:01:30 #4659 [Debug] > │ Solution: 9                                                                  │

00:01:30 #4660 [Debug] > │ Test case 1. A. Time: 0L                                                     │

00:01:30 #4661 [Debug] > │                                                                              │

00:01:30 #4662 [Debug] > │ Solution: 10                                                                 │

00:01:30 #4663 [Debug] > │ Test case 1. A. Time: 2L                                                     │

00:01:30 #4664 [Debug] > │                                                                              │

00:01:30 #4665 [Debug] > │ Input	| Expected  	| Result    	| Best                                             │

00:01:30 #4666 [Debug] > │ ---  	| ---       	| ---       	| ---                                              │

00:01:30 #4667 [Debug] > │ 1    	| a         	| a         	| (1, 1)                                           │

00:01:30 #4668 [Debug] > │ 2    	| ba        	| ba        	| (1, 0)                                           │

00:01:30 #4669 [Debug] > │ 3    	| aaa       	| aaa       	| (1, 0)                                           │

00:01:30 #4670 [Debug] > │ 9    	| aaaaaaaaa 	| aaaaaaaaa 	| (1, 0)                                           │

00:01:30 #4671 [Debug] > │ 10   	| baaaaaaaaa	| baaaaaaaaa	| (1, 2)                                           │

00:01:30 #4672 [Debug] > │                                                                              │

00:01:30 #4673 [Debug] > │ Average Ranking                                                              │

00:01:30 #4674 [Debug] > │ Test case 1. Average Time: 0L                                                │

00:01:30 #4675 [Debug] > │                                                                              │

00:01:30 #4676 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:30 #4677 [Debug] >

00:01:30 #4678 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:30 #4679 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:30 #4680 [Debug] > │ ## hasAnyPairCloseToEachotherTests                                           │

00:01:30 #4681 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:30 #4682 [Debug] >

00:01:30 #4683 [Debug] > ── markdown ────────────────────────────────────────────────────────────────────

00:01:30 #4684 [Debug] > ╭──────────────────────────────────────────────────────────────────────────────╮

00:01:30 #4685 [Debug] > │ Test: HasAnyPairCloseToEachother                                             │

00:01:30 #4686 [Debug] > │                                                                              │

00:01:30 #4687 [Debug] > │ Solution: 0                                                                  │

00:01:30 #4688 [Debug] > │ Test case 1. A. Time: 137L                                                   │

00:01:30 #4689 [Debug] > │                                                                              │

00:01:30 #4690 [Debug] > │ Solution: 1,2                                                                │

00:01:30 #4691 [Debug] > │ Test case 1. A. Time: 186L                                                   │

00:01:30 #4692 [Debug] > │                                                                              │

00:01:30 #4693 [Debug] > │ Solution: 3,5                                                                │

00:01:30 #4694 [Debug] > │ Test case 1. A. Time: 206L                                                   │

00:01:30 #4695 [Debug] > │                                                                              │

00:01:30 #4696 [Debug] > │ Solution: 3,4,6                                                              │

00:01:30 #4697 [Debug] > │ Test case 1. A. Time: 149L                                                   │

00:01:30 #4698 [Debug] > │                                                                              │

00:01:30 #4699 [Debug] > │ Solution: 2,4,6                                                              │

00:01:30 #4700 [Debug] > │ Test case 1. A. Time: 150L                                                   │

00:01:30 #4701 [Debug] > │                                                                              │

00:01:30 #4702 [Debug] > │ Input   | Expected        | Result  | Best                                   │

00:01:30 #4703 [Debug] > │ ---     | ---             | ---     | ---                                    │

00:01:30 #4704 [Debug] > │ 0       | False           | False   | (1, 137)                               │

00:01:30 #4705 [Debug] > │ 1,2     | True            | True    | (1, 186)                               │

00:01:30 #4706 [Debug] > │ 3,5     | False           | False   | (1, 206)                               │

00:01:30 #4707 [Debug] > │ 3,4,6   | True            | True    | (1, 149)                               │

00:01:30 #4708 [Debug] > │ 2,4,6   | False           | False   | (1, 150)                               │

00:01:30 #4709 [Debug] > │                                                                              │

00:01:30 #4710 [Debug] > │ Averages                                                                     │

00:01:30 #4711 [Debug] > │ Test case 1. Average Time: 165L                                              │

00:01:30 #4712 [Debug] > │                                                                              │

00:01:30 #4713 [Debug] > │ Ranking                                                                      │

00:01:30 #4714 [Debug] > │ Test case 1. Average Time: 165L                                              │

00:01:30 #4715 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:30 #4716 [Debug] >

00:01:30 #4717 [Debug] > ── fsharp ──────────────────────────────────────────────────────────────────────

00:01:30 #4718 [Debug] > //// test

00:01:30 #4719 [Debug] >

00:01:30 #4720 [Debug] > let solutions = [[

00:01:30 #4721 [Debug] >     "A",

00:01:30 #4722 [Debug] >     fun (a: int[[]]) ->

00:01:30 #4723 [Debug] >         let indices = System.Linq.Enumerable.Range(0, a.Length) |>

00:01:30 #4724 [Debug] > System.Linq.Enumerable.ToArray

00:01:30 #4725 [Debug] >         System.Array.Sort (a, indices)

00:01:30 #4726 [Debug] >

00:01:30 #4727 [Debug] >         indices

00:01:30 #4728 [Debug] >         |> Array.take (a.Length - 1)

00:01:30 #4729 [Debug] >         |> Array.exists (fun i -> a.[[i + 1]] - a.[[i]] = 1)

00:01:30 #4730 [Debug] > ]]

00:01:30 #4731 [Debug] > let testCases = seq {

00:01:30 #4732 [Debug] >     [[| 0 |]], false

00:01:30 #4733 [Debug] >     [[| 1; 2 |]], true

00:01:30 #4734 [Debug] >     [[| 3; 5 |]], false

00:01:30 #4735 [Debug] >     [[| 3; 4; 6 |]], true

00:01:30 #4736 [Debug] >     [[| 2; 4; 6 |]], false

00:01:30 #4737 [Debug] > }

00:01:30 #4738 [Debug] > let rec hasAnyPairCloseToEachotherTests =

00:01:30 #4739 [Debug] >     runAll (nameof hasAnyPairCloseToEachotherTests) _count solutions testCases

00:01:30 #4740 [Debug] > hasAnyPairCloseToEachotherTests

00:01:30 #4741 [Debug] > |> sortResultList

00:01:31 #4742 [Debug] >

00:01:31 #4743 [Debug] > ╭─[ 696.15ms - stdout ]────────────────────────────────────────────────────────╮

00:01:31 #4744 [Debug] > │                                                                              │

00:01:31 #4745 [Debug] > │                                                                              │

00:01:31 #4746 [Debug] > │ Test: hasAnyPairCloseToEachotherTests                                        │

00:01:31 #4747 [Debug] > │                                                                              │

00:01:31 #4748 [Debug] > │ Solution: 0                                                                  │

00:01:31 #4749 [Debug] > │ Test case 1. A. Time: 2L                                                     │

00:01:31 #4750 [Debug] > │                                                                              │

00:01:31 #4751 [Debug] > │ Solution: 1,2                                                                │

00:01:31 #4752 [Debug] > │ Test case 1. A. Time: 0L                                                     │

00:01:31 #4753 [Debug] > │                                                                              │

00:01:31 #4754 [Debug] > │ Solution: 3,5                                                                │

00:01:31 #4755 [Debug] > │ Test case 1. A. Time: 0L                                                     │

00:01:31 #4756 [Debug] > │                                                                              │

00:01:31 #4757 [Debug] > │ Solution: 3,4,6                                                              │

00:01:31 #4758 [Debug] > │ Test case 1. A. Time: 0L                                                     │

00:01:31 #4759 [Debug] > │                                                                              │

00:01:31 #4760 [Debug] > │ Solution: 2,4,6                                                              │

00:01:31 #4761 [Debug] > │ Test case 1. A. Time: 0L                                                     │

00:01:31 #4762 [Debug] > │                                                                              │

00:01:31 #4763 [Debug] > │ Input	| Expected	| Result	| Best                                                   │

00:01:31 #4764 [Debug] > │ ---  	| ---     	| ---   	| ---                                                    │

00:01:31 #4765 [Debug] > │ 0    	| False   	| False 	| (1, 2)                                                 │

00:01:31 #4766 [Debug] > │ 1,2  	| True    	| True  	| (1, 0)                                                 │

00:01:31 #4767 [Debug] > │ 3,5  	| False   	| False 	| (1, 0)                                                 │

00:01:31 #4768 [Debug] > │ 3,4,6	| True    	| True  	| (1, 0)                                                 │

00:01:31 #4769 [Debug] > │ 2,4,6	| False   	| False 	| (1, 0)                                                 │

00:01:31 #4770 [Debug] > │                                                                              │

00:01:31 #4771 [Debug] > │ Average Ranking                                                              │

00:01:31 #4772 [Debug] > │ Test case 1. Average Time: 0L                                                │

00:01:31 #4773 [Debug] > │                                                                              │

00:01:31 #4774 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:31 #4775 [Debug] >

00:01:31 #4776 [Debug] > ── spiral ──────────────────────────────────────────────────────────────────────

00:01:31 #4777 [Debug] > // // test

00:01:31 #4778 [Debug] >

00:01:31 #4779 [Debug] > ()

00:01:31 #4780 [Debug] > Building C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20231025-1418-5732-3201-3dfa888d18d1\main.spi

00:01:31 #4781 [Debug] >

00:01:31 #4782 [Debug] > ╭─[ 188.55ms - stdout ]────────────────────────────────────────────────────────╮

00:01:31 #4783 [Debug] > │ let rec method0 () : unit =                                                  │

00:01:31 #4784 [Debug] > │     ()                                                                       │

00:01:31 #4785 [Debug] > │ method0()                                                                    │

00:01:31 #4786 [Debug] > │                                                                              │

00:01:31 #4787 [Debug] > │                                                                              │

00:01:31 #4788 [Debug] > ╰──────────────────────────────────────────────────────────────────────────────╯

00:01:33 #4789 [Debug] > [NbConvertApp] Converting notebook Perf.dib.ipynb to html

00:01:33 #4790 [Debug] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.

00:01:33 #4791 [Debug] >   validate(nb)

00:01:34 #4792 [Debug] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:72: UserWarning: IPython3 lexer unavailable, falling back on Python 3

00:01:34 #4793 [Debug] >   return _pygments_highlight(

00:01:35 #4794 [Debug] > [NbConvertApp] Writing 553122 bytes to Perf.dib.html

00:01:36 #4795 [Debug] executeAsync / exitCode: 0 / output.Length: 337620

00:01:36 #4796 [Debug] main / executeCommand / exitCode: 0

00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Perf.dib

00:00:00 #2 [Debug] parseDibCode / output: Fs / file: Perf.dib

In [ ]:
{ . "$ScriptDir/../apps/ipfs/build.ps1" } | Invoke-Block
Lockfile is up to date, resolution step is skipped

Already up to date



Done in 1.6s

In [ ]:
{ . "$ScriptDir/outdated.ps1" } | Invoke-Block
Paket version 8.0.0-alpha002+6339fce88f07b4d959d03b78330fdb5a6d936483

Resolving dependency graph...

Outdated packages found:

  Group: Main

    * Expecto.FsCheck 10.1.0-fscheck3 -> 10.1.0

    * FsCheck 3.0.0-rc1 -> 2.16.6

    * Microsoft.AspNetCore.Connections.Abstractions 7.0 -> 8.0.0-rc.2.23480.2

    * Microsoft.AspNetCore.Http.Connections.Client 7.0 -> 8.0.0-rc.2.23480.2

    * Microsoft.AspNetCore.Http.Connections.Common 7.0 -> 8.0.0-rc.2.23480.2

    * Microsoft.AspNetCore.SignalR.Client 7.0 -> 8.0.0-rc.2.23480.2

    * Microsoft.AspNetCore.SignalR.Client.Core 7.0 -> 8.0.0-rc.2.23480.2

    * Microsoft.AspNetCore.SignalR.Common 7.0 -> 8.0.0-rc.2.23480.2

    * Microsoft.AspNetCore.SignalR.Protocols.Json 7.0 -> 8.0.0-rc.2.23480.2

    * Microsoft.Extensions.DependencyInjection 7.0 -> 8.0.0-rc.2.23479.6

    * Microsoft.Extensions.DependencyInjection.Abstractions 7.0 -> 8.0.0-rc.2.23479.6

    * Microsoft.Extensions.Features 7.0 -> 8.0.0-rc.2.23480.2

    * Microsoft.Extensions.Logging 7.0 -> 8.0.0-rc.2.23479.6

    * Microsoft.Extensions.Logging.Abstractions 7.0.1 -> 8.0.0-rc.2.23479.6

    * Microsoft.Extensions.Options 7.0.1 -> 8.0.0-rc.2.23479.6

    * Microsoft.Extensions.Primitives 7.0 -> 8.0.0-rc.2.23479.6

    * System.IO.Pipelines 7.0 -> 8.0.0-rc.2.23479.6

    * System.Threading.Channels 7.0 -> 8.0.0-rc.2.23479.6

Total time taken: 54 seconds

All dependencies are up to date, yay!


C:\home\git\polyglot\apps\chat\contract\Cargo.toml

All dependencies are up to date, yay!


C:\home\git\polyglot\apps\chat\tests\Cargo.toml

chat

================

Name        Project  Compat   Latest   Kind    Platform

----        -------  ------   ------   ----    --------

autocfg     1.1.0    Removed  ---      Build   ---

equivalent  1.0.1    ---      Removed  Normal  ---

hashbrown   0.12.3   0.14.1   ---      Normal  ---

hashbrown   0.14.1   ---      0.12.3   Normal  ---

indexmap    1.9.3    2.0.2    ---      Normal  ---

indexmap    2.0.2    ---      1.9.3    Normal  ---


C:\home\git\polyglot\apps\chat\ui\Cargo.toml

All dependencies are up to date, yay!


C:\home\git\polyglot\apps\dice\Cargo.toml

All dependencies are up to date, yay!


C:\home\git\polyglot\apps\dice\contract\Cargo.toml

All dependencies are up to date, yay!


C:\home\git\polyglot\apps\dice\tests\Cargo.toml

dice

================

Name        Project  Compat   Latest   Kind    Platform

----        -------  ------   ------   ----    --------

equivalent  1.0.1    Removed  Removed  Normal  ---

hashbrown   0.14.1   0.12.3   0.12.3   Normal  ---

indexmap    2.0.2    1.9.3    1.9.3    Normal  ---


C:\home\git\polyglot\apps\plot\Cargo.toml

    Updating git repository `https://github.com/plotters-rs/plotters.git`

    Updating git repository `https://github.com/plotters-rs/plotters.git`

All dependencies are up to date, yay!


C:\home\git\polyglot\spiral\extension



> polyglot@ outdated-pre C:\home\git\polyglot\spiral\extension

> npm-check-updates --target greatest



Using pnpm

Checking C:\home\git\polyglot\spiral\extension\package.json





 @playwright/test  1.38.0-beta-1691778350000  →  1.40.0-alpha-oct-25-2023

 @types/chrome                      ~0.0.246  →                  ~0.0.248



Run ncu --target greatest -u to upgrade package.json


C:\home\git\polyglot\apps\ipfs



> ipfs@ outdated-pre C:\home\git\polyglot\apps\ipfs

> npm-check-updates --target greatest



Using pnpm

Checking C:\home\git\polyglot\apps\ipfs\package.json





All dependencies match the greatest package versions :)


C:\home\git\polyglot



> polyglot@ outdated-pre C:\home\git\polyglot

> npm-check-updates --target greatest



Using pnpm

Checking C:\home\git\polyglot\package.json





All dependencies match the greatest package versions :)